Changeset ce21e4a in git for Singular/iplib.cc
- Timestamp:
- Oct 11, 2005, 1:31:08 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- e58457487e948d2c9bb6e042ce39476badcd4b68
- Parents:
- 6fa3af1b1ad0c52cf237ae95277efe4490be51ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iplib.cc
r6fa3af rce21e4a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.11 7 2005-09-24 15:02:07Singular Exp $ */4 /* $Id: iplib.cc,v 1.118 2005-10-11 11:31:08 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 197 197 procbuflen = pi->data.s.help_end - pi->data.s.help_start; 198 198 if (procbuflen<5) 199 { 200 fclose(fp); 199 201 return NULL; // help part does not exist 202 } 200 203 //Print("Help=%ld-%ld=%d\n", pi->data.s.body_start, 201 204 // pi->data.s.proc_start, procbuflen); … … 205 208 fseek(fp, pi->data.s.help_start, SEEK_SET); 206 209 myfread(s+head+1, procbuflen, 1, fp); 210 fclose(fp); 207 211 s[procbuflen+head+1] = '\n'; 208 212 s[procbuflen+head+2] = '\0'; … … 244 248 strcpy(pi->data.s.body,argstr); 245 249 myfread( pi->data.s.body+strlen(argstr), procbuflen, 1, fp); 250 fclose( fp ); 246 251 procbuflen+=strlen(argstr); 247 252 omFree(argstr); 248 253 omFree(ss); 249 fclose( fp );250 254 pi->data.s.body[procbuflen] = '\0'; 251 255 strcat( pi->data.s.body+procbuflen, "\n;return();\n\n" );
Note: See TracChangeset
for help on using the changeset viewer.