Add support for text macros with arguments.
[iverilog.git] / driver / globals.h
blob1f7343193b6e1425c8f6aba49f2988a74821a503
1 #ifndef __globals_H
2 #define __globals_H
3 /*
4 * Copyright (c) 2000 Stephen Williams (steve@icarus.com)
6 * This source code is free software; you can redistribute it
7 * and/or modify it in source code form under the terms of the GNU
8 * General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
10 * any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 #ifdef HAVE_CVS_IDENT
22 #ident "$Id: globals.h,v 1.21 2007/04/19 02:52:53 steve Exp $"
23 #endif
25 # include <stddef.h>
27 /* This is the base (i.e. -B<value>) of the Icarus Verilog files. */
28 extern const char*base;
30 /* This is the path to the iconfig file sent to ivl. */
31 extern char* iconfig_path;
32 extern char* iconfig_common_path;
34 /* Ths is the optional -M<dependfile> value, if one was supplied. */
35 extern const char*depfile;
37 /* Ths is the optional -N<path> value, if one was supplied. */
38 extern const char*npath;
40 /* This is the name of the output file that the user selected. */
41 extern const char*opath;
43 /* This pointer is set if there were -s<value> parameters. */
44 extern char*start;
46 /* This flag is true if the -S flag was used on the command line. */
47 extern int synth_flag;
49 /* This is the name of the selected target. */
50 extern const char*targ;
52 /* This is the integer-width argument that will be passed to ivl. */
53 extern unsigned integer_width;
55 /* Perform variable substitutions on the string. */
56 extern char* substitutions(const char*str);
58 /* Add the name to the list of source files. */
59 extern void process_file_name(const char*name, int lib_flag);
61 /* Add the name to the list of library directories. */
62 extern void process_library_switch(const char*name);
63 extern void process_library_nocase_switch(const char*name);
64 extern void process_library2_switch(const char*name);
66 /* Add a new include file search directory */
67 extern void process_include_dir(const char*name);
69 /* Add a new -D define. */
70 extern void process_define(const char*name);
72 /* -v */
73 extern int verbose_flag;
75 extern char warning_flags[];
77 /* -y and -Y flags from the command line. */
78 extern char* library_flags;
79 extern char* library_flags2;
82 * $Log: globals.h,v $
83 * Revision 1.21 2007/04/19 02:52:53 steve
84 * Add support for -v flag in command file.
86 * Revision 1.20 2007/03/07 04:24:59 steve
87 * Make integer width controllable.
89 * Revision 1.19 2003/11/18 06:31:46 steve
90 * Remove the iverilog.conf file.
92 * Revision 1.18 2003/11/13 04:09:49 steve
93 * Pass flags through the temporary config file.
95 * Revision 1.17 2003/11/01 04:21:57 steve
96 * Add support for a target static config file.
98 * Revision 1.16 2002/08/12 01:35:01 steve
99 * conditional ident string using autoconfig.
101 * Revision 1.15 2002/06/23 20:10:51 steve
102 * Variable substitution in command files.
104 * Revision 1.14 2002/05/28 20:40:37 steve
105 * ivl indexes the search path for libraries, and
106 * supports case insensitive module-to-file lookup.
108 * Revision 1.13 2002/05/28 00:50:40 steve
109 * Add the ivl -C flag for bulk configuration
110 * from the driver, and use that to run library
111 * modules through the preprocessor.
113 #endif