2014-07-23 22:39:29 +02:00
|
|
|
#ifndef IVL_globals_H
|
|
|
|
|
#define IVL_globals_H
|
1999-07-03 22:03:47 +02:00
|
|
|
/*
|
2017-11-08 20:50:42 +01:00
|
|
|
* Copyright (c) 1999-2017 Stephen Williams (steve@icarus.com)
|
1999-07-03 22:03:47 +02:00
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
* General Public License as published by the Free Software
|
|
|
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-08-29 03:41:23 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
1999-07-03 22:03:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
# include <stdio.h>
|
|
|
|
|
|
1999-09-06 00:33:18 +02:00
|
|
|
extern void reset_lexor(FILE*out, char*paths[]);
|
2014-07-08 21:12:54 +02:00
|
|
|
extern void destroy_lexor(void);
|
2007-12-31 03:47:32 +01:00
|
|
|
extern void load_precompiled_defines(FILE*src);
|
2007-12-01 22:42:23 +01:00
|
|
|
extern void define_macro(const char*name, const char*value, int keyword,
|
|
|
|
|
int argc);
|
2014-07-08 21:12:54 +02:00
|
|
|
extern void free_macros(void);
|
2007-12-31 03:47:32 +01:00
|
|
|
extern void dump_precompiled_defines(FILE*out);
|
1999-07-03 22:03:47 +02:00
|
|
|
|
|
|
|
|
/* These variables contain the include directories to be searched when
|
|
|
|
|
an include directive in encountered. */
|
|
|
|
|
extern char**include_dir;
|
|
|
|
|
extern unsigned include_cnt;
|
2010-12-19 12:33:04 +01:00
|
|
|
/* Program to use for VHDL processing. */
|
|
|
|
|
extern char*vhdlpp_path;
|
2011-07-25 00:24:32 +02:00
|
|
|
/* vhdlpp work directory */
|
|
|
|
|
extern char*vhdlpp_work;
|
1999-07-03 22:03:47 +02:00
|
|
|
|
2011-07-31 03:18:03 +02:00
|
|
|
extern char**vhdlpp_libdir;
|
|
|
|
|
extern unsigned vhdlpp_libdir_cnt;
|
|
|
|
|
|
2009-02-05 02:27:25 +01:00
|
|
|
extern int relative_include;
|
|
|
|
|
|
1999-07-03 22:03:47 +02:00
|
|
|
/* This flag is true if #line directives are to be generated. */
|
|
|
|
|
extern int line_direct_flag;
|
|
|
|
|
|
2000-06-30 17:49:44 +02:00
|
|
|
extern unsigned error_count;
|
|
|
|
|
|
2002-04-04 07:26:13 +02:00
|
|
|
extern FILE *depend_file;
|
2009-10-25 21:34:05 +01:00
|
|
|
extern char dep_mode;
|
2002-04-04 07:26:13 +02:00
|
|
|
|
2011-07-31 03:18:03 +02:00
|
|
|
extern int verbose_flag;
|
|
|
|
|
|
2017-10-18 18:18:14 +02:00
|
|
|
extern int warn_redef;
|
2017-11-08 20:50:42 +01:00
|
|
|
extern int warn_redef_all;
|
2017-10-18 18:18:14 +02:00
|
|
|
|
2008-02-14 09:26:41 +01:00
|
|
|
/* This is the entry to the lexer. */
|
2014-07-08 21:12:54 +02:00
|
|
|
extern int yylex(void);
|
1999-07-03 22:03:47 +02:00
|
|
|
|
2014-07-23 22:39:29 +02:00
|
|
|
#endif /* IVL_globals_H */
|