2000-10-09 00:36:55 +02:00
|
|
|
#ifndef __globals_H
|
|
|
|
|
#define __globals_H
|
|
|
|
|
/*
|
2010-12-14 02:42:48 +01:00
|
|
|
* Copyright (c) 2000-2010 Stephen Williams (steve@icarus.com)
|
2000-10-09 00:36:55 +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
|
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
# include <stddef.h>
|
|
|
|
|
|
|
|
|
|
/* This is the base (i.e. -B<value>) of the Icarus Verilog files. */
|
|
|
|
|
extern const char*base;
|
|
|
|
|
|
2002-05-28 02:50:39 +02:00
|
|
|
/* This is the path to the iconfig file sent to ivl. */
|
|
|
|
|
extern char* iconfig_path;
|
2003-11-01 05:21:57 +01:00
|
|
|
extern char* iconfig_common_path;
|
2002-05-28 02:50:39 +02:00
|
|
|
|
2011-03-04 22:52:08 +01:00
|
|
|
/* This is the optional -M<dependfile> value, if one was supplied. */
|
2002-04-04 07:26:13 +02:00
|
|
|
extern const char*depfile;
|
|
|
|
|
|
2011-03-04 22:52:08 +01:00
|
|
|
/* This is the optional -N<path> value, if one was supplied. */
|
2000-10-09 00:36:55 +02:00
|
|
|
extern const char*npath;
|
|
|
|
|
|
2000-10-28 05:45:47 +02:00
|
|
|
/* This is the name of the output file that the user selected. */
|
|
|
|
|
extern const char*opath;
|
|
|
|
|
|
2001-10-23 02:37:29 +02:00
|
|
|
/* This pointer is set if there were -s<value> parameters. */
|
|
|
|
|
extern char*start;
|
2000-10-09 00:36:55 +02:00
|
|
|
|
2000-11-09 22:58:00 +01:00
|
|
|
/* This flag is true if the -S flag was used on the command line. */
|
|
|
|
|
extern int synth_flag;
|
|
|
|
|
|
2000-10-09 00:36:55 +02:00
|
|
|
/* This is the name of the selected target. */
|
|
|
|
|
extern const char*targ;
|
|
|
|
|
|
2002-06-23 22:10:51 +02:00
|
|
|
/* Perform variable substitutions on the string. */
|
|
|
|
|
extern char* substitutions(const char*str);
|
|
|
|
|
|
2001-11-12 02:26:36 +01:00
|
|
|
/* Add the name to the list of source files. */
|
|
|
|
|
extern void process_file_name(const char*name);
|
|
|
|
|
|
|
|
|
|
/* Add the name to the list of library directories. */
|
|
|
|
|
extern void process_library_switch(const char*name);
|
2002-05-28 22:40:37 +02:00
|
|
|
extern void process_library_nocase_switch(const char*name);
|
2001-11-16 06:07:19 +01:00
|
|
|
extern void process_library2_switch(const char*name);
|
2001-11-12 02:26:36 +01:00
|
|
|
|
2001-11-12 19:47:32 +01:00
|
|
|
/* Add a new include file search directory */
|
|
|
|
|
extern void process_include_dir(const char*name);
|
|
|
|
|
|
2001-11-13 04:30:26 +01:00
|
|
|
/* Add a new -D define. */
|
|
|
|
|
extern void process_define(const char*name);
|
|
|
|
|
|
2001-07-03 06:09:24 +02:00
|
|
|
/* -v */
|
|
|
|
|
extern int verbose_flag;
|
|
|
|
|
|
2000-10-28 05:45:47 +02:00
|
|
|
extern char warning_flags[];
|
|
|
|
|
|
2001-11-16 06:07:19 +01:00
|
|
|
/* -y and -Y flags from the command line. */
|
2001-10-21 01:02:39 +02:00
|
|
|
extern char* library_flags;
|
2001-11-16 06:07:19 +01:00
|
|
|
extern char* library_flags2;
|
2001-10-21 01:02:39 +02:00
|
|
|
|
2000-10-09 00:36:55 +02:00
|
|
|
#endif
|