Date: Sun, 7 Jan 1996 23:31:27 -0500 (EST) From: Chuck Robey <chuckr@glue.umd.edu> To: FreeBSD-chat@FreeBSD.org Subject: cpp construction Message-ID: <Pine.SUN.3.91.960107232459.7194E-100000@cappuccino.eng.umd.edu>
next in thread | raw e-mail | index | archive | help
There's a construction that's used (I think) to supply prototypes that I've never really understood, and I was wondering if anyone might be feeling like a short lecture here. The example is from /usr/src/sys/miscfs/nullfs/null_subr.c, which I happen to be studying right now, but I've seen this construction a lot of times before (but with no more comprehension). Anyways, here's the example: static int null_node_alloc __P((struct mount *mp, struct vnode *lowervp, struct vnode **vpp)); It's that __P thing, with the double parens, that has me wondering. I'd really appreciate some help. I didn't put this in questions because it's so wildly different from the kind of stuff normally seen there, and I didn't put it in hackers because it has nothing to do with anything going on, it's just me studying the system. If someone wants to transplant this to another list, fine with me, but it seemed a good compromise here in -chat. ============================================================================ Chuck Robey chuckr@eng.umd.edu -- I run FreeBSD on n3lxx and Journey2 --------------------------------------------------------------------------- The Dilbert Zone is Dilbert's new WWW home! The area features never-before-seen original sketches of Dilbert, a photo tour of Scott Adams' studio, Dilbert Trivia and memorabilia, high school photos and much more!: <URL:http://www.unitedmedia.com/comics/dilbert/>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960107232459.7194E-100000>