Michael Witten
6103a72927
ivlpp: Removed delayed_close
...
This variable was used in yywrap purportedly to obviate
hidden access to a file that should be closable.
After investigating the code flex produces, it would
seem that these fears are unfounded.
Signed-off-by: Michael Witten <mfwitten@mit.edu>
2008-02-19 09:31:02 -08:00
Michael Witten
3bdf0a13d6
ivlpp: Clarification
...
A simple comment to clarify the use of standby for the inclusion stack.
Signed-off-by: Michael Witten <mfwitten@mit.edu>
2008-02-19 09:31:02 -08:00
Michael Witten
623073c722
ivlpp: Removed the unnecessary parser
...
The verilog preprocessing language is sufficiently simple
that the parser may be implemented by hand on top of the
lexical analyzer.
In fact, ivlpp was already implemented in this way; relevant
[bison] parser files specified no grammar, and the parser
entry-point (yyparse) was simply an indirect use of the lexical
analyzer (yylex).
Therefore, parse.y has been removed, invocations of yyparse()
have been replaced by yylex(), references to bison generated
files have been removed, and Makefile.in has been updated
accordingly.
Signed-off-by: Michael Witten <mfwitten@mit.edu>
2008-02-19 09:31:02 -08:00
Larry Doolittle
d9ac146b8f
Spelling fixes
...
only comments and documentation
some punctuation and capitalization for good measure
Changelogs are purposefully untouched
2008-01-29 20:24:24 -08:00
Larry Doolittle
f8d410e2d4
remove lint flagged by gcc-4.3
...
watch for possible behavior changes in
elaborate.cc:3409
vvp/vvp_net.cc:600
2008-01-07 18:39:10 -08:00
Larry Doolittle
17cc661336
Squelch useless flex-induced warning messages
...
tested in a gcc-4.2.2 flex-2.5.33 environment
2008-01-04 15:54:03 -08:00
Stephen Williams
a3c1fb8c8a
Supoprt precompiled defines
...
Core preprocessor support for writing out and reading precompiled
defines. The preprocessor can read initial precompiled defines from
any number of specified source files, and can write all the defines
into a specified output file.
2007-12-30 18:47:32 -08:00
Martic Whitaker
577da5c0d3
Fix for assertion error when expanding macro.
...
The patch for adding support for macros with arguments contained
a leftover debugging aid. This patch corrects the code. It also
should eliminate some compilation warnings.
2007-12-02 09:09:53 -08:00
Martin Whitaker
680196953b
Add support for text macros with arguments.
...
This patch modifies the preprocessor to handle text macros with
arguments. It also fixes a bug that prevented a `line directive
being issued after a multi-line text macro had been instantiated.
2007-12-01 19:32:42 -08:00
Cary R
b921a56ad1
A leading underscore is valid for macro substitutions.
...
For text macro substitutions the lexor did not allow leading underscores.
This patch fixes that omission. All other places that text macros may be
used appear to be correct.
2007-11-14 20:21:20 -08:00
Cary R
3f6ea1d587
Make C style comments work in false/suppressed ifdef/etc. blocks.
...
C style comments were not recognized as comments in false or
suppressed sections of ifdef/etc. blocks. This prohibited an
unneeded endif/else/etc. from being commented out with this
style of comment.
2007-08-30 19:01:10 -07:00
Cary R
d08817aec1
[PATCH] Search for include files relative to the current files path first.
...
This patch add the current files path to the start of the list used
when search for include files.
2007-08-29 17:45:55 -07:00
steve
29aa68302e
Add elsif support (Martin Whitaker)
2007-05-30 23:21:20 +00:00
steve
8dcd09797f
Fix uninitialized lineno variable.
2007-05-25 18:21:39 +00:00
steve
841378426f
Updates for Cygwin portability (pr1585922)
2006-10-30 22:45:36 +00:00
steve
cbe1a6a3ca
Save dep_path because arg space is overrun.
2006-10-02 18:16:18 +00:00
steve
2037650080
Pass depfiles through temp defines file.
2006-07-26 00:11:40 +00:00
steve
61f3a84557
Pass defines and includes through temp file.
2006-07-26 00:02:48 +00:00
steve
be73be8c98
Spelling patches from Larry.
2005-09-19 21:45:35 +00:00
steve
e4ae832153
Clean up spurious trailing white space.
2004-10-04 01:10:51 +00:00
steve
98ba641e67
Remove bad casts.
2004-09-10 00:15:45 +00:00
steve
d16e8f7c94
Macros can have null values.
2004-09-06 03:01:48 +00:00
steve
4148a2a44c
Better type safety.
2004-09-05 21:29:07 +00:00
steve
0fd5a79760
Cleanup of warnings.
2004-02-15 18:03:30 +00:00
steve
8188c4c690
Makefile cleanup.
2004-02-10 19:25:00 +00:00
steve
2ed433b8c1
Detect missing endif markers.
2003-09-26 02:08:31 +00:00
steve
2df976b4c6
Cross compile patches.
2003-09-05 18:04:16 +00:00
steve
14150d6fba
ifdef idents correctly.
2003-08-26 16:26:01 +00:00
steve
ec07674d40
Fix Makefiles to support read-only source directory.
2003-08-22 04:27:10 +00:00
steve
6cc5dd93fe
Handle line termination a la mac/windows/unix.
2003-07-15 02:41:07 +00:00
steve
a5298eef46
Account for newer (2.5.31) flex.
2003-05-08 16:20:17 +00:00
steve
feee40603c
Makefile cleanups to better support concurrent make.
2003-02-27 22:13:22 +00:00
steve
d188e5cd2e
Macros can be expanded in quoted strings.
2003-02-03 00:28:12 +00:00
steve
a45803f00f
Better handling of comments in defines.
2003-02-02 23:54:35 +00:00
steve
6445bb6915
Handle comments in suppressed code.
2002-11-08 00:04:16 +00:00
steve
9faabfe995
Fix missing endifs within supressed ifdefs.
2002-09-25 02:23:08 +00:00
steve
475b603d15
Relax position constrations of ifdef and friends.
2002-09-19 20:33:27 +00:00
steve
70a7513781
Support $ in preprocessor identifiers.
2002-09-11 19:42:37 +00:00
steve
52bf4e613f
conditional ident string using autoconfig.
2002-08-12 01:34:58 +00:00
steve
284c6fd85d
Add dependency generation.
2002-04-04 05:26:13 +00:00
steve
eae9153b40
Parse multiline definitions.
2002-03-09 06:37:49 +00:00
steve
ba8465abd2
Support pragma comments.
2002-02-15 05:20:58 +00:00
steve
2f05d4b227
bison 1.31 doesnot include stdio.h
2002-01-24 03:57:45 +00:00
steve
0e5289b022
Print a useful message for failed include file.
2002-01-06 04:51:31 +00:00
steve
8309c1f673
Preserve the text after ifdefs in the output.
2001-11-29 02:26:25 +00:00
steve
7cbd710f7b
Remove diag print.
2001-11-21 02:59:27 +00:00
steve
39ef2b7605
Pass list of file to ivlpp via temporary file.
2001-11-21 02:20:34 +00:00
steve
9505b586bf
Generate IEEE1364-2000 line directives.
2001-10-30 21:53:27 +00:00
steve
a9aaca1ffa
Add ifndef support.
2001-10-30 20:48:55 +00:00
steve
b2b8b89cd8
Make configure detect malloc.h
2001-09-15 18:27:04 +00:00
steve
962a77c6b8
Rearrange bison parameters for portability.
2001-08-10 00:39:22 +00:00
steve
b825f8d2b2
Create a config.h.in file to hold all the config
...
junk, and support gcc 3.0. (Stephan Boettcher)
2001-07-25 03:10:48 +00:00
steve
0340256b4c
Include stdlib.h
2001-06-23 18:41:02 +00:00
steve
4e815f8565
local declares if the header is missing.
2001-05-20 18:06:57 +00:00
steve
de8c725890
Mingw32 support (Venkat Iyer)
2001-05-20 15:09:39 +00:00
steve
cc22ae833a
support leading _ in names.
2001-01-29 22:48:10 +00:00
steve
2b11f78d63
Catch malformed include directives (PR#100)
2001-01-20 03:10:35 +00:00
steve
a64a4d7a9b
Fixes to support compilation using vpath.
2001-01-09 03:11:27 +00:00
steve
e027247a0e
fix portfaults pass values.
2000-12-06 05:15:21 +00:00
steve
197ed46b26
configure bindir and libdir
2000-11-11 00:48:35 +00:00
steve
063d56ffc1
undefined macros are null (with warnings.)
2000-09-13 22:33:13 +00:00
steve
df113f962b
Clean up warnings and portability issues.
2000-08-20 17:49:04 +00:00
steve
7cccbda275
Handle different forms of line end.
2000-08-01 01:38:25 +00:00
steve
888360dd3b
Handle errors from parser slightly differently.
2000-06-30 15:49:44 +00:00
steve
72c8897d13
Handling mixing of defines within ifdef/endif.
2000-04-26 01:35:26 +00:00
steve
995f7e89d1
Handle define of macro without value.
2000-03-29 04:36:42 +00:00
steve
09e0d668a6
Handle EOF in defines.
2000-03-18 06:12:26 +00:00
steve
2a68121685
Use the new cell, instead of the deleted old one.
2000-03-05 06:13:29 +00:00
steve
4c274223cf
Move ivl and ivlpp to the lib directory.
2000-01-01 20:57:50 +00:00
steve
68a7ce3745
include getopt if present.
1999-11-29 17:02:21 +00:00
steve
b24fa87de6
installdirs targets for what each directory installes.
1999-10-16 20:48:15 +00:00
steve
eb0103deb5
Start line directives with newline.
1999-10-08 17:27:56 +00:00
steve
d904aceb2c
More liberal matching of include and define.
1999-09-16 00:49:05 +00:00
steve
006a2cce83
Take multiple source files on the command line.
1999-09-05 22:33:18 +00:00
steve
deabcf7687
Add clean target.
1999-07-30 00:42:33 +00:00
steve
1f3a934f10
use parent mkinstalldirs.
1999-07-28 03:17:03 +00:00
steve
7886328684
line comments effects detection of strings etc.
1999-07-25 00:03:13 +00:00
steve
7b7b2c749a
Trim trailing white space from macro values.
1999-07-17 05:10:13 +00:00
steve
fe614647c5
Reduce the excessive line directives from macros.
1999-07-15 22:53:47 +00:00
steve
ca920511b9
Handle strings as tokens.
1999-07-15 03:39:17 +00:00
steve
a7b3f697cf
implement undef.
1999-07-11 18:03:56 +00:00
steve
81d143f627
ifdef/else/endif directives.
1999-07-11 16:59:58 +00:00
steve
6003f42724
Better comment handling.
1999-07-10 00:36:12 +00:00
steve
63159ab3a1
underscores in macro names.
1999-07-07 01:18:57 +00:00
steve
d4b2a938a4
Nested defines.
1999-07-07 01:07:57 +00:00
steve
87dacbe83b
Install the correct name.
1999-07-03 23:58:56 +00:00
steve
4939e9fe61
Support line directives from the preprocessor.
1999-07-03 21:27:22 +00:00
steve
413e0d2aa6
Add include path and line directives.
1999-07-03 20:03:47 +00:00
steve
3d1f0b3da2
Add a preprocessor.
1999-07-03 17:24:11 +00:00