qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Re: Re: completely OT: C Q/As : let's feed the troll
@ 2004-06-24 20:13 Bob Barry
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Barry @ 2004-06-24 20:13 UTC (permalink / raw)
  To: qemu-devel

On Thu, 24 Jun 2004 16:21, Charlie Gordon wrote:
> Do you know any tool that can detect such horrors ?

dcc:
   http://wwwsi.supelec.fr/yn/presentdcc.eng.html

^ permalink raw reply	[flat|nested] 2+ messages in thread
* OT: C Q/As, was Re: [Qemu-devel] security_20040618
@ 2004-06-21  8:50 Christof Petig
  2004-06-21 15:44 ` Michael Jennings
  0 siblings, 1 reply; 2+ messages in thread
From: Christof Petig @ 2004-06-21  8:50 UTC (permalink / raw)
  To: gmane; +Cc: qemu-devel

Charlie Gordon schrieb:
> Charlie the C teaser.
> ---------------------
> one of my favorite Q/As : what is wrong with : enum BOOL { FALSE=0,
> TRUE=1 }; ?

can you enlighten me? The only drawback I see is that with plain C (no 
C++) typedef enum { ... } BOOL; would be more appropriate.

I would propose
#ifndef __cplusplus
typedef enum { false, true } bool;
#endif
as the optimal solution for a problem I hardly have (since I usually 
don't go back to coding in C)

    Christof

PS: I used to ask: Why does this crash later (if you are lucky)

const char *itoa(int i)
{  char x[20];
    snprintf(x,sizeof x,"%d",i);
    return x;
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-24 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 20:13 [Qemu-devel] Re: Re: completely OT: C Q/As : let's feed the troll Bob Barry
  -- strict thread matches above, loose matches on Subject: below --
2004-06-21  8:50 OT: C Q/As, was Re: [Qemu-devel] security_20040618 Christof Petig
2004-06-21 15:44 ` Michael Jennings
2004-06-22  9:57   ` [Qemu-devel] Re: completely OT: C Q/As, was security_20040618 Charlie Gordon
2004-06-22 15:38     ` [Qemu-devel] Re: completely OT: C Q/As Michael Jennings
2004-06-24 14:21       ` [Qemu-devel] Re: Re: completely OT: C Q/As : let's feed the troll Charlie Gordon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).