Some C sources that I have are c99, other are c89.

The c99 sources can use //-style comments.
The c89 sources can use only /**/-style comments.

I'd like to have my "commentify" macro to
use // in c99 sources, and /**/ in c89 sources.

But how to tell those two types apart ? Any ideas ?
I'm thinking about searching the file for pre-existing //.
That's crude but I can't think of anything else.
What would be good method to detect c99 vs c89 ?

Yakov

Reply via email to