Peter Johnson
36a4a6c3a3
Port re2c parser from YACC to recursive descent.
...
svn path=/trunk/yasm/; revision=1718
18 years ago
Peter Johnson
52055a435d
Clean up a few minor nits (warnings).
...
svn path=/trunk/yasm/; revision=1690
18 years ago
Peter Johnson
193a0c21d5
re2c-parser.y: Work around a bug in Bison 2.1; Bison 2.1 generates bad code if both
...
YYPARSE_PARAM and __STDC__ are undefined.
svn path=/trunk/yasm/; revision=1641
18 years ago
Peter Johnson
305a8e54e8
* re2c/main.c: Include string.h so strlen and memcpy are prototyped.
...
svn path=/trunk/yasm/; revision=1360
19 years ago
Peter Johnson
aa81c64488
Build cleanups (mostly for warnings) for VC8.
...
* Mkfiles/vc8/config.h: Define _CRT_SECURE_NO_DEPRECATE to avoid most warnings about *_s functions.
Also use _stricmp directly instead of stricmp to avoid warnings.
* libyasm/strcasecmp.c: Support _stricmp usage.
* util.h: Likewise.
* tools/re2c/actions.c: Include ctype.h to define toupper/tolower.
* Mkfiles/vc8/modules/modules.vcproj: Don't include nasm-macros.c directly; this file is included
into another file and has no public variables.
* Mkfiles/vc8/yasm.sln: Allow x64 cross-builds from Win32 by building genmacro, genmodule, and
re2c for Win32 target.
svn path=/trunk/yasm/; revision=1328
19 years ago
Peter Johnson
be9368d872
re2c: Unbreak distcheck.
...
svn path=/trunk/yasm/; revision=1277
19 years ago
Peter Johnson
b6ed510e7e
re2c: Finish update to latest version.
...
svn path=/trunk/yasm/; revision=1275
19 years ago
Peter Johnson
ccec93a51e
re2c: Fix yyaccept warnings.
...
svn path=/trunk/yasm/; revision=1274
19 years ago
Peter Johnson
1702e9d833
Continue re2c updates. This one gets rid of the unused label warnings.
...
Going ahead and removing the cleanup script; a later commit will get rid
of the remaining unused variable warnings that the cleanup script took care
of as well.
svn path=/trunk/yasm/; revision=1273
19 years ago
Peter Johnson
bd45ec37ce
* cleanup.c: Add strdup implementation as strdup is nonstandard C.
...
svn path=/trunk/yasm/; revision=1272
19 years ago
Peter Johnson
90b7a5d9da
Update re2c to May 12, 2004 version. This adds an output file option, so
...
also adjust cleanup program to take input/output file name, and update
Makefiles to use it in this fashion.
svn path=/trunk/yasm/; revision=1271
19 years ago
Peter Johnson
35453721e6
* re2c: Start syncing back up to re2c HEAD. This gets us up to 2004-03-29.
...
svn path=/trunk/yasm/; revision=1270
19 years ago
Peter Johnson
38846c5556
* ins.h, scanner.h, dfa.h, code.c, re.h, parse.h, token.h, substr.h:
...
Remove use of "inline". This could cause breakage on non-gcc systems (as
these files do not use config.h because of cross-build reasons).
* yasm.dep, yasm.mak, yasm.dsp, yasm.dsw: Remove support for VC6 builds.
* libyasm.dsp, libyasm.mak, libyasm.dep: Likewise.
* modules.dsp, modules.mak, modules.dep: Likewise.
* yasm.suo: Remove unneeded user options file.
* vc: Update svn:ignore property to reflect removal of VC6 builds and user
options file.
* genmacro.vcproj: Generate genmacro tool.
* genmacro/run.bat: Use genmacro to generate nasm-macros.c.
* modules.vcproj: Point to the new location for nasm-macros.c.
* re2c.vcproj: Generate re2c tool.
* re2c/run.bat: Use re2c to generate re2c-generated .c files.
* yasm.sln: Utilize genmacro and re2c.
svn path=/trunk/yasm/; revision=1144
20 years ago
Peter Johnson
fd25e2545d
* tools/re2c/Makefile.inc: Update build rules for re2c-parser.c and
...
re2c-parser.h, and include the generated files in the distribution.
svn path=/trunk/yasm/; revision=1143
20 years ago
Peter Johnson
1a86c34026
* On most files: re-enable $IdPath$ as $Id$, and enable Id keyword expansion.
...
svn path=/trunk/yasm/; revision=1137
20 years ago
Peter Johnson
f094f47abb
Update auto*, libtool, libltdl, and gettext scripts.
...
Make cross-building work by changing how re2c and other build tools are
compiled.
svn path=/trunk/yasm/; revision=1127
21 years ago
Peter Johnson
2edc4e2865
Convert re2c cleanup.pl to cleanup.c, removing final Perl dependency.
...
Remove checking for Perl and Perl version in configure.
svn path=/trunk/yasm/; revision=1104
21 years ago
Peter Johnson
4a4aa52a85
Repeat after me: test compile before commit.
...
Side note: there's a bug in cleanup.pl; it mistakenly deleted the yyaccept
when it shouldn't have.
svn path=/trunk/yasm/; revision=1036
22 years ago
Peter Johnson
be9dba39c4
Scanner internal to re2c was not catching EOF's properly.
...
svn path=/trunk/yasm/; revision=1035
22 years ago
Peter Johnson
b5f64623ca
Use /usr/bin/env for finding PERL.
...
svn path=/trunk/yasm/; revision=1007
22 years ago
Peter Johnson
823fb1b781
Reformat multi-file lists to use many += lines instead of using \
...
(line-continued) lines. Format-only change, no functional change.
svn path=/trunk/yasm/; revision=959
22 years ago
Peter Johnson
aa07d08e5c
Remove typedefs for uint/uchar/ushort/ulong to avoid compiler warnings on Linux.
...
svn path=/trunk/yasm/; revision=922
22 years ago
Peter Johnson
fa0437c34c
Remove unused yyaccept variables (eliminates warnings from generated code).
...
svn path=/trunk/yasm/; revision=868
22 years ago
Peter Johnson
19d22bdbb3
Output something a little more unique than just - for the output file #line's.
...
svn path=/trunk/yasm/; revision=745
22 years ago
Peter Johnson
db4c347e32
Generate #line in the output in a useful way. Now it's much more usable for
...
debugging, code coverage, etc. (with a little post-processing sed help).
svn path=/trunk/yasm/; revision=744
22 years ago
Peter Johnson
c998053da9
Undo part of the tools/re2c flattening. Specifying a re2c_CFLAGS causes
...
automake to automatically prepend re2c- to all generated object files,
eliminating the main.o conflict. Also, it prevents extended compilation flags
from applying to the re2c build.
In Makefile.am, also allow automake to automatically include the autoconf
conditionally-included files strsep and mergesort.
svn path=/trunk/yasm/; revision=739
22 years ago
Peter Johnson
582c5ea3d7
Warning cleanups.
...
svn path=/trunk/yasm/; revision=699
23 years ago
Peter Johnson
aacbbef7f9
Fix pointer comparison. Should be checking for == NULL, not <0.
...
svn path=/trunk/yasm/; revision=679
23 years ago
Peter Johnson
4c6d5575dc
Run through cleanup.pl to get rid of unused labels.
...
svn path=/trunk/yasm/; revision=673
23 years ago
Peter Johnson
00497afd8f
Neaten the line-continuation a bit.
...
svn path=/trunk/yasm/; revision=669
23 years ago
Peter Johnson
6c7bb59857
Flatten the tools/re2c build.
...
- Moved (by repocopy) main.c to re2c.c
- Moved (by repocopy) parser.y to re2c-parser.y
- Changed to Makefile.inc's rather than Makefile.am's
- Modified all the source file local includes to point to tools/re2c/*.h
svn path=/trunk/yasm/; revision=668
23 years ago
Peter Johnson
1f71e995ca
Fix a few cases of freeing NULL pointers.
...
svn path=/trunk/yasm/; revision=662
23 years ago
Peter Johnson
9eedce2b89
Cleanup script for re2c output that removes unreferenced labels (significantly
...
reducing C compiler warnings).
svn path=/trunk/yasm/; revision=647
23 years ago
Peter Johnson
5ba3fb01bf
Fix 2 major bugs: -b switch caused crash, and all actions got corrupted.
...
svn path=/trunk/yasm/; revision=646
23 years ago
Peter Johnson
3bbc385082
Add bison-generated sources to BUILT_SOURCES and CLEANFILES.
...
svn path=/trunk/yasm/; revision=614
23 years ago
Peter Johnson
d11a297283
Portability fixes: include config.h to get rid of inline if necessary, remove
...
last // comments, and include a local strdup.
svn path=/trunk/yasm/; revision=588
23 years ago
Peter Johnson
ad22cf5a0a
Add local changes (primarily C++ -> C conversion).
...
svn path=/trunk/yasm/; revision=587
23 years ago
Peter Johnson
c23b8437d7
Add re2c to the build tree. Build tools with recursive make instead of from
...
top-level Makefile (for various reasons, including object name conflicts).
svn path=/trunk/yasm/; revision=585
23 years ago
Peter Johnson
33a981424e
Don't conflict local parser.h with bison-generated parser.h by renaming
...
parser.h to parse.h.
svn path=/trunk/yasm/; revision=584
23 years ago
Peter Johnson
6db97b6a23
Add pre-generated bootstrap files for re2c-generated scanner.
...
svn path=/trunk/yasm/; revision=583
23 years ago
Peter Johnson
27b0d041ea
Finish C conversion.
...
svn path=/trunk/yasm/; revision=582
23 years ago
Peter Johnson
88d5a1e6c4
Continuing C conversion (not everything is compilable yet).
...
svn path=/trunk/yasm/; revision=581
23 years ago
Peter Johnson
05224a9fd9
Make dual functions: _new (which allocates) and _init (which just copies) to
...
make C conversion elsewhere easier.
svn path=/trunk/yasm/; revision=580
23 years ago
Peter Johnson
bfe432b582
Prepend re2c to multiple include protections.
...
svn path=/trunk/yasm/; revision=579
23 years ago
Peter Johnson
c71097348c
Convert to C.
...
svn path=/trunk/yasm/; revision=578
23 years ago
Peter Johnson
910d5c64aa
Start C conversion. Eliminate bootstrap files.
...
svn path=/trunk/yasm/; revision=577
23 years ago
Peter Johnson
7cd8fdd1a0
Initial revision
...
svn path=/trunk/yasm/; revision=573
23 years ago