Changeset 76388e in git for libpolys/resources
- Timestamp:
- May 19, 2011, 11:39:26 AM (13 years ago)
- Branches:
- (u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
- 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
- Location:
- libpolys/resources
- Files:
-
- 2 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 -
libpolys/resources/feFopen.h
r9737a6 r76388e 1 1 #ifndef FEFOPEN_H 2 2 #define FEFOPEN_H 3 4 #include <misc/auxiliary.h> 5 3 6 /***************************************************************** 4 7 * … … 6 9 * 7 10 *****************************************************************/ 8 FILE * feFopen(const char *path, const char *mode, char *where=NULL, 9 int useWerror=FALSE, int path_only=FALSE); 11 FILE*feFopen(const char *path, const char *mode, char *where=NULL, BOOLEAN useWerror=FALSE, BOOLEAN path_only=FALSE); 10 12 11 13 /* … … 17 19 // do never use fopen and fread 18 20 */ 19 #if (defined(CYGWIN) || defined(ix86_Win))20 21 21 22 FILE *myfopen(const char *path, const char *mode); 22 23 #else24 25 #define myfopen fopen26 27 #endif28 23 29 24 size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream);
Note: See TracChangeset
for help on using the changeset viewer.