2 Copyright (c) 1999-2012 OPEN CASCADE SAS
4 The content of this file is subject to the Open CASCADE Technology Public
5 License Version 6.5 (the "License"). You may not use the content of this file
6 except in compliance with the License. Please obtain a copy of the License
7 at http://www.opencascade.org and read it completely before using this file.
9 The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10 main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12 The Original Code and all software distributed under the License is
13 distributed on an "AS IS" basis, without warranty of any kind, and the
14 Initial Developer hereby disclaims all such warranties, including without
15 limitation, any warranties of merchantability, fitness for a particular
16 purpose or non-infringement. Please see the License for the specific terms
17 and conditions governing the rights and limitations under the License.
21 /* Get local machine id, operating system, compiler and/or library */
25 /* C Library routines needed in standard include files */
34 /* Current CGM version */
39 #define FREE(x) free ( (char *) x )
41 #ifndef NULL /* Null Pointer */
42 #define NULL (int *) 0
45 /* Define anything that has not been explicitly set **************/
48 #define SignChar signed char
69 /* Define macros for some maths routines which may cause problems */
72 #define SQRT(x) sqrt( (double) (x) )
75 #define FABS(x) fabs( (double) (x) )
78 #define MALLOC(n,s) malloc( (size_t) ((n)*(s)) )
81 /* Define if font system needed */
96 #ifndef FIXED_BUFFER /* Use variable communications Area by default */
100 #ifndef ARRAY_MAX /* Maximum Sizes for Interface buffer */
101 #define ARRAY_MAX 1024
104 #ifndef STRING_MAX /* Maximum String length */
105 #define STRING_MAX 1024
108 #ifndef DEFOUT /* Default Standard Output type */
112 #ifndef ERROR_MAX /* Maximum Number of errors */
116 #ifndef DEFVERBOSE /* Default Verbose mode flag */
117 #define DEFVERBOSE FALSE
120 #ifndef DEFQUIET /* Default quiet output flag */
121 #define DEFQUIET FALSE
124 #ifndef DEFMOVIE /* Default Continuous play mode */
125 #define DEFMOVIE FALSE
128 #ifndef DEFDOUBLE /* Default Double buffer mode */
129 #define DEFDOUBLE FALSE
132 #ifndef DEFFULLSCRN /* Default Full screen mode */
133 #define DEFFULLSCRN TRUE
136 #ifndef DEFRALGKSGDP /* RAL-GKS GDPs recognised */
137 #define DEFRALGKSGDP FALSE
140 #ifndef LPOINT /* Define default LPOINT commands */
143 #define LPOINT(p) Lpoint *p
145 #define STOREPOINT(p,q) (*p).x = q.x; (*p++).y = q.y
146 #define STOREVALUE(p,q,r) (*p).x = q; (*p++).y = r
148 #define NEWSUBLIST(p)
152 #ifndef MAXFNSIZE /* Maximum font name size */
156 #ifndef DATADIR /* Directory for font & data files */
160 #ifndef FILESEP /* File seperator */
164 #ifndef PATHDELIM /* Path seperator */
165 #define PATHDELIM '/'
168 #ifndef MAXFLSIZE /* Maximum length of filename - whole tree */
172 #ifndef NAMELGTH /* Maximum length of filename - name only */
176 #ifndef EXTLGTH /* Maximum length of filename - extension */
180 #ifndef LFILEDEF /* Maximum length of filename extra data */
184 #ifndef F_READ /* Read file mode */
188 #ifndef F_WRITE /* Write file mode */
192 #ifndef BUFF_LEN /* CGM output record length */
193 #define BUFF_LEN (size_t) 80
196 #ifndef OBUFF_LEN /* CGM output buffer size */
197 #define OBUFF_LEN (size_t) 512
200 #ifndef NFRAME /* Maximum number of frames */
204 #ifndef NMETA /* Maximum number of metafiles */
208 #ifndef MAXPTS /* Maximum storage for fill area processing */
212 #ifndef SET_MAX /* Maximum number of Polygon sets ?? */
216 #ifndef COLOUR_TAB /* Colour table size */
217 #define COLOUR_TAB 256
220 #ifndef COLOUR_BITS /* Number of bit planes */
221 #define COLOUR_BITS 8
224 #ifndef PATT_TAB /* Pattern table size */
225 #define PATT_TAB 1024
228 #ifndef PATTERNS /* Maximum number of Patterns */
232 #ifndef NPOWER /* No of entries in power-of-two table */
236 #ifndef HASHSIZE /* No of entries in Code hash table */
244 #define HASHSIZE 1024
248 #ifndef NULLSTR /* Null string pointer */
249 #define NULLSTR (char *) NULL
252 #ifdef DEBUG /* turn on extra debugging in font package */
257 /* All the following definitions provide limits for the number
258 | of values that can be read in by the font utility; they do
259 | not cause any permanent memory to be allocated, so can be
260 | set high for safety.
263 #ifndef MAXCSET /* maximum number of ISO character sets */
267 #ifndef MAXFUDGE /* maximum number of fudge character sets */
271 #ifndef MAXFAMILY /* maximum number of typeface family definitions */
272 #define MAXFAMILY 2000
275 #ifndef MAXALIAS /* maximum number of family aliases */
279 #ifndef MAXSFONT /* maximum number of specific fonts */
283 #ifndef MAXSOURCE /* maximum number of typeface sources */
284 #define MAXSOURCE 100
287 #ifndef MAXDESIGN /* maximum number of ISO design groups */
288 #define MAXDESIGN 200
291 #ifndef MAXMETHOD /* maximum number of output methods */
295 #ifndef MAXFPERM /* maximum number of fonts per method */
296 #define MAXFPERM 1000
299 #ifndef MAXREQ /* maximum number of fonts per method */
303 #endif /* end of cgmmach.h */