Changeset bcd557 in git for Singular/iplib.cc
- Timestamp:
- Jun 18, 1998, 7:32:13 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 300a346b7aab2a310ad9542b7b9ed1e68c1a8be2
- Parents:
- 0a53a908f6c1a64a4e1f1b05085604516b79f95d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iplib.cc
r0a53a9 rbcd557 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.3 0 1998-06-13 12:44:42 krueger Exp $ */4 /* $Id: iplib.cc,v 1.31 1998-06-18 17:32:12 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 130 130 char buf[256], *s = NULL, *p; 131 131 long procbuflen; 132 132 133 133 FILE * fp = feFopen( pi->libname, "rb", NULL, TRUE ); 134 134 if (fp==NULL) … … 320 320 idhdl ns = namespaceroot->get(plib,0, TRUE); 321 321 FreeL(plib); 322 if(ns != NULL) { 322 if(ns != NULL) 323 { 323 324 namespaceroot->push(IDPACKAGE(ns), IDID(ns)); 324 325 //printf("iiMake_proc: namespace found.\n"); 325 } else { 326 } 327 else 328 { 326 329 namespaceroot->push(namespaceroot->root->pack, "toplevel"); 327 330 //printf("iiMake_proc: staying in TOP-LEVEL\n"); 328 331 } 329 332 #else /* HAVE_NAMESPACES */ 330 if(pi->is_static && myynest==0) { 333 if(pi->is_static && myynest==0) 334 { 331 335 Werror("'%s::%s()' is a local procedure and cannot be accessed by an user.", 332 336 pi->libname, pi->procname); … … 346 350 #endif 347 351 #if 1 348 if(pi->language == LANG_SINGULAR) err=iiPStart(pn,sl); 349 if(pi->language == LANG_C) 352 if(pi->language == LANG_SINGULAR) 353 { 354 err=iiPStart(pn,sl); 355 } 356 else if(pi->language == LANG_C) 350 357 { 351 358 leftv res = (leftv)Alloc0(sizeof(sleftv)); … … 408 415 if (iiCurrArgs!=NULL) 409 416 { 410 Warn("too many arguments for %s",IDID(pn));417 if (!err) Warn("too many arguments for %s",IDID(pn)); 411 418 iiCurrArgs->CleanUp(); 412 419 Free((ADDRESS)iiCurrArgs,sizeof(sleftv)); … … 416 423 namespaceroot->pop(); 417 424 #endif /* HAVE_NAMESPACES */ 418 if (err) return NULL; 425 if (err) 426 return NULL; 419 427 return &iiRETURNEXPR[myynest+1]; 420 428 }
Note: See TracChangeset
for help on using the changeset viewer.