PIPS
new.c
Go to the documentation of this file.
1
/*
2
3
$Id: new.c 1357 2016-03-02 08:18:50Z coelho $
4
5
Copyright 1989-2016 MINES ParisTech
6
7
This file is part of NewGen.
8
9
NewGen is free software: you can redistribute it and/or modify it under the
10
terms of the GNU General Public License as published by the Free Software
11
Foundation, either version 3 of the License, or any later version.
12
13
NewGen is distributed in the hope that it will be useful, but WITHOUT ANY
14
WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16
License for more details.
17
18
You should have received a copy of the GNU General Public License along with
19
NewGen. If not, see <http://www.gnu.org/licenses/>.
20
21
*/
22
#ifdef HAVE_CONFIG_H
23
#include "config.h"
24
#endif
25
26
#include <stdio.h>
27
#include "
genC.h
"
28
#include "
newgen_include.h
"
29
30
extern
int
build
(
int
,
char
*[]);
31
extern
FILE *
genspec_in
, *
genspec_out
;
32
33
/* MAIN is the C entry (in fact a renaming for BUILD). */
34
35
#ifdef GENSPEC_DEBUG
36
extern
int
genspec_debug ;
37
#endif
38
39
int
main
(
40
int
argc,
41
char
*argv[])
42
{
43
#ifdef GENSPEC_DEBUG
44
genspec_debug = 0 ;
45
#endif
46
Read_spec_mode
= 0 ;
47
48
/* explicit initialization (lex default not assumed)
49
*/
50
genspec_in
= stdin;
51
genspec_out
= stdout;
52
return
build
(argc, argv);
53
}
genC.h
Read_spec_mode
int Read_spec_mode
extern int Current_first ;
Definition:
genClib.c:60
genspec_out
FILE * genspec_out
Definition:
new.c:31
main
int main(int argc, char *argv[])
MAIN is the C entry (in fact a renaming for BUILD).
Definition:
new.c:39
genspec_in
FILE * genspec_in
build
int build(int, char *[])
BUILD (in fact, the "main" function) parses the specifications and generates the manipulation functio...
Definition:
build.c:483
newgen_include.h
newgen
src
genC
new.c
Generated on Thu Sep 26 2024 22:11:31 for PIPS by
1.9.1