Changeset 76388e in git for libpolys/resources/feFopen.cc


Ignore:
Timestamp:
May 19, 2011, 11:39:26 AM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
8d1a1ab92a3fa4bf30daf110a860313ccf3ef58c
Parents:
9737a6f42bcd9b46097b69c99ba79ee2490e3131
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-19 11:39:26+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:11+01:00
Message:
ADD: improving resource handling (searching files...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/resources/feFopen.cc

    r9737a6 r76388e  
    2424
    2525FILE * feFopen(const char *path, const char *mode, char *where,
    26                int useWerror, int path_only)
     26               BOOLEAN useWerror, BOOLEAN path_only)
    2727{
    2828  char longpath[MAXPATHLEN];
     
    8080    char *s;
    8181
    82     if (where==NULL) s=(char *)omAlloc(250);
     82    if (where==NULL) s=(char *)omAlloc(250 * sizeof(char));
    8383    else             s=where;
    8484
     
    122122}
    123123
    124 #ifdef ix86_Win
    125124// Make sure that mode contains binary option
    126125FILE* myfopen(const char *path, const char *mode)
    127126{
     127#if (defined(CYGWIN) || defined(ix86_Win))
    128128  char mmode[4];
    129129  int i;
     
    145145  }
    146146  return fopen(path, mmode);
     147#else
     148  return fopen(path, mode);
     149#endif
    147150}
    148 #endif
    149151// replace "\r\n" by " \n" and "\r" by "\n"
    150152
Note: See TracChangeset for help on using the changeset viewer.