]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/m2/gm2-gcc/m2block.h
Update copyright years.
[thirdparty/gcc.git] / gcc / m2 / gm2-gcc / m2block.h
CommitLineData
1eee94d3
GM
1/* m2block.h header file for m2block.cc.
2
a945c346 3Copyright (C) 2012-2024 Free Software Foundation, Inc.
1eee94d3
GM
4Contributed by Gaius Mulley <gaius@glam.ac.uk>.
5
6This file is part of GNU Modula-2.
7
8GNU Modula-2 is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3, or (at your option)
11any later version.
12
13GNU Modula-2 is distributed in the hope that it will be useful, but
14WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GNU Modula-2; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
21
22#if !defined(m2block_h)
23#define m2block_h
24#if defined(m2block_c)
25#if defined(__GNUG__)
26#define EXTERN extern "C"
27#else /* !__GNUG__. */
28#define EXTERN
29#endif /* !__GNUG__. */
30#else /* !m2block_c. */
31#if defined(__GNUG__)
32#define EXTERN extern "C"
33#else /* !m2block_h. */
34#define EXTERN extern
35#endif /* !m2block_c. */
36#endif /* !m2block_h. */
37
431c0669
GM
38#include <stdbool.h>
39
1eee94d3
GM
40EXTERN tree m2block_getLabel (location_t location, char *name);
41EXTERN void m2block_pushFunctionScope (tree fndecl);
42EXTERN tree m2block_popFunctionScope (void);
43EXTERN void m2block_pushGlobalScope (void);
44EXTERN void m2block_popGlobalScope (void);
45EXTERN tree m2block_pushDecl (tree decl);
46EXTERN void m2block_addDeclExpr (tree t);
47
48EXTERN tree m2block_begin_statement_list (void);
49EXTERN tree m2block_push_statement_list (tree t);
50EXTERN tree m2block_pop_statement_list (void);
51
52EXTERN void m2block_finishFunctionDecl (location_t location, tree fndecl);
53EXTERN void m2block_finishFunctionCode (tree fndecl);
54
55EXTERN tree m2block_RememberType (tree t);
56EXTERN tree m2block_RememberConstant (tree t);
57EXTERN tree m2block_DumpGlobalConstants (void);
58EXTERN tree m2block_RememberInitModuleFunction (tree t);
59EXTERN tree m2block_global_constant (tree t);
431c0669 60EXTERN bool m2block_toplevel (void);
1eee94d3
GM
61EXTERN tree m2block_GetErrorNode (void);
62
63EXTERN void m2block_addStmtNote (location_t location);
64
65EXTERN tree m2block_cur_stmt_list (void);
66EXTERN tree *m2block_cur_stmt_list_addr (void);
67EXTERN int m2block_is_building_stmt_list (void);
68EXTERN tree m2block_GetGlobals (void);
69EXTERN tree m2block_GetGlobalContext (void);
70EXTERN void m2block_finishGlobals (void);
71EXTERN void m2block_includeDecl (tree);
72EXTERN tree m2block_add_stmt (location_t location, tree t);
73EXTERN void m2block_addStmtNote (location_t location);
74EXTERN void m2block_removeStmtNote (void);
75
76EXTERN void m2block_init (void);
77
78#undef EXTERN
79#endif /* m2block_h. */