line comments (## vs. //)

Robert Viduya robert at gitpyr.UUCP
Thu Nov 29 00:37:36 AEST 1984


[]
An even better idea is to incorporate pattern matching into the C preprocessor.
That way you could define your line comments as:

	#define '##\(.*\)$' '/* \1 */'

or

	#define '//\(.*\)$' '/* \1 */'


				robert

-- 
Robert Viduya
Office of Computing Services
Georgia Institute of Technology, Atlanta GA 30332
Phone:  (404) 894-4669

...!{akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert
...!{rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert



More information about the Comp.lang.c mailing list