6 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
3 |
|
|
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
6 |
acting through the Defence Evaluation and Research Agency
|
|
|
7 |
(DERA). It is made available to Recipients with a
|
|
|
8 |
royalty-free licence for its use, reproduction, transfer
|
|
|
9 |
to other parties and amendment for any purpose not excluding
|
|
|
10 |
product development provided that any such use et cetera
|
|
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
|
|
12 |
|
|
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
|
|
15 |
|
|
|
16 |
(2) Any amended version of it shall be clearly marked to
|
|
|
17 |
show both the nature of and the organisation responsible
|
|
|
18 |
for the relevant amendment or amendments;
|
|
|
19 |
|
|
|
20 |
(3) Its onward transfer from a recipient to another
|
|
|
21 |
party shall be deemed to be that party's acceptance of
|
|
|
22 |
these conditions;
|
|
|
23 |
|
|
|
24 |
(4) DERA gives no warranty or assurance as to its
|
|
|
25 |
quality or suitability for any purpose and DERA accepts
|
|
|
26 |
no liability whatsoever in relation to any use to which
|
|
|
27 |
it may be put.
|
|
|
28 |
*/
|
|
|
29 |
/*
|
|
|
30 |
SYSTEM START-UP FILE FOR linux/80x86
|
|
|
31 |
|
|
|
32 |
This file defines any built-in macros etc. necessary to traverse the
|
|
|
33 |
system headers correctly.
|
|
|
34 |
*/
|
|
|
35 |
|
|
|
36 |
#ifndef __TDF_SYS_INCLUDED
|
|
|
37 |
#define __TDF_SYS_INCLUDED
|
|
|
38 |
|
|
|
39 |
#include <Xsystem>
|
|
|
40 |
|
|
|
41 |
#pragma TenDRA begin
|
|
|
42 |
#pragma TenDRA set size_t : unsigned int
|
|
|
43 |
#pragma TenDRA set wchar_t : long int
|
|
|
44 |
#pragma TenDRA set ptrdiff_t : int
|
|
|
45 |
#pragma TenDRA character signed
|
|
|
46 |
#pragma TenDRA directive assert allow
|
|
|
47 |
#pragma TenDRA directive unassert allow
|
|
|
48 |
#pragma TenDRA longlong type allow
|
|
|
49 |
|
|
|
50 |
/* Put target-dependent macro definitions here */
|
|
|
51 |
|
|
|
52 |
#ifndef __NO_BUILTIN_ASSERTIONS
|
|
|
53 |
#assert machine(i386)
|
|
|
54 |
#assert cpu(i386)
|
|
|
55 |
#assert system(unix)
|
|
|
56 |
#assert system(posix)
|
|
|
57 |
#unassert lint
|
|
|
58 |
#endif
|
|
|
59 |
|
|
|
60 |
#define unix 1
|
|
|
61 |
#define i386 1
|
|
|
62 |
#define linux 1
|
|
|
63 |
#define __unix 1
|
|
|
64 |
#define __i386 1
|
|
|
65 |
#define __linux 1
|
|
|
66 |
#define __unix__ 1
|
|
|
67 |
#define __i386__ 1
|
|
|
68 |
#define __linux__ 1
|
|
|
69 |
#define __i486__ 1
|
|
|
70 |
|
|
|
71 |
#ifdef __LINUX_USE_ELF
|
|
|
72 |
#define __ELF__ 1
|
|
|
73 |
#define _I386_BYTEORDER_H
|
|
|
74 |
#endif
|
|
|
75 |
|
|
|
76 |
/* macros to match GNU C extensions used in headers */
|
|
|
77 |
#ifndef __inline__
|
|
|
78 |
#pragma TenDRA keyword __inline__ for inline
|
|
|
79 |
#endif
|
|
|
80 |
|
|
|
81 |
#ifndef __signed__
|
|
|
82 |
#define __signed__ signed
|
|
|
83 |
#endif
|
|
|
84 |
|
|
|
85 |
#ifndef __attribute__
|
|
|
86 |
#define __attribute__(xyz)
|
|
|
87 |
#endif
|
|
|
88 |
|
|
|
89 |
/* gcc has alloca builtin */
|
|
|
90 |
#include <alloca.h>
|
|
|
91 |
|
|
|
92 |
#endif
|