Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watcgl.UUCP Path: utzoo!watmath!watcgl!kdmoen From: kdmoen@watcgl.UUCP (Doug Moen) Newsgroups: net.lang.c Subject: Re: ANSI C Question Message-ID: <1459@watcgl.UUCP> Date: Tue, 12-Mar-85 23:59:25 EST Article-I.D.: watcgl.1459 Posted: Tue Mar 12 23:59:25 1985 Date-Received: Wed, 13-Mar-85 01:31:31 EST References: <1700002@umn-cs.UUCP> Reply-To: kdmoen@watcgl.UUCP (Doug Moen) Organization: U of Waterloo, Ontario Lines: 17 Summary: In response to Robert Herndon's question, the draft Ansi C standard has this to say about macros and parameter lists: #define foo (x, y, z) /* define macro with no parameters */ #define bar(x, y, z) /* define macro with 3 parameters */ bar(a, b, c) /* use bar */ bar (a, b, c) /* another way to use bar */ In other words, you can put spaces between the macro name and its actual parameter list (when you use it), but not between the name and the formal parameter list (when you define it). The question probably arose because my original posting wasn't very clear: > There may be white space between a macro name and the ( )'s enclosing > its actual parameter list (Unix cpp disallows this). Doug Moen, watmath!watcgl!kdmoen University of Waterloo Computer Graphics Lab