From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,87077e61d6b3095b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-22 14:50:49 PST From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: how do i implement double-dispatching? Date: 22 Dec 2003 17:47:48 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <18484099.QgktZUUZ8s@linux1.krischik.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1072133280 93849 80.67.180.195 (22 Dec 2003 22:48:00 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Mon, 22 Dec 2003 22:48:00 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: cl1motorsports Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Path: archiver1.google.com!news2.google.com!fu-berlin.de!feed.ac-versailles.fr!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail Xref: archiver1.google.com comp.lang.ada:3717 Date: 2003-12-22T17:47:48-05:00 cl1motorsports writes: > On Sun, 21 Dec 2003 08:39:59 -0500, Stephen Leake wrote: > > > cl1motorsports writes: > > > >> Seriously though, the most common preprocessor is > >> the one that comes with gcc, and it puts alot of non standard C stuff in > >> its output. > > > > Hmm. I never noticed anything that was not in the ANSI C standard. Are > > you sure it is truly not in that standard? Or is it just something you > > are not familiar with? In any case, you can disable any non-standard > > stuff by specifying -ansi. > > extern int vsnprintf (char * __s, size_t __maxlen, > __const char * __format, __gnuc_va_list __arg) > __attribute__ ((__format__ (__printf__, 3, 0))); > the __attribute__ keyword gets processed even when -ansi is used. By the compiler, true (although maybe not with -pedantic?). But we were talking about the preprocessor; it just passes __attribute__ thru. > But from what i can tell, that is only used in the system header > files. I mean it is not created by the preprocessor. I have a newer > version of GCC since i last checked this. so maybe it was only in > one version or something like that *shrugs*. Ok. So as far as you know, the gcc preprocessor is ANSI compliant. That was my point. -- -- Stephe