-
Notifications
You must be signed in to change notification settings - Fork 165
/
ccdefs.h
77 lines (62 loc) · 1.72 KB
/
ccdefs.h
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
/*
* Small C+ Compiler
*
* The master header file
* Includes everything else!!!
*
* $Id: ccdefs.h,v 1.5 2016-08-26 05:44:47 aralbrec Exp $
*/
#ifndef CCDEFS_H
#define CCDEFS_H
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include "define.h"
/*
* Now the fix for HP-UX
* Darn short filename filesystems!
*/
#ifdef hpux
#define FILENAME_LEN 1024
#else
#define FILENAME_LEN FILENAME_MAX
#endif
/*
* Now some system files for good luck
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
/*
* Prototypes
*/
extern void callfunction(SYMBOL *ptr);
#include "codegen.h"
#include "const.h"
#include "data.h"
#include "declvar.h"
#include "declfunc.h"
#include "declinit.h"
#include "error.h"
#include "expr.h"
extern GOTO_TAB *gotoq; /* Pointer for gotoq */
extern int dolabel(void);
extern void dogoto(void);
extern void goto_cleanup(void);
#include "io.h"
#include "lex.h"
#include "main.h"
#include "misc.h"
/* plunge.c */
extern int skim(char *opstr, void (*testfuncz)(LVALUE* lval, int label), void (*testfuncq)(int label), int dropval, int endval, int (*heir)(LVALUE* lval), LVALUE *lval);
extern void dropout(int k, void (*testfuncz)(LVALUE* lval, int label), void (*testfuncq)(int label), int exit1, LVALUE *lval);
extern int plnge1(int (*heir)(LVALUE* lval), LVALUE *lval);
extern void plnge2a(int (*heir)(LVALUE* lval), LVALUE *lval, LVALUE *lval2, void (*oper)(LVALUE *lval), void (*doper)(LVALUE *lval));
extern void plnge2b(int (*heir)(LVALUE* lval), LVALUE *lval, LVALUE *lval2, void (*oper)(LVALUE *lval));
#include "preproc.h"
#include "primary.h"
#include "stmt.h"
#include "sym.h"
#include "while.h"
#endif