Changeset c1e2b1 in git
- Timestamp:
- May 3, 1998, 1:41:27 PM (25 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- d0a3415456aa90ee33c0607829eef67ff4ef0bd5
- Parents:
- b23c90ae52a558bdf4a056235d77c647c38d2ce8
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/libparse.h
rb23c90 rc1e2b1 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: libparse.h,v 1. 4 1998-04-20 10:05:53 kruegerExp $ */6 /* $Id: libparse.h,v 1.5 1998-05-03 11:41:26 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: lib parsing … … 23 23 extern char * text_buffer; 24 24 25 #ifdef STANDALONE_PARSER 26 #define myfread fread 27 #define myfopen fopen 28 #endif 29 25 30 #endif /* LIBPARSE_H */ 26 31 -
Singular/utils.cc
rb23c90 rc1e2b1 44 44 printpi(procinfov pi) 45 45 { 46 FILE *fp = mfopen( pi->libname, "rb");46 FILE *fp = fopen( pi->libname, "rb"); 47 47 char *buf, name[256]; 48 48 int len1, len2; … … 67 67 buf = (char *)malloc(len1 + len2 + 1); 68 68 fseek(fp, pi->data.s.proc_start, SEEK_SET); 69 mfread( buf, len1, 1, fp);69 fread( buf, len1, 1, fp); 70 70 *(buf+len1) = '\n'; 71 71 fseek(fp, pi->data.s.body_start, SEEK_SET); 72 mfread( buf+len1+1, len2, 1, fp);72 fread( buf+len1+1, len2, 1, fp); 73 73 *(buf+len1+len2+1)='\0'; 74 74 printf("##BODY:'%s'##\n", buf); … … 80 80 buf = (char *)malloc(len1+1); 81 81 fseek(fp, pi->data.s.proc_start, SEEK_SET); 82 mfread( buf, len1, 1, fp);82 fread( buf, len1, 1, fp); 83 83 *(buf+len1)='\0'; 84 84 printf("##HELP:'%s'##\n", buf);
Note: See TracChangeset
for help on using the changeset viewer.