Article View: gnu.gcc.help
Article #50789size_t, wchar_t, ptrdiff_t **NEVER** defined??
From: Ed Gamble
Date: Thu, 26 Aug 1993 13:32
Date: Thu, 26 Aug 1993 13:32
68 lines
2653 bytes
2653 bytes
SunOS 4.1.2, gcc-2.4.5 Fixincludes generated the following file for sys/stdtypes.h. The 'double nested' defines prevent size_t, wchar_t and ptrdiff_t from ever being declared/typedef-ed. If it is important (I doubt it), I didn't make the stage3 compiler and compare the results. I don't think that explains the fixincludes result below. Have I overlooked some configuration/makefile flag? I used ./configure --target=sparc-sun-sunos4.1 --prefex=/usr/local/gnu -- Ed /* @(#)stdtypes.h 1.6 90/01/04 SMI */ /* * Suppose you have an ANSI C or POSIX thingy that needs a typedef * for thingy_t. Put it here and include this file wherever you * define the thingy. This is used so that we don't have size_t in * N (N > 1) different places and so that we don't have to have * types.h included all the time and so that we can include this in * the lint libs instead of termios.h which conflicts with ioctl.h. */ #ifndef __sys_stdtypes_h #define __sys_stdtypes_h typedef int sigset_t; /* signal mask - may change */ typedef unsigned int speed_t; /* tty speeds */ typedef unsigned long tcflag_t; /* tty line disc modes */ typedef unsigned char cc_t; /* tty control char */ typedef int pid_t; /* process id */ typedef unsigned short mode_t; /* file mode bits */ typedef short nlink_t; /* links to a file */ typedef long clock_t; /* units=ticks (typically 60/sec) */ typedef long time_t; /* value = secs since epoch */ #ifndef _GCC_SIZE_T #define _GCC_SIZE_T #ifndef _GCC_SIZE_T #define _GCC_SIZE_T typedef unsigned long int size_t; /* ??? */ #endif #endif #ifndef _GCC_PTRDIFF_T #define _GCC_PTRDIFF_T #ifndef _GCC_PTRDIFF_T #define _GCC_PTRDIFF_T typedef int ptrdiff_t; /* result of subtracting two pointers */ #endif #endif #ifndef _GCC_WCHAR_T #define _GCC_WCHAR_T #ifndef _GCC_WCHAR_T #define _GCC_WCHAR_T typedef unsigned short wchar_t; /* big enough for biggest char set */ #endif #endif #endif /* !__sys_stdtypes_h */
Technical Details
Message-ID:
<EBG.93Aug26133204@hoshi.hip.atr.co.jp>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!agate!ames!koriel!sh.wide!wnoc-kyo!atrwide!atr-hr!atr-hr!ebgShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5435c9574ac5ba84,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-08-25 23:07:13 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!agate!ames!koriel!sh.wide!wnoc-kyo!atrwide!atr-hr!atr-hr!ebg From: ebg@hoshi.hip.atr.co.jp (Ed Gamble) Subject: size_t, wchar_t, ptrdiff_t **NEVER** defined?? Date: Thu, 26 Aug 1993 13:32:04 GMT Organization: ATR Human Information Processing Research Labs., Japan Sender: news@hip.atr.co.jp (USENET News System) Message-ID: <EBG.93Aug26133204@hoshi.hip.atr.co.jp> Lines: 68