Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
check_spice.h
Go to the documentation of this file.
1 /*
2  * check_spice.h - checker definitions for a Spice netlist
3  *
4  * Copyright (C) 2004, 2005 Stefan Jahn <stefan@lkcc.org>
5  *
6  * This is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * This software is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this package; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * $Id$
22  *
23  */
24 
25 #ifndef __CHECK_SPICE_H__
26 #define __CHECK_SPICE_H__
27 
28 #include "netdefs.h"
29 
30 #define HINT_NODE 1
31 #define HINT_NUMBER 2
32 #define HINT_NAME 4
33 #define HINT_PAIR 8
34 #define HINT_DONE 16
35 #define HINT_MSTART 32
36 #define HINT_MSTOP 64
37 
38 /* Externalize variables used by the scanner and parser. */
39 extern int spice_lineno;
40 extern FILE * spice_in;
41 
42 __BEGIN_DECLS
43 
44 /* Externalize variables used by the scanner, parser, checker and producer. */
45 extern struct definition_t * definition_root;
46 extern struct definition_t * subcircuit_root;
47 extern char * spice_title;
48 extern struct node_t * spice_nodes;
49 extern struct definition_t * device_root;
50 
51 /* Available functions of the checker. */
52 int spice_checker (void);
53 int spice_parse (void);
54 int spice_error (const char *);
55 int spice_lex (void);
56 int spice_lex_destroy (void);
57 void spice_destroy (void);
58 
59 /* Local functionality. */
60 void spice_add_last_hint (struct value_t *, int);
61 void spice_set_last_hint (struct value_t *, int);
62 struct value_t * netlist_append_values (struct value_t *, struct value_t *);
64 extern int spice_errors;
65 
66 __END_DECLS
67 
68 #endif /* __CHECK_SPICE_H__ */
Definition: netdefs.h:33
int spice_parse(void)
struct definition_t * subcircuit_root
Definition: parse_spice.y:47
int spice_checker(void)
FILE * spice_in
Definition: parse_spice.y:41
int spice_errors
Definition: parse_spice.y:65
struct value_t * netlist_append_values(struct value_t *, struct value_t *)
void spice_add_last_hint(struct value_t *, int)
struct definition_t * spice_checker_intern(struct definition_t *)
void spice_set_last_hint(struct value_t *, int)
char * spice_title
Definition: parse_spice.y:48
struct node_t * spice_nodes
Definition: parse_spice.y:49
struct definition_t * device_root
Definition: parse_spice.y:50
__BEGIN_DECLS struct definition_t * definition_root
Definition: parse_spice.y:46
int spice_lineno
Definition: parse_spice.y:40
int spice_error(const char *)
Definition: parse_spice.y:958
int spice_lex_destroy(void)
int spice_lex(void)
void spice_destroy(void)