-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathosc_expr_privatedecls.h
206 lines (175 loc) · 5.99 KB
/
osc_expr_privatedecls.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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
/*
Written by John MacCallum, The Center for New Music and Audio Technologies,
University of California, Berkeley. Copyright (c) 2011, The Regents of
the University of California (Regents).
Permission to use, copy, modify, distribute, and distribute modified versions
of this software and its documentation without fee and without a signed
licensing agreement, is hereby granted, provided that the above copyright
notice, this paragraph and the following two paragraphs appear in all copies,
modifications, and distributions.
IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING
OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF REGENTS HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED
HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO OBLIGATION TO PROVIDE
MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*/
/** \file osc_expr_privatedecls.h
\author John MacCallum
*/
static void osc_expr_err_badInfixArg(void *context, char *func, char typetag, int argnum, t_osc_atom_u *left, t_osc_atom_u *right);
static void osc_expr_err_unbound(void *context, char *address, char *func);
static void osc_expr_err_argnum(void *context, unsigned int expected, unsigned int found, unsigned int optional_args_allowed, char *func);
static t_osc_err osc_expr_evalArgInLexEnv(t_osc_expr_arg *arg,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_apply(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_map(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_reduce(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_assign(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_assigntoindex(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_if(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_emptybundle(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_bound(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_exists(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_getaddresses(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_delete(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_getmsgcount(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_value(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_quote(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_eval(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_tokenize(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_compile(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_gettimetag(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_settimetag(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_getBundleMember(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_assignToBundleMember(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_andalso(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_orelse(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);
static int osc_expr_specFunc_bundle(t_osc_expr *f,
t_osc_expr_lexenv *lexenv,
long *len,
char **oscbndl,
t_osc_atom_ar_u **out,
void *context);