delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/01/23/07:51:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Fri, 23 Jan 2004 14:46:38 +0200
From: "Eli Zaretskii" <eliz AT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Message-Id: <2719-Fri23Jan2004144638+0200-eliz@elta.co.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <Pine.OSF.4.58.0401231150080.23983@sirppi.helsinki.fi> (message
from Esa A E Peuha on Fri, 23 Jan 2004 11:54:15 +0200 (EET))
Subject: Re: Patch for bsearch
References: <Pine DOT OSF DOT 4 DOT 58 DOT 0401201143590 DOT 29095 AT sirppi DOT helsinki DOT fi> <200401201626 DOT i0KGQ7d8026812 AT envy DOT delorie DOT com> <Pine DOT OSF DOT 4 DOT 58 DOT 0401231150080 DOT 23983 AT sirppi DOT helsinki DOT fi>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Fri, 23 Jan 2004 11:54:15 +0200 (EET)
> From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
> >
> > "void" has no size, so you can't do pointer arithmetic with it.  Any
> > void* must be cast to a pointer to non-void to do pointer arithmetic.
> 
> In GNU C, sizeof(void) == 1 and therefore arithmetic on void pointers
> works just like on char pointers.  Is there any reason not to use GNU
> extensions in library sources?

Only one: that some future version of GCC might flag these with
warnings, and we use flags that make warnings to be treated as errors.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019