delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/02/06/15:19:22

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Wed, 06 Feb 2002 22:13:03 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <3069-Wed06Feb2002221302+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com, ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De
In-reply-to: <10202061905.AA25442@clio.rice.edu> (sandmann@clio.rice.edu)
Subject: Re: conflicting types for bzero (gcc303)
References: <10202061905 DOT AA25442 AT clio DOT rice DOT edu>
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

> From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
> Date: Wed, 6 Feb 2002 13:05:59 -0600 (CST)
> 
> #if __GNUC__ >= 3
> #define bcopy(s, d, n) memcpy(d, s, n)
> #define bzero(s, n) memset(s, 0, n)
> #else
> void *	bcopy(const void *_a, void *_b, size_t _len);
> void *	bzero(void *ptr, size_t _len);
> #endif
> 
> 
> Or can the prototypes be removed completely with GCC 3.x if they are
> built-in?

I think we should modify bzero and bcopy so that they fit the
(universally accepted) prototypes GCC expects.

- Raw text -


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