Date: Wed, 14 Jul 1999 10:12:19 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Str|mberg 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.