Qucs-core
0.0.19
|
00001 /* 00002 * check_city.h - checker definitions for CITIfiles 00003 * 00004 * Copyright (C) 2006 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_CITI_H__ 00026 #define __CHECK_CITI_H__ 00027 00028 namespace qucs { 00029 class dataset; 00030 class vector; 00031 } 00032 00033 extern qucs::dataset * citi_result; 00034 extern struct citi_package_t * citi_root; 00035 00036 struct citi_header_t { 00037 char * package; 00038 char * var; 00039 char * type; 00040 int i1, i2; 00041 int n; 00042 struct citi_header_t * next; 00043 }; 00044 00045 struct citi_package_t { 00046 struct citi_header_t * head; 00047 qucs::vector * data; 00048 struct citi_package_t * next; 00049 }; 00050 00051 /* Externalize variables used by the scanner and parser. */ 00052 extern int citi_lineno; 00053 extern FILE * citi_in; 00054 void citi_restart (FILE *); 00055 00056 __BEGIN_DECLS 00057 00058 /* Externalize variables used by the scanner and parser. */ 00059 extern struct citi_t citi_options; 00060 00061 /* Available functions of the checker. */ 00062 int citi_parse (void); 00063 int citi_error (const char *); 00064 int citi_lex (void); 00065 int citi_lex_destroy (void); 00066 int citi_check (void); 00067 void citi_init (void); 00068 void citi_destroy (void); 00069 00070 __END_DECLS 00071 00072 #endif /* __CHECK_CITI_H__ */