Changeset 9455f49 in git


Ignore:
Timestamp:
May 12, 2020, 12:13:14 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d5efda0ac6d15525c8e41b8b72a1ec6d66cb6d43
Parents:
53cbfc7cabbf3240228f9951f84ad5cb8fd07e21
Message:
opt: const char in iiLibCmd
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    r53cbfc r9455f49  
    876876}
    877877
    878 BOOLEAN iiLibCmd( char *newlib, BOOLEAN autoexport, BOOLEAN tellerror, BOOLEAN force )
    879 {
     878BOOLEAN iiLibCmd( const char *newlib, BOOLEAN autoexport, BOOLEAN tellerror, BOOLEAN force )
     879{
     880  if (strcmp(newlib,"Singular")==0) return FALSE;
    880881  char libnamebuf[1024];
    881   // procinfov pi;
    882   // idhdl h;
    883882  idhdl pl;
    884   // idhdl hl;
    885   // long pos = 0L;
    886883  char *plib = iiConvName(newlib);
    887884  FILE * fp = feFopen( newlib, "r", libnamebuf, tellerror );
  • Singular/ipshell.h

    r53cbfc r9455f49  
    6868char *  iiProcName(char *buf, char & ct, char* &e);
    6969char *  iiProcArgs(char *e,BOOLEAN withParenth);
    70 BOOLEAN iiLibCmd( char *newlib, BOOLEAN autoexport, BOOLEAN tellerror, BOOLEAN force );
     70BOOLEAN iiLibCmd( const char *newlib, BOOLEAN autoexport, BOOLEAN tellerror, BOOLEAN force );
    7171/* sees wheter library lib has already been loaded
    7272   if yes, writes filename of lib into where and returns TRUE,
Note: See TracChangeset for help on using the changeset viewer.