combine .cvsignore files into .gitignore file
[sppoc.git] / CipolCore / cipol.h
blobce77db14a72c1417a959ee73ebc0220d14d82e9d
1 /******************************************************/
2 /* This file contains definitions to simplify a call */
3 /* to a tool function. */
4 /******************************************************/
6 /*** Include files ***/
8 #include<setjmp.h>
10 /*** Constants ***/
12 /** Buffer size for error messages **/
13 #define MAX_ERR_BUFFER 1024
15 /*** Constants ***/
17 #define CIPOL_MAX_RAYS 65536 /* Chernikova intermediary space size */
19 /** Values of important tokens **/
21 /* Constants */
22 #define TOKEN_NIL "nil"
23 #define TOKEN_TRUE "true"
24 #define TOKEN_FALSE "false"
26 /* Separators */
27 #define TOKEN_POINT "."
28 #define TOKEN_BLIST "("
29 #define TOKEN_ELIST ")"
30 #define TOKEN_BVECTOR "["
31 #define TOKEN_BVECTOR2 "#["
32 #define TOKEN_EVECTOR "]"
34 /* Comparison operators */
35 #define TOKEN_EQUAL "="
36 #define TOKEN_GREATER_OR_EQUAL ">="
37 #define TOKEN_GREATER ">"
38 #define TOKEN_LESSER_OR_EQUAL "<="
39 #define TOKEN_LESSER "<"
41 /* Arithmetics operators */
42 #define TOKEN_PLUS "+"
43 #define TOKEN_MINUS "-"
44 #define TOKEN_TIMES "*"
45 #define TOKEN_DIVIDE "/"
46 #define TOKEN_POWER "**"
47 #define TOKEN_PERIODIC "periodic"
49 /* Clauses expressions constructors */
50 #define TOKEN_SUBST "subst"
51 #define TOKEN_REFER "eref"
52 #define TOKEN_SCAN "scan"
53 #define TOKEN_RECUR "recur"
56 /*** Macros ***/
58 #define min(x,y) ((x>y)?y:x)
59 #define max(x,y) ((x<y)?y:x)
61 /*** Structures ***/
63 /*** Functions for error handling ***/
64 void errModuleSet(char *name);
65 void errHandlerSet(void (*funct)());
66 void errError(int id,int type,char *funct,char *param);