74
74
#include "regexp.h"
80
80
static STRING *PROTO(gsub, (PTR, CELL *, char *, int)) ;
81
81
static void PROTO(fplib_err, (char *, double, char *)) ;
84
83
/* global for the disassembler */
85
84
BI_REC bi_funct[] =
86
85
{ /* info to load builtins */
88
"length", bi_length, 0, 1, /* special must come first */
89
"index", bi_index, 2, 2,
90
"substr", bi_substr, 2, 3,
91
"sprintf", bi_sprintf, 1, 255,
94
"atan2", bi_atan2, 2, 2,
98
"sqrt", bi_sqrt, 1, 1,
99
"rand", bi_rand, 0, 0,
100
"srand", bi_srand, 0, 1,
101
"close", bi_close, 1, 1,
102
"system", bi_system, 1, 1,
103
"toupper", bi_toupper, 1, 1,
104
"tolower", bi_tolower, 1, 1,
105
"fflush", bi_fflush, 0, 1,
87
{"length", bi_length, 0, 1}, /* special must come first */
88
{"index", bi_index, 2, 2},
89
{"substr", bi_substr, 2, 3},
90
{"sprintf", bi_sprintf, 1, 255},
91
{"sin", bi_sin, 1, 1},
92
{"cos", bi_cos, 1, 1},
93
{"atan2", bi_atan2, 2, 2},
94
{"exp", bi_exp, 1, 1},
95
{"log", bi_log, 1, 1},
96
{"int", bi_int, 1, 1},
97
{"sqrt", bi_sqrt, 1, 1},
98
{"rand", bi_rand, 0, 0},
99
{"srand", bi_srand, 0, 1},
100
{"close", bi_close, 1, 1},
101
{"system", bi_system, 1, 1},
102
{"toupper", bi_toupper, 1, 1},
103
{"tolower", bi_tolower, 1, 1},
104
{"fflush", bi_fflush, 0, 1},
107
(char *) 0, (PF_CP) 0, 0, 0} ;
106
{(char *) 0, (PF_CP) 0, 0, 0}} ;
110
109
/* load built-in functions in symbol table */