Re: [PATCH]Macro bulletproofing [APPLIED, PARTIALLY]

2002-02-26 Thread Dan Sugalski
At 6:32 PM -0600 2/22/02, Brian Lee Ray wrote: >Fixes various warts in header files, such as: >* macros > -added parens to prevent problems with operator precedence > -removed ; at end >* removed SSIZE_MAX, since ssize_t is no longer used >* removed some misinformation about NULL and function

Re: [PATCH] Bowing to necessity (was Re: [PATCH]Macro bulletproofing )

2002-02-24 Thread Brian Lee Ray
- Original Message - From: "Josh Wilmes" <[EMAIL PROTECTED]> To: "Brian Lee Ray" <[EMAIL PROTECTED]> Cc: "Nicholas Clark" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, February 23, 2002 12:08 PM Subject: Re: [PATCH] Bo

Re: [PATCH] Bowing to necessity (was Re: [PATCH]Macro bulletproofing )

2002-02-23 Thread Josh Wilmes
At 6:57 on 02/23/2002 CST, Brian Lee Ray <[EMAIL PROTECTED]> wrote: > However, a null pointer constant, expressed as either 0 or (void*)0 (and the > definition of NULL must be one of the above), can be safely compared with > or assigned to either a function pointer or a data pointer. Consider t

Re: [PATCH] Bowing to necessity (was Re: [PATCH]Macro bulletproofing )

2002-02-23 Thread Brian Lee Ray
- Original Message - From: "Nicholas Clark" <[EMAIL PROTECTED]> To: "Brian Lee Ray" <[EMAIL PROTECTED]> Cc: "Josh Wilmes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, February 23, 2002 5:32 AM Subject: Re: [PATCH] Bo

Re: [PATCH] Bowing to necessity (was Re: [PATCH]Macro bulletproofing )

2002-02-23 Thread Segher Boessenkool
> >An integral constant expression with the value 0, or such an > > expression cast to type void *, is called a null pointer > > constant. > Function pointers are not data pointers. > > [And thinking about it, that excerpt doesn't say that. I hope its context did, > else I'd accu

Re: [PATCH] Bowing to necessity (was Re: [PATCH]Macro bulletproofing )

2002-02-23 Thread Nicholas Clark
On Sat, Feb 23, 2002 at 03:21:08AM -0600, Brian Lee Ray wrote: > > From: "Josh Wilmes" <[EMAIL PROTECTED]> > > Using NULL where a function pointer is expected is considered an error by > > tcc, and a mandatory warning by lcc. It is my understanding that > conversion > > between data pointers an

[PATCH] Bowing to necessity (was Re: [PATCH]Macro bulletproofing )

2002-02-23 Thread Brian Lee Ray
From: "Josh Wilmes" <[EMAIL PROTECTED]> > > Good stuff! However, regarding the function pointer thing, i've got compilers > (tcc and lcc) which disagree with you. > > Using NULL where a function pointer is expected is considered an error by > tcc, and a mandatory warning by lcc. It is my unders

Re: [PATCH]Macro bulletproofing

2002-02-22 Thread Josh Wilmes
Good stuff! However, regarding the function pointer thing, i've got compilers (tcc and lcc) which disagree with you. Using NULL where a function pointer is expected is considered an error by tcc, and a mandatory warning by lcc. It is my understanding that conversion between data pointers and

[PATCH]Macro bulletproofing

2002-02-22 Thread Brian Lee Ray
Fixes various warts in header files, such as: * macros -added parens to prevent problems with operator precedence -removed ; at end * removed SSIZE_MAX, since ssize_t is no longer used * removed some misinformation about NULL and function pointers from a comment. * added some more INLINE def