🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: rot13 [Was : Re: conjugaison et autres ...]

#15156
From: Harpo
Date: Sat, 08 Oct 2005 05:17
52 lines
2725 bytes
Charlie Gordon wrote:

>> #ifdef DEBUG
>> #ifdef _GNUC_
>> #define xreturn( rc ) \
>> ( typeof( rc ) RC = rc; \
>>         fprintf( stderr, " function %s return %lx\n", _function_,
>>         (long)RC );\ return RC ; \
>> )
>> #else
>>         ( return rc )
>> #endif _GNUC_
>> #else
>>         ( return rc )
>> #endif DEBUG
>>
>> Enfin de m�moire un truc comme �a, pour _function_, je ne sais plus
>> tr�s bien.
> 
> Ton truc ne marche pas : (return c)  n'est pas une instruction
> conforme.

En effet mais j'ai bien dit 'un truc comme �a'.
J'ai oubli� des copi� coll� d'une ligne au dessus.
Corrigeons, j'ai compil�, j'avais notamment aussi oubli� les accolades :

#ifdef DEBUG
#ifdef __GNUC__
#define xreturn( rc ) \
( { __typeof__(rc) RC = rc; \
        fprintf( stderr, "function %s return %lx\n", __func__, \
                        (long)RC ); return RC ; \
} )
#else
#define xreturn( rc ) \
        return rc
#endif // __GNUC__
#else
#define xreturn( rc ) \
        return rc
#endif // DEBUG

> et la version de DEBUG ne marche pas pour des cas simples 
> comme:
> 
> return ((int)value);
> 
> ou
> 
> return ((a + b) * c);

Ah bon ? Et pourquoi donc ?
Technical Details
Message-ID: <43475686$0$17226$8fcfb975@news.wanadoo.fr>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail
References: <1126342327.583568.21420@g43g2000cwa.googlegroups.com> <4329e5d4$0$7846$8fcfb975@news.wanadoo.fr> <dge4b6$fqa$1@reader1.imaginet.fr> <432ab809$0$1734$8fcfb975@news.wanadoo.fr> <mn.84b07d59016a857b.31483@laposte.net> <433f16ac$0$27406$8fcfb975@news.wanadoo.fr> <mn.10907d5a55119e84.15512@YOURBRAnoos.fr> <433f9cb1$0$7821$8fcfb975@news.wanadoo.fr> <mn.128c7d5aa5238de0.15512@YOURBRAnoos.fr> <43403203$0$5388$8fcfb975@news.wanadoo.fr> <43403d27$0$306$7a628cd7@news.club-internet.fr> <4340cabe$0$27448$8fcfb975@news.wanadoo.fr> <43438f4d$0$21032$636a55ce@news.free.fr> <434433fa$0$5374$8fcfb975@news.wanadoo.fr> <43468180$0$20850$636a55ce@news.free.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!news1.google.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail
Message-ID: <43475686$0$17226$8fcfb975@news.wanadoo.fr>
From: Harpo <trashcan@hotmail.com>
Subject: Re: rot13 [Was : Re: conjugaison et autres ...]
Newsgroups: fr.comp.lang.c
Date: Sat, 08 Oct 2005 07:17:45 +0200
References: <1126342327.583568.21420@g43g2000cwa.googlegroups.com> <4329e5d4$0$7846$8fcfb975@news.wanadoo.fr> <dge4b6$fqa$1@reader1.imaginet.fr> <432ab809$0$1734$8fcfb975@news.wanadoo.fr> <mn.84b07d59016a857b.31483@laposte.net> <433f16ac$0$27406$8fcfb975@news.wanadoo.fr> <mn.10907d5a55119e84.15512@YOURBRAnoos.fr> <433f9cb1$0$7821$8fcfb975@news.wanadoo.fr> <mn.128c7d5aa5238de0.15512@YOURBRAnoos.fr> <43403203$0$5388$8fcfb975@news.wanadoo.fr> <43403d27$0$306$7a628cd7@news.club-internet.fr> <4340cabe$0$27448$8fcfb975@news.wanadoo.fr> <43438f4d$0$21032$636a55ce@news.free.fr> <434433fa$0$5374$8fcfb975@news.wanadoo.fr> <43468180$0$20850$636a55ce@news.free.fr>
Organization: ARG ; Association pour la Rehabilitation du Goto
User-Agent: KNode/0.8.2
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
Lines: 52
NNTP-Posting-Date: 08 Oct 2005 07:17:58 CEST
NNTP-Posting-Host: 83.195.126.74
X-Trace: 1128748678 news.wanadoo.fr 17226 83.195.126.74:34780
X-Complaints-To: abuse@wanadoo.fr