Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site hou4b.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!ariel!hou4b!ams From: ams@hou4b.UUCP (Andrew Shaw) Newsgroups: net.unix-wizards Subject: #define Question Message-ID: <1099@hou4b.UUCP> Date: Wed, 15-Aug-84 11:38:02 EDT Article-I.D.: hou4b.1099 Posted: Wed Aug 15 11:38:02 1984 Date-Received: Thu, 16-Aug-84 02:51:02 EDT Organization: AT&T Information Systems Laboratories, Holmdel, NJ Lines: 15 I want to use the C preprocessor (sVr2) in order to change all function calls of the form foobar() to calls of the form foobar(x,y,z). However the obvious solution #define foobar() foobar (x, y, z) ... foobar(); /* want to have foobar(x, y, z) here */ does not work: cpp complains that the call has an incorrect number of arguments. Does anyone have any ideas as to how I can get the preprocessor to not interpret the #define as a macro definition, but rather as a straight text replacement? Thanks, Andrew Shaw AT&TISL 834-4085 HO 1C-412A houx[a-z]!hou4b!ams