Changeset 76388e in git for libpolys/resources/feFopen.cc
- Timestamp:
- May 19, 2011, 11:39:26 AM (12 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/resources/feFopen.cc
r9737a6 r76388e 24 24 25 25 FILE * feFopen(const char *path, const char *mode, char *where, 26 int useWerror, intpath_only)26 BOOLEAN useWerror, BOOLEAN path_only) 27 27 { 28 28 char longpath[MAXPATHLEN]; … … 80 80 char *s; 81 81 82 if (where==NULL) s=(char *)omAlloc(250 );82 if (where==NULL) s=(char *)omAlloc(250 * sizeof(char)); 83 83 else s=where; 84 84 … … 122 122 } 123 123 124 #ifdef ix86_Win125 124 // Make sure that mode contains binary option 126 125 FILE* myfopen(const char *path, const char *mode) 127 126 { 127 #if (defined(CYGWIN) || defined(ix86_Win)) 128 128 char mmode[4]; 129 129 int i; … … 145 145 } 146 146 return fopen(path, mmode); 147 #else 148 return fopen(path, mode); 149 #endif 147 150 } 148 #endif149 151 // replace "\r\n" by " \n" and "\r" by "\n" 150 152
Note: See TracChangeset
for help on using the changeset viewer.