🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #15489

Re: conjugaison et autres exos sur les chaines [Was : Un système de conj...]

#15489
From: Antoine Leca
Date: Fri, 23 Sep 2005 12:38
31 lines
3267 bytes
En <news:mn.b4487d596027b6ee.15512@YOURBRAnoos.fr>,
    Emmanuel Delahaye va escriure:
> Dans la version d�finitive (jusqu'� nouvel ordre), c'est
>
> #if !defined (__STDC_VERSION__)\
>   || (defined (__STDC_VERSION__) && __STDC_VERSION__ < 199901)
> #error must be a C99 compiler
> #endif

Tu te compliques la vie.

    #if __STDC_VERSION__ < 199901

fait la m�me chose. Si tu tombes sur un compilo ant�diluvien et aconforme
qui remplace un identificateur non d�fini par le vide (au lieu de 0) dans
une expression #if, tu auras une erreur de syntaxe une ligne au-dessus mais
le r�sultat sera le m�me ;-).


Et si cela te g�ne vraiment vraiment, tu peux toujours �crire

    #if __STDC_VERSION__-0 < 199901


(Notez le - au lieu de +, car les anciens compilateurs ne comprenaient pas
le + unaire. Ce truc marche aussi tr�s bien en g�n�ral --pas en C, quoi;
probablement pas en Perl non plus-- pour forcer la conversion d'une cha�ne
en nombre.)


Antoine
Technical Details
Message-ID: <dh0svj$rid$1@shakotay.alphanet.ch>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news-zh.switch.ch!switch.ch!news.imp.ch!news.imp.ch!80.83.46.147.MISMATCH!news.alphanet.ch!alphanet.ch!not-for-mail
References: <1126342327.583568.21420@g43g2000cwa.googlegroups.com> <4329e5d4$0$7846$8fcfb975@news.wanadoo.fr> <dge4b6$fqa$1@reader1.imaginet.fr> <mn.837a7d59123d924a.15512@YOURBRAnoos.fr> <432adddf$0$17220$8fcfb975@news.wanadoo.fr> <mn.84407d597cfa6e6e.15512@YOURBRAnoos.fr> <432b2a92$0$7861$8fcfb975@news.wanadoo.fr> <432c19e0$0$1710$8fcfb975@news.wanadoo.fr> <432cad90$0$27422$8fcfb975@news.wanadoo.fr> <432d1b7c$0$1743$8fcfb975@news.wanadoo.fr> <432d3117$0$1742$8fcfb975@news.wanadoo.fr> <mn.93877d590449a7bc.15512@YOURBRAnoos.fr> <432d7667$0$17248$8fcfb975@news.wanadoo.fr> <mn.94047d599f0cc076.15512@YOURBRAnoos.fr> <432da70c$0$1735$8fcfb975@news.wanadoo.fr> <mn.94c47d590202e83a.15512@YOURBRAnoos.fr> <43315679$0$27421$8fcfb975@news.wanadoo.fr> <mn.ad0b7d59687aaf3b.31483@laposte.net> <mn.ad467d5958d83976.15512@YOURBRAnoos.fr> <4332b9d5$0$20859$626a14ce@news.free.fr> <mn.b4487d596027b6ee.15512@YOURBRAnoos.fr>

Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,b21b26167a936e28
X-Google-Attributes: gidf9822,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news-zh.switch.ch!switch.ch!news.imp.ch!news.imp.ch!80.83.46.147.MISMATCH!news.alphanet.ch!alphanet.ch!not-for-mail
From: "Antoine Leca" <root@localhost.invalid>
Newsgroups: fr.comp.lang.c
Subject: Re: conjugaison et autres exos sur les chaines [Was : Un système de conj...]
Date: Fri, 23 Sep 2005 14:38:10 +0200
Organization: Posted through ALPHANET (http://www.alphanet.ch/)
Lines: 32
Sender: antoinel@143.red-217-127-250.staticip.rima-tde.net
Message-ID: <dh0svj$rid$1@shakotay.alphanet.ch>
References: <1126342327.583568.21420@g43g2000cwa.googlegroups.com> <4329e5d4$0$7846$8fcfb975@news.wanadoo.fr> <dge4b6$fqa$1@reader1.imaginet.fr> <mn.837a7d59123d924a.15512@YOURBRAnoos.fr> <432adddf$0$17220$8fcfb975@news.wanadoo.fr> <mn.84407d597cfa6e6e.15512@YOURBRAnoos.fr> <432b2a92$0$7861$8fcfb975@news.wanadoo.fr> <432c19e0$0$1710$8fcfb975@news.wanadoo.fr> <432cad90$0$27422$8fcfb975@news.wanadoo.fr> <432d1b7c$0$1743$8fcfb975@news.wanadoo.fr> <432d3117$0$1742$8fcfb975@news.wanadoo.fr> <mn.93877d590449a7bc.15512@YOURBRAnoos.fr> <432d7667$0$17248$8fcfb975@news.wanadoo.fr> <mn.94047d599f0cc076.15512@YOURBRAnoos.fr> <432da70c$0$1735$8fcfb975@news.wanadoo.fr> <mn.94c47d590202e83a.15512@YOURBRAnoos.fr> <43315679$0$27421$8fcfb975@news.wanadoo.fr> <mn.ad0b7d59687aaf3b.31483@laposte.net> <mn.ad467d5958d83976.15512@YOURBRAnoos.fr> <4332b9d5$0$20859$626a14ce@news.free.fr> <mn.b4487d596027b6ee.15512@YOURBRAnoos.fr>
NNTP-Posting-Host: 143.red-217-127-250.staticip.rima-tde.net
Mime-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-15"
Content-Transfer-Encoding: 8bit
X-Trace: shakotay.alphanet.ch 1127479091 28237 217.127.250.143 (23 Sep 2005 12:38:11 GMT)
X-Complaints-To: usenet@alphanet.ch
NNTP-Posting-Date: Fri, 23 Sep 2005 12:38:11 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506