this repo has no description
at main 140 lines 2.8 kB view raw
1/* 2 DFCNFCMP.h 3 4 Copyright (C) 2006 Bernd Schmidt, Philip Cummins, Paul C. Pratt 5 6 You can redistribute this file and/or modify it under the terms 7 of version 2 of the GNU General Public License as published by 8 the Free Software Foundation. You should have received a copy 9 of the license along with this file; see the file COPYING. 10 11 This file is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 license for more details. 15*/ 16 17/* 18 DeFaults for CoNFiguration of CoMPiler 19*/ 20 21#ifdef DFCNFCMP_H 22#error "header already included" 23#else 24#define DFCNFCMP_H 25#endif 26 27 28typedef ui3b *ui3p; 29typedef ui4b *ui4p; 30typedef ui5b *ui5p; 31 32/* 33 Largest efficiently supported 34 representation types. uimr should be 35 large enough to hold number of elements 36 of any array we will deal with. 37*/ 38typedef ui5r uimr; 39typedef si5r simr; 40 41#define blnr ui3r 42#define trueblnr 1 43#define falseblnr 0 44 45#define nullpr ((void *) 0) 46 47#define anyp ui3p 48 49/* pascal string, single byte characters */ 50#define ps3p ui3p 51 52#ifndef MayInline 53#define MayInline 54#endif 55 56#ifndef MayNotInline 57#define MayNotInline 58#endif 59 60#ifndef my_reg_call 61#define my_reg_call 62#endif 63 64#ifndef my_osglu_call 65#define my_osglu_call 66#endif 67 68#define LOCALVAR static 69#define GLOBALVAR 70#define EXPORTVAR(t, v) extern t v; 71 72#define LOCALFUNC static MayNotInline 73#define FORWARDFUNC LOCALFUNC 74#define GLOBALFUNC MayNotInline 75#define EXPORTFUNC extern 76#define IMPORTFUNC EXPORTFUNC 77#define TYPEDEFFUNC typedef 78 79#define LOCALPROC LOCALFUNC void 80#define GLOBALPROC GLOBALFUNC void 81#define EXPORTPROC EXPORTFUNC void 82#define IMPORTPROC IMPORTFUNC void 83#define FORWARDPROC FORWARDFUNC void 84#define TYPEDEFPROC TYPEDEFFUNC void 85 86#define LOCALINLINEFUNC static MayInline 87#define LOCALINLINEPROC LOCALINLINEFUNC void 88 89#define LOCALFUNCUSEDONCE LOCALINLINEFUNC 90#define LOCALPROCUSEDONCE LOCALINLINEPROC 91 92#define GLOBALOSGLUFUNC GLOBALFUNC my_osglu_call 93#define EXPORTOSGLUFUNC EXPORTFUNC my_osglu_call 94#define GLOBALOSGLUPROC GLOBALFUNC my_osglu_call void 95#define EXPORTOSGLUPROC EXPORTFUNC my_osglu_call void 96 /* 97 For functions in operating system glue that 98 are called by rest of program. 99 */ 100 101#ifndef BigEndianUnaligned 102#define BigEndianUnaligned 0 103#endif 104 105#ifndef LittleEndianUnaligned 106#define LittleEndianUnaligned 0 107#endif 108 109/* 110 best type for ui4r that is probably in register 111 (when compiler messes up otherwise) 112*/ 113 114#ifndef ui3rr 115#define ui3rr ui3r 116#endif 117 118#ifndef ui4rr 119#define ui4rr ui4r 120#endif 121 122#ifndef si5rr 123#define si5rr si5r 124#endif 125 126#ifndef my_align_8 127#define my_align_8 128#endif 129 130#ifndef my_cond_rare 131#define my_cond_rare(x) (x) 132#endif 133 134#ifndef Have_ASR 135#define Have_ASR 0 136#endif 137 138#ifndef HaveMySwapUi5r 139#define HaveMySwapUi5r 0 140#endif