Last change
on this file since 123 was 123, checked in by zap, 22 years ago |
Started the work for re-designing the EMX C runtime library to not require
EMX.DLL. The new design is projected to be as follows:
- all emx syscalls are replaced with the routines from the old sys.lib library
which is now compilable in both a.out and OMF formats.
- the sys.a library should be made replaceable and selectable by some gcc
switch (e.g. -msyslib=emx would link with emx.a instead of sys.a which would
give almost full backward compatibility with emx).
- All C functions names were renamed to not contain the starting underscore
(e.g. fopen and not _fopen). The underscored aliases will be added later
with the c_alias library (which will be generated automatically from all
public symbols of libc; any exported symbol that do not start with an
underscore will be given an underscored alias unless such a symbol is already
defined).
Also a lot of updates to the building system. It is now much faster (thanks
to Knut's suggestion of using ash's builtin echo).
Also re-wrote thunk1.asm and thunk2.asm to GAS format; this removes the need
for MASM and makes it possible to use 16-bit functions in a.out programs
without the need for EMX.DLL.
Also made a lot of small changes I don't remember now.
|
-
Property cvs2svn:cvs-rev
set to
1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
776 bytes
|
Line | |
---|
1 | /* stddef.h (emx+gcc) */
|
---|
2 |
|
---|
3 | #ifndef _STDDEF_H
|
---|
4 | #define _STDDEF_H
|
---|
5 |
|
---|
6 | #if defined (__cplusplus)
|
---|
7 | extern "C" {
|
---|
8 | #endif
|
---|
9 |
|
---|
10 | #if !defined (_PTRDIFF_T)
|
---|
11 | #define _PTRDIFF_T
|
---|
12 | typedef long ptrdiff_t;
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | #if !defined (_SIZE_T)
|
---|
16 | #define _SIZE_T
|
---|
17 | typedef unsigned long size_t;
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | #if !defined (_WCHAR_T) && !defined (__cplusplus)
|
---|
21 | #define _WCHAR_T
|
---|
22 | typedef unsigned short wchar_t;
|
---|
23 | #endif
|
---|
24 |
|
---|
25 | #if !defined (NULL)
|
---|
26 | #if defined (__cplusplus)
|
---|
27 | #define NULL 0
|
---|
28 | #else
|
---|
29 | #define NULL ((void *)0)
|
---|
30 | #endif
|
---|
31 | #endif
|
---|
32 |
|
---|
33 | #define offsetof(type, member) ((size_t)&((type *)0)->member)
|
---|
34 |
|
---|
35 |
|
---|
36 | #if (!defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)) \
|
---|
37 | || defined (_WITH_UNDERSCORE)
|
---|
38 |
|
---|
39 | unsigned *__threadid (void);
|
---|
40 | #define _threadid (__threadid ())
|
---|
41 |
|
---|
42 | #endif
|
---|
43 |
|
---|
44 | #if defined (__cplusplus)
|
---|
45 | }
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | #endif /* not _STDDEF_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.