r879 - in trunk: . platform

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Mar 29 01:39:16 EDT 2007


Author: icculus
Date: 2007-03-29 01:39:16 -0400 (Thu, 29 Mar 2007)
New Revision: 879

Modified:
   trunk/CHANGELOG.txt
   trunk/CREDITS.txt
   trunk/physfs.c
   trunk/platform/macosx.c
Log:
Don't put comments in BAIL_* macros where we want an empty argument...
 apparently it aggravates some compilers. Thanks to Chris Taylor for this one.


Modified: trunk/CHANGELOG.txt
===================================================================
--- trunk/CHANGELOG.txt	2007-03-28 17:29:52 UTC (rev 878)
+++ trunk/CHANGELOG.txt	2007-03-29 05:39:16 UTC (rev 879)
@@ -4,7 +4,9 @@
 
 03282007 - Logic bug in MVL/HOG/GRP archivers: only enumerated files when
            looking in a directory other than the root, instead of enumerating
-           only for the root (thanks, Chris!).
+           only for the root (thanks, Chris!). Minor fix for compilers that
+           don't like the BAIL_* macros with an empty argument
+           (thanks, Chris!)
 03262007 - Tons of Unicode work in windows.c ... should now use UCS-2 on
            NT/XP/Vista/etc versions of the OS, and fallback to "ANSI" versions
            for 95/98/ME, tapdancing around the system codepage if it has to.

Modified: trunk/CREDITS.txt
===================================================================
--- trunk/CREDITS.txt	2007-03-28 17:29:52 UTC (rev 878)
+++ trunk/CREDITS.txt	2007-03-29 05:39:16 UTC (rev 879)
@@ -70,7 +70,8 @@
     Pedro J. Pérez
 
 MacOS Classic fixes,
-MPW support:
+MPW support,
+bug fixes:
     Chris Taylor
 
 Mingw support,

Modified: trunk/physfs.c
===================================================================
--- trunk/physfs.c	2007-03-28 17:29:52 UTC (rev 878)
+++ trunk/physfs.c	2007-03-29 05:39:16 UTC (rev 879)
@@ -1567,12 +1567,12 @@
     size_t len;
     char *fname;
 
-    BAIL_IF_MACRO(_fname == NULL, ERR_INVALID_ARGUMENT, /*0*/);
-    BAIL_IF_MACRO(callback == NULL, ERR_INVALID_ARGUMENT, /*0*/);
+    BAIL_IF_MACRO(_fname == NULL, ERR_INVALID_ARGUMENT, ) /*0*/;
+    BAIL_IF_MACRO(callback == NULL, ERR_INVALID_ARGUMENT, ) /*0*/;
 
     len = strlen(_fname) + 1;
     fname = (char *) __PHYSFS_smallAlloc(len);
-    BAIL_IF_MACRO(fname == NULL, ERR_OUT_OF_MEMORY, /*0*/);
+    BAIL_IF_MACRO(fname == NULL, ERR_OUT_OF_MEMORY, ) /*0*/;
 
     if (sanitizePlatformIndependentPath(_fname, fname))
     {

Modified: trunk/platform/macosx.c
===================================================================
--- trunk/platform/macosx.c	2007-03-28 17:29:52 UTC (rev 878)
+++ trunk/platform/macosx.c	2007-03-29 05:39:16 UTC (rev 879)
@@ -170,7 +170,7 @@
     int i, mounts;
 
     if (IOMasterPort(MACH_PORT_NULL, &masterPort) != KERN_SUCCESS)
-        BAIL_MACRO(ERR_OS_ERROR, /*return void*/);
+        BAIL_MACRO(ERR_OS_ERROR, ) /*return void*/;
 
     mounts = getmntinfo(&mntbufp, MNT_WAIT);  /* NOT THREAD SAFE! */
     for (i = 0; i < mounts; i++)




More information about the physfs-commits mailing list