aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-29 11:45:10 +0000
committerdrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-29 11:45:10 +0000
commita48249763abe968e47d97bdf2ab2bcc9a2b2125b (patch)
tree7cf659af1ed882e06e1bf4410809310604f15518
parent29df6a8d6a6ada66b401de6f22c736cbf43e5ec8 (diff)
(__PMT): New macro. Defined like __P.
Use is for function pointers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20791 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libio/libio.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/libio/libio.h b/libio/libio.h
index 6e3edcc3041..26ed915158b 100644
--- a/libio/libio.h
+++ b/libio/libio.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 93, 94, 95, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 93, 94, 95, 97, 98 Free Software Foundation, Inc.
This file is part of the GNU IO Library.
Written by Per Bothner <bothner@cygnus.com>.
@@ -60,8 +60,10 @@
# else
# ifdef __STDC__
# define __P(p) p
+# define __PMT(p) p
# else
# define __P(p) ()
+# define __PMT(p) ()
# endif
# endif
#endif /*!__P*/
@@ -267,10 +269,10 @@ extern struct _IO_FILE_plus _IO_stdin_, _IO_stdout_, _IO_stderr_;
/* Define the user-visible type, with user-friendly member names. */
typedef struct
{
- _IO_ssize_t (*read) __P ((struct _IO_FILE *, void *, _IO_ssize_t));
- _IO_ssize_t (*write) __P ((struct _IO_FILE *, const void *, _IO_ssize_t));
- _IO_fpos_t (*seek) __P ((struct _IO_FILE *, _IO_off_t, int));
- int (*close) __P ((struct _IO_FILE *));
+ _IO_ssize_t (*read) __PMT ((struct _IO_FILE *, void *, _IO_ssize_t));
+ _IO_ssize_t (*write) __PMT ((struct _IO_FILE *, const void *, _IO_ssize_t));
+ _IO_fpos_t (*seek) __PMT ((struct _IO_FILE *, _IO_off_t, int));
+ int (*close) __PMT ((struct _IO_FILE *));
} _IO_cookie_io_functions_t;
/* Special file type for fopencookie function. */
@@ -340,7 +342,7 @@ extern _IO_ssize_t _IO_padn __P ((_IO_FILE *, int, _IO_ssize_t));
extern _IO_size_t _IO_sgetn __P ((_IO_FILE *, void *, _IO_size_t));
#if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001
-extern _IO_fpos64_t _IO_seekoff __P ((_IO_FILE *, _IO_off64_t, int, int));
+extern _IO_fpos64_t _IO_seekoff __P ((_IO_FILE *, _IO_off64_t, int, int));
extern _IO_fpos64_t _IO_seekpos __P ((_IO_FILE *, _IO_fpos64_t, int));
#else
extern _IO_fpos_t _IO_seekoff __P ((_IO_FILE *, _IO_off_t, int, int));