can gcc output prototypes for later linking my lib?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux