Changeset 5c8eae0 in git
- Timestamp:
- Mar 16, 1998, 5:21:55 PM (25 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 399efbe1493f787ca072ee4e9b85f144549f7bbc
- Parents:
- f92fa13cf36544466ec5258d02a47f4fcc8aa607
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iplib.cc
rf92fa13 r5c8eae0 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.1 1 1998-03-06 11:50:37 krueger Exp $ */4 /* $Id: iplib.cc,v 1.12 1998-03-16 16:21:55 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 23 23 24 24 procinfo *iiInitSingularProcinfo(procinfo *pi, char *libname, char *procname, 25 25 int line, long pos, BOOLEAN pstatic=FALSE); 26 26 char *iiConvName(char *p); 27 27 #ifdef HAVE_LIBPARSER … … 249 249 si_echo=old_echo; 250 250 //Print("PEnd <<%s>>\n",IDID(pn)); 251 251 252 252 return err; 253 253 } … … 498 498 if(yylp_errno) { 499 499 Werror("Library %s: ERROR occured: in line %d, %d.", newlib, yylplineno, 500 500 current_pos(0)); 501 501 Werror(yylp_errlist[yylp_errno], yylplineno); 502 502 Werror("Cannot load library,... aborting."); … … 505 505 FreeL((ADDRESS)newlib); 506 506 return TRUE; 507 } 507 } 508 508 reinit_yylp(); 509 509 fclose( yylpin ); … … 511 511 libstackv ls; 512 512 for(ls = library_stack; (ls != NULL) && (ls != ls_start); ) { 513 if(ls->to_be_done) { 514 515 516 517 518 513 if(ls->to_be_done) { 514 //Print("// Processing id %d LIB:%s\n", ls->cnt, ls->get()); 515 ls->to_be_done=FALSE; 516 iiLibCmd(ls->get()); 517 ls = ls->pop(newlib); 518 //Print("Done\n"); 519 519 } 520 520 } … … 597 597 #if 0 598 598 if(strcmp(proc, "_init")==0) 599 599 { 600 600 char *p = iiConvName(newlib); 601 601 Print("Init found:%s;\n", p); … … 639 639 { 640 640 if(inBlock==IN_HEADER) 641 641 { 642 642 IDPROC(h)->data.s.body_start = pos; 643 643 IDPROC(h)->data.s.body_lineno = lines-offset; … … 680 680 681 681 procinfo *iiInitSingularProcinfo(procinfov pi, char *libname, char *procname, 682 int line, long pos, BOOLEAN pstatic=FALSE)682 int line, long pos, BOOLEAN pstatic) 683 683 { 684 684 pi->libname = mstrdup(libname); … … 784 784 if(this != NULL) ls->cnt = this->cnt+1; else ls->cnt = 0; 785 785 library_stack = ls; 786 } 786 } 787 787 } 788 788 }
Note: See TracChangeset
for help on using the changeset viewer.