Changeset c1e2b1 in git


Ignore:
Timestamp:
May 3, 1998, 1:41:27 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
d0a3415456aa90ee33c0607829eef67ff4ef0bd5
Parents:
b23c90ae52a558bdf4a056235d77c647c38d2ce8
Message:
* defined myfopen, myfread to fopen, fread


git-svn-id: file:///usr/local/Singular/svn/trunk@1574 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/libparse.h

    rb23c90 rc1e2b1  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: libparse.h,v 1.4 1998-04-20 10:05:53 krueger Exp $ */
     6/* $Id: libparse.h,v 1.5 1998-05-03 11:41:26 obachman Exp $ */
    77/*
    88* ABSTRACT: lib parsing
     
    2323extern char * text_buffer;
    2424
     25#ifdef STANDALONE_PARSER
     26#define myfread fread
     27#define myfopen fopen
     28#endif
     29
    2530#endif /* LIBPARSE_H */
    2631
  • Singular/utils.cc

    rb23c90 rc1e2b1  
    4444printpi(procinfov pi)
    4545{
    46   FILE *fp = mfopen( pi->libname, "rb");
     46  FILE *fp = fopen( pi->libname, "rb");
    4747  char *buf, name[256];
    4848  int len1, len2;
     
    6767    buf = (char *)malloc(len1 + len2 + 1);
    6868    fseek(fp, pi->data.s.proc_start, SEEK_SET);
    69     mfread( buf, len1, 1, fp);
     69    fread( buf, len1, 1, fp);
    7070    *(buf+len1) = '\n';
    7171    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);
    7373    *(buf+len1+len2+1)='\0';
    7474    printf("##BODY:'%s'##\n", buf);
     
    8080    buf = (char *)malloc(len1+1);
    8181    fseek(fp, pi->data.s.proc_start, SEEK_SET);
    82     mfread( buf, len1, 1, fp);
     82    fread( buf, len1, 1, fp);
    8383    *(buf+len1)='\0';
    8484    printf("##HELP:'%s'##\n", buf);
Note: See TracChangeset for help on using the changeset viewer.