From: Taylor Holberton <taylorcholberton@gmail.com>
To: gcc@gcc.gnu.org
Subject: Feature Request for C
Date: Sat, 06 May 2017 17:09:00 -0000 [thread overview]
Message-ID: <CAEj6FjabOZFtFD7vrzFiNGKB+Wn+DjXZjDXGwibxBS_oyXNPPw@mail.gmail.com> (raw)
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
next reply other threads:[~2017-05-06 17:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-06 17:09 Taylor Holberton [this message]
2017-05-08 11:00 ` Florian Weimer via gcc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEj6FjabOZFtFD7vrzFiNGKB+Wn+DjXZjDXGwibxBS_oyXNPPw@mail.gmail.com \
--to=taylorcholberton@gmail.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).