Mail Archives: djgpp-workers/2000/06/16/09:01:07
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 -