delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/06/16/09:01:07

Message-ID: <394A25CB.3BAB83B@softhome.net>
Date: Fri, 16 Jun 2000 15:04:11 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.73 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
CC: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Subject: Re: Patch: sentinels for typedefs in headers
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10006161124360 DOT 8899-100000 AT acp3bf> <3949F987 DOT B37E0BC4 AT softhome DOT net> <200006161212 DOT PAA13721 AT mailgw1 DOT netvision DOT net DOT il>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:
> > Ahh, so it's easy to convert wint_t to unsigned and properly convert EOF
> > to WEOF. So maybe it's OK to change?
> 
> Looks like it's indeed OK.

OK to install?

Laurynas

Index: djgpp/include/wchar.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/wchar.h,v
retrieving revision 1.3
diff -c -3 -p -r1.3 wchar.h
*** wchar.h	1999/06/03 17:22:28	1.3
--- wchar.h	2000/06/16 12:56:33
*************** __DJ_wint_t
*** 18,24 ****
  #define __DJ_wint_t
  
  #ifndef WEOF
! #define WEOF ((wint_t)(-1))
  #endif
  
  typedef struct
--- 18,24 ----
  #define __DJ_wint_t
  
  #ifndef WEOF
! #define WEOF ((wint_t)(0xFFFFFFFF))
  #endif
  
  typedef struct
Index: djgpp/include/wctype.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/wctype.h,v
retrieving revision 1.4
diff -c -3 -p -r1.4 wctype.h
*** wctype.h	1999/06/03 17:22:28	1.4
--- wctype.h	2000/06/16 12:56:35
*************** __DJ_wint_t
*** 21,27 ****
  #define __DJ_wint_t
  
  #ifndef WEOF
! #define WEOF ((wint_t)(-1))
  #endif
  
  /* Implementation defined types */
--- 21,27 ----
  #define __DJ_wint_t
  
  #ifndef WEOF
! #define WEOF ((wint_t)(0xFFFFFFFF))
  #endif
  
  /* Implementation defined types */
Index: djgpp/include/sys/djtypes.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/sys/djtypes.h,v
retrieving revision 1.4
diff -c -3 -p -r1.4 djtypes.h
*** djtypes.h	1999/12/14 11:57:45	1.4
--- djtypes.h	2000/06/16 12:56:35
***************
*** 22,27 ****
  #define __DJ_wchar_t    typedef unsigned short wchar_t;
  #endif
  
! #define __DJ_wint_t     typedef int wint_t;
  
  #endif
--- 22,27 ----
  #define __DJ_wchar_t    typedef unsigned short wchar_t;
  #endif
  
! #define __DJ_wint_t     typedef unsigned int wint_t;
  
  #endif

- Raw text -


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