From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Gabriel_D=EDaz?= To: "'Fans of the OS Plan 9 from Bell Labs'" <9fans@cse.psu.edu> Date: Wed, 14 Mar 2007 07:38:03 +0100 Message-ID: <01c401c76603$5335ac70$f9a10550$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: [9fans] compiling error Topicbox-Message-UUID: 22f7eb24-ead2-11e9-9d60-3106f5b1d025 Hello In the following sample, why the commented print gives a syntax error? cpu% 8c -FVw t.c t.c:12 syntax error, last name: maxarg2 #include #include static double maxarg1,maxarg2; #define FMAX(a,b) (maxarg1=(a),maxarg2=(b),(maxarg1)>(maxarg2)?(maxarg1):(maxarg2)); void main(void){ float a,b,c,d; a=1.0; b=2.0; c=3.0; d=FMAX(b,1.0); // print("%f", fabs(a)*FMAX(b,1.0)/c); print("%f", fabs(a)*d/c); } Thanks Gabi