Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997, 1998
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
 
31
#ifndef CONFIG_INCLUDED
32
#define CONFIG_INCLUDED
33
 
34
 
35
/*
36
    INCLUDE BASIC CONFIGURATION FILES
37
 
38
    The basic compiler configuration macros are defined in the standard
39
    header ossg.h.  The basic API headers are included from ossg_api.h.
40
    Other API headers are included by individual modules.  The basic
41
    compiler configuration (i.e. C or C++) header is also included.
42
*/
43
 
44
#include "ossg_api.h"
45
#include "ossg.h"
46
#include "language.h"
47
 
48
 
49
/*
50
    USEFUL MACROS
51
 
52
    Useful general utility macros (including discarded function returns)
53
    can be placed here.
54
*/
55
 
56
#define streq( A, B )	( strcmp ( ( A ), ( B ) ) == 0 )
57
#define array_size( A )	( ( int ) sizeof ( A ) / ( int ) sizeof ( *( A ) ) )
58
#define NIL( A )	( ( A * ) NULL )
59
#define NULL_gen_ptr	( ( gen_ptr ) NULL )
60
 
61
#define fclose_v	IGNORE fclose
62
#define fflush_v	IGNORE fflush
63
#define fprintf_v	IGNORE fprintf
64
#define fputc_v		IGNORE fputc
65
#define fputs_v		IGNORE fputs
66
#define printf_v	IGNORE printf
67
#define putchar_v	IGNORE putchar
68
#define putc_v		IGNORE putc
69
#define puts_v		IGNORE puts
70
#define sprintf_v	IGNORE sprintf
71
#define vfprintf_v	IGNORE vfprintf
72
#define memcpy_v	IGNORE memcpy
73
#define strcpy_v	IGNORE strcpy
74
 
75
 
76
/*
77
    GENERIC POINTER AND SIZE TYPES
78
 
79
    The type gen_ptr is used to represent the generic pointer.  The type
80
    gen_size is used to represent a generic size type (it is equivalent
81
    to size_t).
82
*/
83
 
84
#if FS_PTR_VOID
85
typedef void *gen_ptr ;
86
#else
87
typedef char *gen_ptr ;
88
#endif
89
 
90
typedef unsigned long gen_size ;
91
 
92
 
93
/*
94
    ASSERTION MACROS
95
 
96
    These macros are used in connection with the assertion routines.  If
97
    the macro DEBUG is defined then assertions will be included in the
98
    program along with other aids to program development.  The standard
99
    __FILE__ and __LINE__ macros are defined to dummy values for the
100
    benefit of compilers which do not define them.
101
*/
102
 
103
#ifdef DEBUG
104
#define ASSERTS		1
105
#define RUNTIME		1
106
#endif
107
 
108
#ifndef __FILE__
109
#define __FILE__	"unknown"
110
#endif
111
 
112
#ifndef __LINE__
113
#define __LINE__	1
114
#endif
115
 
116
 
117
#endif