BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone encountered, or hazard a guess at the purpose of, the #define __P I found in a header file:

#undef __P #define __P(protos) protos ... // all functions defined as char *func __P((int *, int *, int *));

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re: [OT] C preprocessor help - trying to build an XS module.
by Marshall (Canon) on Oct 31, 2011 at 17:59 UTC
    Ooooh, I think this some ancient baggage that keeps getting schlepped around. This note from history may be useful. Evidently this has to do with compatibility with very ancient K&R? If I'm wrong, well Ooops!

      Yep! That's seems to be it. Thanks.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.