delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/14/03:15:01

Date: Wed, 14 Jul 1999 10:12:19 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: Hiding globals when using flex/bison in a library
In-Reply-To: <7mgj93$4st$1@news.luth.se>
Message-ID: <Pine.SUN.3.91.990714101159.7264E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 13 Jul 1999, Martin Str|mberg wrote:

> Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
> : While `__anton_helm...' would probably never hit this problem, you
> : should be aware that ANSI C says that external names which begin with
> : two underscores are reserved for the standard libraries (libc.a and
> : such likes), as are those which begin with a single underscore and a
> : capital letter.
> 
> What about three underscores, then?

Any name that begins with three underscores has two underscores at its
beginning, right?

> Is there some other way to get unique identifiers?

Not in C, not that I know of, anyway.

The Standard promises that if you don't use any of the names reserved
by it, you should be safe, but that's only good for applications, not
for libraries.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019