PIPS
syntax-local.h
Go to the documentation of this file.
1
/*
2
3
$Id: syntax-local.h 23065 2016-03-02 09:05:50Z coelho $
4
5
Copyright 1989-2016 MINES ParisTech
6
7
This file is part of PIPS.
8
9
PIPS is free software: you can redistribute it and/or modify it
10
under the terms of the GNU General Public License as published by
11
the Free Software Foundation, either version 3 of the License, or
12
any later version.
13
14
PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
15
WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
FITNESS FOR A PARTICULAR PURPOSE.
17
18
See the GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with PIPS. If not, see <http://www.gnu.org/licenses/>.
22
23
*/
24
/* Legal characters to start a comment line
25
*
26
* '\n' is added to cope with empty lines
27
* Empty lines with SPACE and TAB characters
28
* are be preprocessed and reduced to an empty line by GetChar().
29
*/
30
#define START_COMMENT_LINE "CcDd*!#\n"
31
32
/* lex yacc interface */
33
extern
FILE *
syn_in
;
34
extern
int
syn_lex
();
35
extern
void
syn_reset_lex
();
36
extern
int
syn_parse
();
37
extern
void
syn_error
(
const
char
*);
38
39
/* definition of implementation dependent constants */
40
41
#include "constants.h"
42
43
#define HASH_SIZE 1013
44
#define FORMATLENGTH (4096)
45
#define LOCAL static
46
47
#ifndef abs
48
#define abs(v) (((v) < 0) ? -(v) : (v))
49
#endif
50
51
/* extern char * getenv(); */
52
53
#define Warning(f,m) \
54
(user_warning(f,"Warning between lines %d and %d\n%s\n"
,line_b_I,line_e_I,m) )
55
56
#define FatalError(f,m) \
57
(pips_internal_error("Fatal error between lines %d and %d\n%s\n"
,line_b_I,line_e_I,m))
58
59
/* These global variables are declared in ri-util/util.c */
60
extern
entity
DynamicArea
;
61
extern
entity
StaticArea
;
62
extern
entity
HeapArea
;
63
extern
entity
StackArea
;
64
extern
entity
AllocatableArea
;
65
66
#include "
parser_private.h
"
67
parser_private.h
_newgen_struct_entity_
Definition:
ri.h:2778
DynamicArea
entity DynamicArea
These global variables are declared in ri-util/util.c.
Definition:
area.c:57
HeapArea
entity HeapArea
Definition:
area.c:59
StaticArea
entity StaticArea
Definition:
area.c:58
syn_in
FILE * syn_in
lex yacc interface
Definition:
syntax.h:325
StackArea
entity StackArea
Definition:
area.c:60
syn_parse
int syn_parse()
syn_error
void syn_error(const char *)
syn_reset_lex
void syn_reset_lex()
syn_lex
int syn_lex()
AllocatableArea
entity AllocatableArea
Definition:
area.c:61
pips
src
Libs
syntax
syntax-local.h
Generated on Thu Sep 26 2024 22:11:48 for PIPS by
1.9.1