Changeset 31a392 in git
- Timestamp:
- Sep 13, 2010, 12:21:06 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 66be3523e651b93f9a2772a25553fcc8d0bd24cd
- Parents:
- 39225034bdb7abb20fa47cc850000a7379664506
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
r3922503 r31a392 45 45 { 46 46 si_echo=(int)((long)(a->Data())); 47 return FALSE;48 }49 static BOOLEAN jjPAGELENGTH(leftv res, leftv a)50 {51 pagelength=(int)((long)(a->Data()));52 47 return FALSE; 53 48 } -
Singular/iplib.cc
r3922503 r31a392 498 498 { 499 499 if (currRing!=NULL) 500 { 500 { 501 501 if (((iiRETURNEXPR[myynest+1].Typ()>BEGIN_RING) 502 502 && (iiRETURNEXPR[myynest+1].Typ()<END_RING)) … … 788 788 } 789 789 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 790 static void iiCleanProcs(idhdl root)790 static void iiCleanProcs(idhdl &root) 791 791 { 792 792 idhdl prev=NULL; … … 819 819 static void iiRunInit(package p) 820 820 { 821 idhdl h=p->idroot; 822 idhdl prev=NULL; 823 myynest++; 824 loop 825 { 826 if (h==NULL) return; 827 if (IDTYP(h)==PROC_CMD) 828 { 829 procinfo *pi=(procinfo*)IDDATA(h); 830 if ((strcmp(IDID(h),"mod_init")==0) 831 && (pi->language == LANG_SINGULAR)) 832 { 833 //PrintS("mod_init found\n"); 834 iiMake_proc(h,p,NULL); 835 idhdl hh=IDNEXT(h); 836 killhdl(h); 837 if (prev==NULL) 838 p->idroot=hh; 839 } 840 } 841 prev=h; 842 h=IDNEXT(h); 843 } 844 myynest--; 821 idhdl h=p->idroot->get("mod_init",0); 822 if (h==NULL) return; 823 if (IDTYP(h)==PROC_CMD) 824 { 825 int save=yylineno; 826 myynest++; 827 procinfo *pi=(procinfo*)IDDATA(h); 828 //PrintS("mod_init found\n"); 829 iiMake_proc(h,p,NULL); 830 myynest--; 831 yylineno=save; 832 } 845 833 } 846 834 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ … … 1046 1034 { 1047 1035 SModulFunctions sModulFunctions; 1048 1036 1049 1037 package s=currPack; 1050 1038 currPack=IDPACKAGE(pl); … … 1066 1054 load_modules_end: 1067 1055 return RET; 1068 #endif /*STATIC */ 1056 #endif /*STATIC */ 1069 1057 } 1070 1058 #endif /* HAVE_DYNAMIC_LOADING */
Note: See TracChangeset
for help on using the changeset viewer.