This is the mail archive of the gcc-help@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]

can gcc output prototypes for later linking my lib?


Isn't there any magic gcc option that spits out something like a
mylib_protos.h file that contains just the fdecls within the original lib
code like

extern void mylib_func(...);
....

Problem: i wrote a huge mylib. Maintaining the redundant list of function
declerations for the mylib_protos.h header file with "extern void
myfunc(...);" prototypes became really a mess.

PS: Some recdescent parsers may be able to parse c header files and spit out
the putatie prototypes. But they are surely not as robust as a native gcc
approach. protoize also doesn't seem to be the solution while the code may
be transformed to solve my problem.

Surely a FAQ candidate+TIA,
Murat

-- 
+++ GMX DSL-Tarife 3 Monate gratis* +++ Nur bis 25.7.2004 +++
Bis 24.000 MB oder 300 Freistunden inkl. http://www.gmx.net/de/go/dsl


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