diff options
author | dos-reis <gdr@axiomatics.org> | 2009-07-12 17:10:18 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2009-07-12 17:10:18 +0000 |
commit | 3838fe22164e91e9d5269f801c2b668682ccde83 (patch) | |
tree | 68200708174170f1d1ce3573e7d8cf77a4af4d81 /src/lib | |
parent | 9a91238840354e46c0f1d898881d5ebf8c395520 (diff) | |
download | open-axiom-3838fe22164e91e9d5269f801c2b668682ccde83.tar.gz |
* algebra/mkfunc.spad.pamphlet
(mkDefun$MakeFloatCompiledFunction): Tidy.
* interp/c-util.boot (declareUnusedParameters): New.
* interp/i-map.boot: Use it.
* interp/i-spec1.boot: Likewise.
* interp/slam.boot: Likewise.
* lib/cfuns-c.c (writeablep): Document MinGW/MSYS bug work around.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/cfuns-c.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/cfuns-c.c b/src/lib/cfuns-c.c index 849af3c4..63758092 100644 --- a/src/lib/cfuns-c.c +++ b/src/lib/cfuns-c.c @@ -247,6 +247,13 @@ writeablep(char *path) is writable. */ char* dir = oa_dirname(path); code = stat(dir, &buf); + /* FIXME: Work around MinGW/MSYS bug. + The string pointed to by `dir' was strdup'd. According to + the C standard, that means the the string was allocated + by `malloc', therefore can be disposed of by `free'. However, + the MinGW/MSYS port appears to use MS' StrDup as the real + worker. Consequently, the guarantee that the the string can + free'd no longer holds. We have to use MS's LocalFree. */ #ifdef __WIN32__ LocalFree(dir); #else |