-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathexpress.h
More file actions
134 lines (114 loc) · 3.76 KB
/
express.h
File metadata and controls
134 lines (114 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#ifndef EXPRESS_H
#define EXPRESS_H
/*
* Express package manager.
*
* This software was developed by U.S. Government employees as part of
* their official duties and is not subject to copyright.
*
* $Log: express.h,v $
* Revision 1.13 1997/01/21 19:16:42 dar
* made C++ compatible
*
* Revision 1.12 1995/04/05 15:09:49 clark
* CADDETC preval
*
* Revision 1.11 1994/11/10 19:20:03 clark
* Update to IS
*
* Revision 1.10 1994/05/11 19:51:05 libes
* numerous fixes
*
* Revision 1.9 1993/10/15 18:48:24 libes
* CADDETC certified
*
* Revision 1.7 1993/02/16 03:19:56 libes
* added unwriteable error
*
* Revision 1.6 1993/01/19 22:44:17 libes
* *** empty log message ***
*
* Revision 1.5 1992/09/16 18:20:10 libes
* changed user-visible names
*
* Revision 1.4 1992/08/18 17:12:41 libes
* rm'd extraneous error messages
*
* Revision 1.3 1992/06/08 18:06:24 libes
* prettied up interface to print_objects_when_running
*
*/
/*************/
/* constants */
/*************/
#define EXPRESS_NULL (struct Scope_ *)0
/*****************/
/* packages used */
/*****************/
#include "expbasic.h" /* get basic definitions */
#include <string.h>
#include "scope.h"
#include "type.h"
#include "variable.h"
#include "expr.h"
#include "entity.h"
#include "caseitem.h"
#include "stmt.h"
#include "alg.h"
#include "schema.h"
#include "lexact.h"
#include "dict.h"
/************/
/* typedefs */
/************/
typedef struct Scope_ * Express;
/****************/
/* modules used */
/****************/
/***************************/
/* hidden type definitions */
/***************************/
struct Express_ {
FILE * file;
char * filename;
char * basename; /**< name of file but without directory or .exp suffix */
};
/********************/
/* global variables */
/********************/
extern SC_EXPRESS_EXPORT char * input_filename;
extern SC_EXPRESS_EXPORT Linked_List EXPRESS_path;
extern SC_EXPRESS_EXPORT int EXPRESSpass;
extern SC_EXPRESS_EXPORT void ( *EXPRESSinit_args )( int, char ** );
extern SC_EXPRESS_EXPORT void ( *EXPRESSinit_parse )( void );
extern SC_EXPRESS_EXPORT int ( *EXPRESSfail )( Express );
extern SC_EXPRESS_EXPORT int ( *EXPRESSsucceed )( Express );
extern SC_EXPRESS_EXPORT void ( *EXPRESSbackend )( Express );
extern SC_EXPRESS_EXPORT char * EXPRESSprogram_name;
extern char EXPRESSgetopt_options[]; /* initialized elsewhere */
extern SC_EXPRESS_EXPORT int ( *EXPRESSgetopt )( int, char * );
extern SC_EXPRESS_EXPORT bool EXPRESSignore_duplicate_schemas;
extern SC_EXPRESS_EXPORT Dictionary EXPRESSbuiltins; /* procedures/functions */
extern SC_EXPRESS_EXPORT struct Scope_ * FUNC_NVL;
extern SC_EXPRESS_EXPORT struct Scope_ * FUNC_USEDIN;
/******************************/
/* macro function definitions */
/******************************/
#define EXPRESSget_basename(e) ((e)->u.express->basename)
#define EXPRESSget_filename(e) ((e)->u.express->filename)
#define EXPRESSput_basename(e,n) ((e)->u.express->basename = (n))
#define EXPRESSput_filename(e,n) ((e)->u.express->filename = (n))
/***********************/
/* function prototypes */
/***********************/
extern SC_EXPRESS_EXPORT Express EXPRESScreate( void );
extern SC_EXPRESS_EXPORT void EXPRESSdestroy( Express );
extern SC_EXPRESS_EXPORT void EXPRESSparse( Express, FILE *, char * );
extern SC_EXPRESS_EXPORT void EXPRESSinitialize( void );
extern SC_EXPRESS_EXPORT void EXPRESScleanup( void );
extern SC_EXPRESS_EXPORT void EXPRESSresolve( Express );
extern SC_EXPRESS_EXPORT int EXPRESS_fail( Express model );
extern SC_EXPRESS_EXPORT int EXPRESS_succeed( Express model );
extern void EXPRESSinit_init( void );
extern SC_EXPRESS_EXPORT void build_complex( Express );
#endif /*EXPRESS_H*/