[53208] trunk/base/src/pextlib1.0/filemap.c

toby at macports.org toby at macports.org
Tue Jun 30 23:50:54 PDT 2009


Revision: 53208
          http://trac.macports.org/changeset/53208
Author:   toby at macports.org
Date:     2009-06-30 23:50:54 -0700 (Tue, 30 Jun 2009)
Log Message:
-----------
remove unnecessary include and typedef

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/filemap.c

Modified: trunk/base/src/pextlib1.0/filemap.c
===================================================================
--- trunk/base/src/pextlib1.0/filemap.c	2009-07-01 06:42:54 UTC (rev 53207)
+++ trunk/base/src/pextlib1.0/filemap.c	2009-07-01 06:50:54 UTC (rev 53208)
@@ -59,10 +59,6 @@
 
 #include <pwd.h>
 
-#if HAVE_SYS_FILE_H
-#include <sys/file.h>
-#endif
-
 #if HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
@@ -92,14 +88,6 @@
 #include "filemap.h"
 #include "strcasecmp.h"
 
-/* Avoid a warning with Tcl < 8.4, even if Tcl_GetIndexFromObj's tablePtr
-probably isn't modified. */
-#if (TCL_MAJOR_VERSION > 8) || (TCL_MINOR_VERSION >= 4)
-typedef CONST char* tableEntryString;
-#else
-typedef char* tableEntryString;
-#endif
-
 /* ========================================================================= **
  * Definitions
  * ========================================================================= */
@@ -2016,7 +2004,7 @@
     	kFilemapIsReadOnly
     } EOption;
     
-	static tableEntryString options[] = {
+	static const char *options[] = {
 		"close", "create", "exists", "get", "list", "open", "revert", "save",
 		"set", "unset", "isreadonly", NULL
 	};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090630/7cee9fff/attachment.html>


More information about the macports-changes mailing list