Changeset 698457 in git
- Timestamp:
- Nov 6, 1999, 4:07:56 PM (24 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- e5295aa5284b62bfbf5d03c92cdf5f62238ed425
- Parents:
- 9d0697170908a6e9669c18eaf6ea6c461ed24375
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/fehelp.cc
r9d06971 r698457 575 575 char libnamebuf[128]; 576 576 FILE *fp=NULL; 577 if ((str[1]!='\0') && ((fp=feFopen(str,"rb", libnamebuf))!=NULL)) 577 // first, search for library of that name in LIB string 578 if ((str[1]!='\0') && 579 ((iiLocateLib(str, libnamebuf) && (fp=feFopen(libnamebuf, "rb")) !=NULL) 580 || 581 ((fp=feFopen(str,"rb", libnamebuf))!=NULL))) 578 582 { 579 583 extern FILE *yylpin; -
Singular/iplib.cc
r9d06971 r698457 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.6 6 1999-10-14 14:27:09obachman Exp $ */4 /* $Id: iplib.cc,v 1.67 1999-11-06 15:07:56 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 653 653 654 654 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 655 /* sees wheter library lib has already been loaded 656 if yes, writes filename of lib into where and returns TRUE, 657 no, returns FALSE 658 */ 659 BOOLEAN iiLocateLib(const char* lib, char* where) 660 { 661 idhdl hl; 662 663 hl = idroot->get("LIB", 0); 664 if (hl == NULL || strstr(IDSTRING(hl), lib) == NULL) return FALSE; 665 666 if (strstr(IDSTRING(hl), ",") == NULL) 667 { 668 strcpy(where, IDSTRING(hl)); 669 } 670 else 671 { 672 char* tmp = mstrdup(IDSTRING(hl)); 673 char* tok = strtok(tmp, ","); 674 do 675 { 676 if (strstr(tok, lib) != NULL) break; 677 tok = strtok(NULL, ","); 678 } 679 while (tok != NULL); 680 assume(tok != NULL); 681 strcpy(where, tok); 682 FreeL(tmp); 683 } 684 return TRUE; 685 } 686 687 655 688 #ifdef HAVE_NAMESPACES 656 689 BOOLEAN iiLibCmd( char *newlib, BOOLEAN autoexport, BOOLEAN tellerror ) -
Singular/ipshell.h
r9d06971 r698457 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ipshell.h,v 1.2 1 1999-10-25 18:21:52 SingularExp $ */6 /* $Id: ipshell.h,v 1.22 1999-11-06 15:07:56 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 63 63 BOOLEAN iiLibCmd( char *newlib, BOOLEAN tellerror=TRUE ); 64 64 #endif /* HAVE_NAMESPACES */ 65 /* sees wheter library lib has already been loaded 66 if yes, writes filename of lib into where and returns TRUE, 67 if no, returns FALSE 68 */ 69 BOOLEAN iiLocateLib(const char* lib, char* where); 65 70 leftv iiMap(map theMap, char * what); 66 71 void iiMakeResolv(resolvente r, int length, int rlen, char * name, int typ0,
Note: See TracChangeset
for help on using the changeset viewer.