question about code comment



Hi everyone,
I want to handle the "/* */" style comment in a file, for example,
there are two programs in a file:
int main()
{int x;return 0;}
int main()
{int y;return 0;}
How to use other preprocess to comment out one of the main() rather
than using "/* */"?
If there are more code segments, is your solution still applicable?

--
ethan

.



Relevant Pages

  • Re: #define and (brackets)
    ... Well I passed this through cl /E (preprocess to stdout) and got ... int main ...
    (microsoft.public.vc.language)
  • Re: question about code comment
    ... Ethan Meyers wrote: ... there are two programs in a file: int mainint main ... How to use other preprocess to comment out one of the mainrather ... Robert ...
    (comp.lang.c)
  • Re: question about code comment
    ... Ethan Meyers a écrit: ... there are two programs in a file: int mainint main ... How to use other preprocess to comment out one of the mainrather ... C is a sharp tool. ...
    (comp.lang.c)
  • Re: Linux 2.6.32.19
    ... +static inline int s390_nohz_delay ... unsigned long prev; ... struct irq_desc *desc; ... return ret; ...
    (Linux-Kernel)
  • [ncurses] cat xxx |more
    ... int main ... int ch, prev, row, col; ... Works something like a linux cat. ... But this program is limited by *term window size. ...
    (comp.unix.programmer)