This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Feature idea for gcc


> Martin,
> Now there is a strong idea for accomplishing your goal...
> Base your external processor on one of the many "literate programming" 
> processors - only extract the *.h rather than the entire source *.c
> Perhaps even use a "java-doc" like structure if you prefer.

That's also a technically stronger approach. Automatically extracing
.h files from random .c files is a bad idea, it encourages poor practice.
But extracting .h files from specially prepared .c files a la Java is
much more presentable (personally I think the Java approach is a mistake
compared to separately prepared and maintained specifications, but I
realize there are legitimate arguments on the other side).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]