Qucs-core  0.0.19
check_netlist.h
Go to the documentation of this file.
00001 /*
00002  * check_netlist.h - checker definitions for the Qucs netlist
00003  *
00004  * Copyright (C) 2003, 2004, 2005, 2006, 2007 Stefan Jahn <stefan@lkcc.org>
00005  *
00006  * This is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2, or (at your option)
00009  * any later version.
00010  *
00011  * This software is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this package; see the file COPYING.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020  *
00021  * $Id$
00022  *
00023  */
00024 
00025 #ifndef __CHECK_NETLIST_H__
00026 #define __CHECK_NETLIST_H__
00027 
00028 #include "netdefs.h"
00029 
00030 /* Forward declarations. */
00031 namespace qucs {
00032   class environment;
00033 }
00034 
00035 /* Externalize variables used by the scanner and parser. */
00036 extern int netlist_lineno;
00037 extern FILE * netlist_in;
00038 
00039 __BEGIN_DECLS
00040 
00041 /* Externalize variables used by the scanner and parser. */
00042 extern struct definition_t * definition_root;
00043 
00044 /* Available functions of the checker. */
00045 void netlist_status (void);
00046 void netlist_list (void);
00047 void netlist_destroy (void);
00048 void netlist_destroy_env (void);
00049 int  netlist_checker (qucs::environment *);
00050 int  netlist_parse (void);
00051 int  netlist_error (const char *);
00052 int  netlist_lex (void);
00053 int  netlist_lex_destroy (void);
00054 int  netlist_checker_variables (qucs::environment *);
00055 
00056 /* Some more functionality. */
00057 struct definition_t *
00058 netlist_unchain_definition (struct definition_t *, struct definition_t *);
00059 
00060 __END_DECLS
00061 
00062 #endif /* __CHECK_NETLIST_H__ */