Scientific Operations Bellum Gratia Artis

testing - 1995 - January - this message

[ previous , next ]

Subject: macro expansion

From:	bischof@[REDACTED] (Hans-Peter Bischof)
Date:	Sat, 14 Jan 1995 05:35:13 -0500

The program:
% cat failed.c
#include 
#include 

#define x(p) printf("Macro expansion %d\n", p );
static void * Point() { int x; }
main() {}

The problem:
Macros kc failed.c
failed.c:7 syntax in macro expansion: x
failed.c:8 syntax error, last name: x

The inexplicable:
% cpp failed.c | kc -o failed.k
% kl failed.k


Thanks for your help.

-hp