X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10202280505.AA15790@clio.rice.edu> Subject: v2.03 refresh++ diffs [was bzero...] To: djgpp-workers AT delorie DOT com Date: Wed, 27 Feb 2002 23:05:34 -0600 (CST) In-Reply-To: <8011-Wed27Feb2002185959+0200-eliz@is.elta.co.il> from "Eli Zaretskii" at Feb 27, 2002 06:59:59 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Precedence: bulk Just to confirm the v2.03 refresh++ plans: 1) CVS head of djgpp.env 2) CVS head of readme.1st + want to add some to it for new platforms. Changes to 2 headers for GCC 3 pain killers (I think we've agreed to these, but I need to commit them to the v2_03_1 branch): *** string.h_old Sun Jun 28 19:02:34 1998 --- string.h Wed Feb 27 22:41:40 2002 *************** size_t strxfrm(char *_s1, const char *_s *** 51,55 **** --- 51,59 ---- int bcmp(const void *_ptr1, const void *_ptr2, int _length); void * bcopy(const void *_a, void *_b, size_t _len); + #if __GNUC__ >= 3 + #define bzero(s, n) __builtin_bzero(s, n) + #else void * bzero(void *ptr, size_t _len); + #endif int ffs(int _mask); char * index(const char *_string, int _c); *** djtypes.h_old Tue Dec 14 05:57:46 1999 --- djtypes.h Wed Feb 27 22:53:52 2002 *************** *** 13,17 **** --- 13,25 ---- #define __DJ_time_t typedef unsigned int time_t; #define __DJ_uid_t typedef int uid_t; + + /* For GCC 3.00 or later we use its builtin va_list. */ + /* In most cases these definitions won't be used, because headers provided */ + /* by GCC hide them. But we can DTRT if GCC headers are missing. */ + #if __GNUC__ >= 3 + #define __DJ_va_list typedef __builtin_va_list va_list; + #else #define __DJ_va_list typedef void *va_list; + #endif #if defined(__cplusplus) && ( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )