typedef question and __P

[ Available lists | Index of freebsd-hackers | Month of Dec 1998 | Week of 4 Dec 1998 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
zhihuizhang <bf20761@binghamton.edu>
Date
4 Dec 1998 08:57:47
Subject
typedef question and __P
Message-ID
Pine.SOL.L3.93.981204115156.22469A-100000@bingsun1

Referenced by

[ Hide this part ]
 
In file isa/isa_device.h, I find two defitions:

typedef void inthand_t __P((u_int cs, u_int ef, u_int esp, u_int ss));
typedef void inthand2_t __P((int unit));

Usually, typedef takes the format as:

typedef newtypename existingtype (note: only two terms follows typedef)

It gives a new name (but does not create a new type) to an existing type.

My question is how come there are three terms following typedefs above and
where is __P defined. Are they GNU C extenstions?

Thanks for your help.

--------------------------------------------------
| Zhihui Zhang, http://cs.binghamton.edu/~zzhang |
| Dept. of Computer Science, SUNY at Binghamton |
--------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message


Elapsed time: 0.093 seconds