[gs-cvs] gs/src

L. Peter Deutsch lpd at casper.ghostscript.com
Sat Jun 15 22:03:14 PDT 2002


Update of /cvs/ghostscript/gs/src
In directory casper:/tmp/cvs-serv2737/src

Modified Files:
	malloc_.h math_.h memory_.h pipe_.h stdio_.h 
Log Message:

Removes all uses of the now-deprecated Pn macros from system header
wrappers.


Index: malloc_.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/malloc_.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- malloc_.h	21 Feb 2002 22:24:53 -0000	1.4
+++ malloc_.h	16 Jun 2002 05:03:12 -0000	1.5
@@ -46,7 +46,7 @@
 /* (At least some versions of) Linux don't have a working realloc.... */
 #ifdef linux
 #  define malloc__need_realloc
-void *gs_realloc(P3(void *, size_t, size_t));
+void *gs_realloc(void *, size_t, size_t);
 
 #else
 #  define gs_realloc(ptr, old_size, new_size) realloc(ptr, new_size)

Index: math_.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/math_.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- math_.h	21 Feb 2002 22:24:53 -0000	1.4
+++ math_.h	16 Jun 2002 05:03:12 -0000	1.5
@@ -75,7 +75,7 @@
 #endif
 
 /* Intercept calls on sqrt for debugging. */
-extern double gs_sqrt(P3(double, const char *, int));
+extern double gs_sqrt(double, const char *, int);
 #ifdef DEBUG
 #undef sqrt
 #define sqrt(x) gs_sqrt(x, __FILE__, __LINE__)

Index: memory_.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/memory_.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- memory_.h	8 Apr 2002 20:42:01 -0000	1.5
+++ memory_.h	16 Jun 2002 05:03:12 -0000	1.6
@@ -94,22 +94,22 @@
 #ifdef MEMORY__NEED_MEMMOVE
 #  undef memmove
 #  define memmove(dest,src,len) gs_memmove(dest,src,len)
-void *gs_memmove(P3(void *, const void *, size_t));
+void *gs_memmove(void *, const void *, size_t);
 #endif
 #ifdef MEMORY__NEED_MEMCPY
 #  undef memcpy
 #  define memcpy(dest,src,len) gs_memcpy(dest,src,len)
-void *gs_memcpy(P3(void *, const void *, size_t));
+void *gs_memcpy(void *, const void *, size_t);
 #endif
 #ifdef MEMORY__NEED_MEMSET
 #  undef memset
 #  define memset(dest,ch,len) gs_memset(dest,ch,len)
-void *gs_memset(P3(void *, int, size_t));
+void *gs_memset(void *, int, size_t);
 #endif
 #ifdef MEMORY__NEED_MEMCHR
 #  undef memchr
 #  define memchr(ptr,ch,len) gs_memchr(ptr,ch,len)
-void *gs_memchr(P3(const void *, int, size_t));
+void *gs_memchr(const void *, int, size_t);
 #endif
 
 #endif /* memory__INCLUDED */

Index: pipe_.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/pipe_.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- pipe_.h	21 Feb 2002 22:24:53 -0000	1.4
+++ pipe_.h	16 Jun 2002 05:03:12 -0000	1.5
@@ -35,8 +35,8 @@
  * we must omit the argument list.  Unfortunately, this sometimes causes
  * more trouble than it cures.
  */
-extern FILE *popen( /* P2(const char *, const char *) */ );
-extern int pclose(P1(FILE *));
+extern FILE *popen( /* const char *, const char * */ );
+extern int pclose(FILE *);
 #endif /* !__WIN32__ */
 
 #endif /* pipe__INCLUDED */

Index: stdio_.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/stdio_.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- stdio_.h	21 Feb 2002 22:24:54 -0000	1.6
+++ stdio_.h	16 Jun 2002 05:03:12 -0000	1.7
@@ -42,7 +42,7 @@
  * if they do, the declaration will be compatible with this one, as long
  * as const has not been disabled by defining it to be the empty string.
  */
-int unlink(P1(const char *));
+int unlink(const char *);
 #endif
 
 #endif




More information about the gs-cvs mailing list