Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef _RNL90DEF_H
00039 #define _RNL90DEF_H
00040
00041 #define BLANK ((int) ' ')
00042 #define NULLC ((int) '\0')
00043 #define OCTAL 1
00044 #define HEX 2
00045 #define SKIPMSG " - Skipped record named: "
00046 #define UNITSTR " On Unit: "
00047
00048 #define OCTSHFT 61
00049 #define HEXSHFT 60
00050 #define OCTSHFT4 30
00051 #define HEXSHFT4 28
00052
00053 #define MAXNAML 31
00054 #define MAXDIMS 8
00055 #define RNL_ERROR -3
00056
00057 #define ISBLANK(c) (((c) == ' ') || ((c) == '\t'))
00058 #define ISSEP(c) (isspace(c) || (c) =='/' || (c) ==',')
00059
00060 #define ENDD(cond, css, n) { \
00061 if (!(cond)) \
00062 _ferr(css, n); \
00063 else { \
00064 errn = n; \
00065 goto finalization; \
00066 } \
00067 }
00068 #define ERROR0(cond, css, n) { \
00069 if (!(cond)) \
00070 _ferr(css, n); \
00071 else \
00072 goto finalization; \
00073 }
00074
00075 #define ERROR1(cond, css, n, p) { \
00076 if (!(cond)) \
00077 _ferr(css, n, p); \
00078 else \
00079 goto finalization; \
00080 }
00081
00082 #define ERROR3(cond, css, n, p, t) { \
00083 if (!(cond)) \
00084 _ferr(css, n, p, t); \
00085 else \
00086 goto finalization; \
00087 }
00088
00089
00090
00091
00092
00093
00094 #define GETSTRD() { \
00095 SUBGTC(ch); \
00096 if (ch == enddelim) { \
00097 eos = -1; \
00098 SUBGTC(ch); \
00099 if (ch == enddelim) \
00100 eos = 0; \
00101 else { \
00102 cup->ulineptr--; \
00103 cup->ulinecnt++; \
00104 } \
00105 } \
00106 }
00107
00108
00109
00110 #ifndef TRUE
00111 #define TRUE (_btol(1))
00112 #endif
00113
00114 #ifndef FALSE
00115 #define FALSE (_btol(0))
00116 #endif
00117
00118 #ifndef _UNICOS
00119
00120
00121
00122
00123
00124
00125
00126 #define TOGGLE_CHAR(c,cat,val) { \
00127 if (val) \
00128 _MASKS[(c >= 0x3f) ? cat+1 : cat] |= (1 << (IND(c))); \
00129 else \
00130 _MASKS[(c >= 0x3f) ? cat+1 : cat] &= ~(1 << (IND(c))); \
00131 }
00132
00133
00134 #define IND(c) ((c >= 0x3f) ? 0x7f - (unsigned)c : (unsigned)(0x40 - c - 1))
00135 #endif
00136
00137
00138
00139 #ifndef MRNLDELIM
00140 #define MRNLDELIM 0
00141 #endif
00142
00143 #ifndef MRNLREP
00144 #define MRNLREP 4
00145 #endif
00146
00147 #ifndef MRNLSEP
00148 #define MRNLSEP 6
00149 #endif
00150
00151 #ifndef MRNLFLAG
00152 #define MRNLFLAG 8
00153 #endif
00154
00155 #ifndef MRNLCOMM
00156 #define MRNLCOMM 10
00157 #endif
00158
00159 extern long _BLNKSEP;
00160 #ifdef _WORD32
00161 extern long long _MASKS[];
00162 #else
00163 extern long _MASKS[];
00164 #endif
00165 extern unum_t _OUT_UNIT;
00166 extern long _SKP_MESS;
00167 extern long _TYP_CONV;
00168
00169 #endif