4 |
|
*/ |
5 |
|
#ifndef _RAD_CALCOMP_H_ |
6 |
|
#define _RAD_CALCOMP_H_ |
7 |
+ |
|
8 |
+ |
#include <stdio.h> |
9 |
+ |
|
10 |
|
#ifdef __cplusplus |
11 |
|
extern "C" { |
12 |
|
#endif |
13 |
|
|
11 |
– |
|
12 |
– |
#include "copyright.h" |
13 |
– |
|
14 |
|
#define VAR 1 |
15 |
|
#define NUM 2 |
16 |
|
#define UMINUS 3 |
49 |
|
|
50 |
|
typedef struct vardef VARDEF; /* a variable definition */ |
51 |
|
|
52 |
< |
#define MAXWORD 127 /* maximum word/id length */ |
52 |
> |
#define RMAXWORD 127 /* maximum word/id length */ |
53 |
|
#define CNTXMARK '`' /* context mark */ |
54 |
|
|
55 |
|
#define isid(c) (isalnum(c) || (c) == '_' || \ |
71 |
|
extern EPNODE *curfunc; |
72 |
|
extern int nextc; |
73 |
|
|
74 |
+ |
/* defined in biggerlib.c */ |
75 |
+ |
extern void biggerlib(void); |
76 |
+ |
|
77 |
|
/* defined in caldefn.c */ |
78 |
|
extern void fcompile(char *fname); |
79 |
|
extern void scompile(char *str, char *fname, int ln); |
99 |
|
extern EPNODE *dpop(char *name); |
100 |
|
extern void dpush(char *nm, EPNODE *ep); |
101 |
|
extern void addchan(EPNODE *sp); |
102 |
< |
extern void getstatement(); |
103 |
< |
extern EPNODE *getdefn(); |
104 |
< |
extern EPNODE *getchan(); |
102 |
> |
extern void getstatement(void); |
103 |
> |
extern EPNODE *getdefn(void); |
104 |
> |
extern EPNODE *getchan(void); |
105 |
|
/* defined in calexpr.c */ |
106 |
|
extern EPNODE *eparse(char *expr); |
107 |
|
extern double eval(char *expr); |
150 |
|
extern char *ecalloc(unsigned int ne, unsigned int es); |
151 |
|
extern char *erealloc(char *cp, unsigned int n); |
152 |
|
extern void efree(char *cp); |
150 |
– |
/* miscellaneous */ |
151 |
– |
extern void eputs(char *s); |
152 |
– |
extern void wputs(char *s); |
153 |
– |
extern void quit(int code); |
153 |
|
/* defined by client */ |
154 |
|
extern double chanvalue(int n); |
155 |
|
|