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]

Feature Request for C


Hello!

I would like to know if adding namespaces for the C language (as a gnu
extension) could be added in GCC.
Except instead of using c++ style mangling, it would simply just
prepend the name of the namespace to the symbols in the file.
For example:

_Namespace ncurses_
{

int savetty(void);

}

Would be exported as ncurses_savetty, and could be called outside of
the namespace as:

ncurses_savetty();

This would ease the maintenance of a lot of existing C projects that
use this kind of naming convention.

-- 
Taylor Holberton
Petaluma, CA


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