Changeset 6acfb7 in git
- Timestamp:
- Nov 11, 2010, 2:57:04 PM (13 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 1ee17f728ae0a970f0bbdb9e57aedc97c536715b
- Parents:
- aefd2f31d20badf9f7185d9d99613be723e6b1b1
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipid.cc
raefd2f r6acfb7 727 727 } 728 728 729 char *idhdl2id(idhdl pck, idhdl h)730 {731 char *name = (char *)omAlloc(strlen(pck->id) + strlen(h->id) + 3);732 sprintf(name, "%s::%s", pck->id, h->id);733 return(name);734 }735 736 void iiname2hdl(const char *name, idhdl *pck, idhdl *h)737 {738 const char *q = strchr(name, ':');739 char *p, *i;740 741 if(q==NULL)742 {743 p = omStrDup("");744 i = (char *)omAlloc(strlen(name)+1);745 *i = '\0';746 sscanf(name, "%s", i);747 }748 else {749 if( *(q+1) != ':') return;750 i = (char *)omAlloc(strlen(name)+1);751 *i = '\0';752 if(name == q)753 {754 p = omStrDup("");755 sscanf(name, "::%s", i);756 }757 else758 {759 p = (char *)omAlloc(strlen(name)+1);760 sscanf(name, "%[^:]::%s", p, i);761 }762 }763 //printf("Package: '%s'\n", p);764 //printf("Id Rec : '%s'\n", i);765 omFree(p);766 omFree(i);767 }768 769 #if 0770 char *getnamelev()771 {772 char buf[256];773 sprintf(buf, "(%s:%d)", namespaceroot->name,namespaceroot->lev);774 return(buf);775 }776 // warning: address of local variable `buf' returned777 #endif778 779 729 void proclevel::push(char *n) 780 730 { -
Singular/ipid.h
raefd2f r6acfb7 82 82 /*extern ideal currQuotient; in structs.h */ 83 83 84 char *idhdl2id(idhdl pck, idhdl h);85 void iiname2hdl(const char *name, idhdl *pck, idhdl *id);86 84 idhdl enterid(const char * a, int lev, int t, idhdl* root, BOOLEAN init=TRUE, BOOLEAN serach=TRUE); 87 85 idhdl ggetid(const char *n);
Note: See TracChangeset
for help on using the changeset viewer.