| 1 |
/* m2treelib.h header file for m2treelib.cc. |
| 2 |
|
| 3 |
Copyright (C) 2012-2025 Free Software Foundation, Inc. |
| 4 |
Contributed by Gaius Mulley <[email protected]>. |
| 5 |
|
| 6 |
This file is part of GNU Modula-2. |
| 7 |
|
| 8 |
GNU Modula-2 is free software; you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation; either version 3, or (at your option) |
| 11 |
any later version. |
| 12 |
|
| 13 |
GNU Modula-2 is distributed in the hope that it will be useful, but |
| 14 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with GNU Modula-2; see the file COPYING3. If not see |
| 20 |
<http://www.gnu.org/licenses/>. */ |
| 21 |
|
| 22 |
#if !defined(m2treelib_h) |
| 23 |
#define m2treelib_h |
| 24 |
#if defined(m2treelib_c) |
| 25 |
#define EXTERN |
| 26 |
#else /* !m2treelib_c. */ |
| 27 |
#define EXTERN extern |
| 28 |
#endif /* !m2treelib_c. */ |
| 29 |
|
| 30 |
EXTERN void m2treelib_do_jump_if_bit (location_t location, enum tree_code code, |
| 31 |
tree word, tree bit, char *label); |
| 32 |
EXTERN tree m2treelib_build_modify_expr (location_t location, tree des, |
| 33 |
enum tree_code modifycode, tree copy); |
| 34 |
EXTERN tree m2treelib_DoCall (location_t location, tree rettype, tree funcptr, |
| 35 |
tree param_list); |
| 36 |
EXTERN tree m2treelib_DoCall0 (location_t location, tree rettype, |
| 37 |
tree funcptr); |
| 38 |
EXTERN tree m2treelib_DoCall1 (location_t location, tree rettype, tree funcptr, |
| 39 |
tree arg0); |
| 40 |
EXTERN tree m2treelib_DoCall2 (location_t location, tree rettype, tree funcptr, |
| 41 |
tree arg0, tree arg1); |
| 42 |
EXTERN tree m2treelib_DoCall3 (location_t location, tree rettype, tree funcptr, |
| 43 |
tree arg0, tree arg1, tree arg2); |
| 44 |
EXTERN tree m2treelib_get_rvalue (location_t location, tree t, tree type, |
| 45 |
bool is_lvalue); |
| 46 |
EXTERN tree m2treelib_get_field_no (tree type, tree op, bool is_const, |
| 47 |
unsigned int fieldNo); |
| 48 |
EXTERN tree m2treelib_get_set_value (location_t location, tree p, tree field, |
| 49 |
bool is_const, bool is_lvalue, tree op, |
| 50 |
unsigned int fieldNo); |
| 51 |
EXTERN tree m2treelib_get_set_address (location_t location, tree op1, |
| 52 |
bool is_lvalue); |
| 53 |
EXTERN tree m2treelib_get_set_field_lhs (location_t location, tree p, |
| 54 |
tree field); |
| 55 |
EXTERN tree m2treelib_get_set_field_rhs (location_t location, tree p, |
| 56 |
tree field); |
| 57 |
EXTERN tree m2treelib_get_set_address_if_var (location_t location, tree op, |
| 58 |
bool is_lvalue, bool is_const); |
| 59 |
EXTERN tree m2treelib_get_set_field_des (location_t location, tree p, |
| 60 |
tree field); |
| 61 |
|
| 62 |
EXTERN tree add_stmt (location_t location, tree t); |
| 63 |
EXTERN tree build_stmt (location_t loc, enum tree_code code, ...); |
| 64 |
|
| 65 |
#undef EXTERN |
| 66 |
#endif /* m2treelib_h. */ |