Commit e6cc3b80 by Ulrich Drepper

(__PMT): New macro. Defined like __P.

Use is for function pointers.

From-SVN: r20791
parent a611ae14
/* 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. This file is part of the GNU IO Library.
Written by Per Bothner <bothner@cygnus.com>. Written by Per Bothner <bothner@cygnus.com>.
...@@ -60,8 +60,10 @@ ...@@ -60,8 +60,10 @@
# else # else
# ifdef __STDC__ # ifdef __STDC__
# define __P(p) p # define __P(p) p
# define __PMT(p) p
# else # else
# define __P(p) () # define __P(p) ()
# define __PMT(p) ()
# endif # endif
# endif # endif
#endif /*!__P*/ #endif /*!__P*/
...@@ -267,10 +269,10 @@ extern struct _IO_FILE_plus _IO_stdin_, _IO_stdout_, _IO_stderr_; ...@@ -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. */ /* Define the user-visible type, with user-friendly member names. */
typedef struct typedef struct
{ {
_IO_ssize_t (*read) __P ((struct _IO_FILE *, void *, _IO_ssize_t)); _IO_ssize_t (*read) __PMT ((struct _IO_FILE *, void *, _IO_ssize_t));
_IO_ssize_t (*write) __P ((struct _IO_FILE *, const void *, _IO_ssize_t)); _IO_ssize_t (*write) __PMT ((struct _IO_FILE *, const void *, _IO_ssize_t));
_IO_fpos_t (*seek) __P ((struct _IO_FILE *, _IO_off_t, int)); _IO_fpos_t (*seek) __PMT ((struct _IO_FILE *, _IO_off_t, int));
int (*close) __P ((struct _IO_FILE *)); int (*close) __PMT ((struct _IO_FILE *));
} _IO_cookie_io_functions_t; } _IO_cookie_io_functions_t;
/* Special file type for fopencookie function. */ /* Special file type for fopencookie function. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment