ReactOS  0.4.13-dev-235-g7373cb3
expr.h
Go to the documentation of this file.
1 /*
2  * Expression Abstract Syntax Tree Functions
3  *
4  * Copyright 2002 Ove Kaaven
5  * Copyright 2006-2008 Robert Shearman
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20  */
21 
22 struct expr_loc
23 {
24  const var_t *v;
25  const char *attr;
26 };
27 
28 extern expr_t *make_expr(enum expr_type type);
29 extern expr_t *make_exprl(enum expr_type type, int val);
30 extern expr_t *make_exprd(enum expr_type type, double val);
31 extern expr_t *make_exprs(enum expr_type type, char *val);
32 extern expr_t *make_exprt(enum expr_type type, var_t *var, expr_t *expr);
33 extern expr_t *make_expr1(enum expr_type type, expr_t *expr);
34 extern expr_t *make_expr2(enum expr_type type, expr_t *exp1, expr_t *exp2);
35 extern expr_t *make_expr3(enum expr_type type, expr_t *expr1, expr_t *expr2, expr_t *expr3);
36 
37 extern const type_t *expr_resolve_type(const struct expr_loc *expr_loc, const type_t *cont_type, const expr_t *expr);
38 extern int compare_expr(const expr_t *a, const expr_t *b);
39 
40 extern void write_expr(FILE *h, const expr_t *e, int brackets, int toplevel, const char *toplevel_prefix,
41  const type_t *cont_type, const char *local_var_prefix);
const char * attr
Definition: expr.h:25
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
expr_type
Definition: query.h:86
expr_t * make_expr1(enum expr_type type, expr_t *expr)
Definition: expr.c:251
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
expr_t * make_exprl(enum expr_type type, int val)
Definition: expr.c:123
#define e
Definition: ke_i.h:82
jmp_buf toplevel
Definition: main.c:95
expr_t * make_exprd(enum expr_type type, double val)
Definition: expr.c:141
GLuint GLfloat * val
Definition: glext.h:7180
int compare_expr(const expr_t *a, const expr_t *b)
Definition: expr.c:867
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
const type_t * expr_resolve_type(const struct expr_loc *expr_loc, const type_t *cont_type, const expr_t *expr)
Definition: expr.c:684
void write_expr(FILE *h, const expr_t *e, int brackets, int toplevel, const char *toplevel_prefix, const type_t *cont_type, const char *local_var_prefix)
Definition: expr.c:691
Definition: expr.h:22
expr_t * make_expr3(enum expr_type type, expr_t *expr1, expr_t *expr2, expr_t *expr3)
Definition: expr.c:373
expr_t * make_exprt(enum expr_type type, var_t *var, expr_t *expr)
Definition: expr.c:192
expr_t * make_expr(enum expr_type type)
Definition: expr.c:112
double __cdecl exp2(double)
expr_t * make_expr2(enum expr_type type, expr_t *exp1, expr_t *exp2)
Definition: expr.c:285
expr_t * make_exprs(enum expr_type type, char *val)
Definition: expr.c:152
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
const var_t * v
Definition: expr.h:24