Peter Johnson
902d974288
Save filename as well as line number for each symbol.
...
svn path=/trunk/yasm/; revision=224
24 years ago
Peter Johnson
197f8857e4
Change error/warning framework to store a list of errors and warnings instead
...
of just one at a time. This is the groundwork for printing undefined symbol
messages, which can't be determined until after parsing has been completed
(and should be in the same line order with the other errors).
svn path=/trunk/yasm/; revision=223
24 years ago
Peter Johnson
8e53900160
First version of HACKING, only for Unix and not nearly complete.
...
Also makes reference to incomplete (and not in CVS) design document.
svn path=/trunk/yasm/; revision=222
24 years ago
Peter Johnson
5d71f1f737
Fixed nasty bug in error handling. It should have been setting the return
...
bytecode value to NULL on error, but wasn't (random return value is bad!).
svn path=/trunk/yasm/; revision=221
24 years ago
Peter Johnson
f9209d5200
Used ternary search tree instead of linked list to store symbol table.
...
Cleaned up function naming too.
Removed locallabel_base from global.h, moving it into the parser-specific code.
Made sym_table private to symrec.c.
svn path=/trunk/yasm/; revision=220
24 years ago
Peter Johnson
2f6a19295d
Remove redundant check for features.h, and cache GNU C Library test.
...
svn path=/trunk/yasm/; revision=219
24 years ago
Peter Johnson
df62b73779
Add check and BSD replacement for strsep(3).
...
svn path=/trunk/yasm/; revision=218
24 years ago
Peter Johnson
ecf19c6170
Delete ancient symrec cruft.
...
svn path=/trunk/yasm/; revision=217
24 years ago
Peter Johnson
b253f75170
Integrate ternary search trees into build.
...
svn path=/trunk/yasm/; revision=216
24 years ago
Peter Johnson
58365ef593
Initial revision
...
svn path=/trunk/yasm/; revision=212
24 years ago
Peter Johnson
b3f0a1c6b8
Make name and keyword const.
...
svn path=/trunk/yasm/; revision=211
24 years ago
Peter Johnson
ac22f77d42
Get initial bits setting from object format. Change the initial section name
...
from a function to a constant string. Make mode_bits uniformily an unsigned
char instead of an int.
svn path=/trunk/yasm/; revision=210
24 years ago
Peter Johnson
63d8a451b7
Define YY_NEVER_INTERACTIVE, because we never are :).
...
svn path=/trunk/yasm/; revision=209
24 years ago
Peter Johnson
a002baa1df
Check for snprintf (used in Check suite). Also define _GNU_SOURCE for Check
...
to stop warnings on Linux.
svn path=/trunk/yasm/; revision=208
24 years ago
Peter Johnson
6b4d5d7d73
Remove error message for check when check is disabled. It breaks check (and
...
distcheck) on linux.
svn path=/trunk/yasm/; revision=207
24 years ago
Peter Johnson
f173e9e042
Include stddef.h for size_t.
...
svn path=/trunk/yasm/; revision=206
24 years ago
Peter Johnson
5bed5011d0
Make sure | and == done in right order.
...
svn path=/trunk/yasm/; revision=205
24 years ago
Peter Johnson
91f41e241b
Try to fix configure and automake files so everything builds a bit cleaner.
...
Also try to fix the warnings on the GNU C Library.
Still a lot of work and testing to be done here, but making progress.
svn path=/trunk/yasm/; revision=204
24 years ago
Peter Johnson
60fd596a66
Cleaned up bytecode data structure, some effaddr functions. Made ea an
...
effaddr * instead of an effaddr to decrease size of bytecode. Changed parser
to use effaddr * as well. Finally fixed issue with ONE by adding flag to
bytecode.data.insn and utilizing spare bytes of the opcode. Hackish, but
works.
svn path=/trunk/yasm/; revision=203
24 years ago
Peter Johnson
6b2cf5c018
Added README and NEWS to EXTRA_DIST.
...
svn path=/trunk/yasm/; revision=202
24 years ago
Peter Johnson
5bfb25663d
Autoconfize Check test suite, and make it work even if fork(), wait(), and
...
msg*() aren't available.
svn path=/trunk/yasm/; revision=201
24 years ago
Peter Johnson
3bd6541c5f
Allow make check and tests module to be disabled, as it's not portable yet.
...
svn path=/trunk/yasm/; revision=200
24 years ago
Peter Johnson
d0c4ae1572
Make sure bison.y and token.l get included in the distribution.
...
svn path=/trunk/yasm/; revision=199
24 years ago
Peter Johnson
556602d2fa
Add portable little-endian file functions.
...
svn path=/trunk/yasm/; revision=198
24 years ago
Peter Johnson
1284d8d8af
Pull in GCC and ELF alternatives for RCSID() if available.
...
Idea from: sys/cdefs.h on FreeBSD.
svn path=/trunk/yasm/; revision=197
24 years ago
Peter Johnson
1fd753346c
Build section linked list, and support the section directive, including
...
asking the objfmt module. Add some utility functions for both bytecode
and section to better modularize their data structure usage and common
code. Rename doparse to do_parse to be consistent in naming.
svn path=/trunk/yasm/; revision=196
24 years ago
Peter Johnson
a95f135cc2
Completely test ConvertRegToEA().
...
svn path=/trunk/yasm/; revision=195
24 years ago
Peter Johnson
fb1246f761
Print the test function name along with the test case name. Many of our
...
functions are so small that it doesn't make sense to have a test case for
every function (rather just a test function for every function).
svn path=/trunk/yasm/; revision=194
24 years ago
Peter Johnson
0b24caa55c
Cleanup of local .cvsignore files after addition of global CVSROOT/cvsignore.
...
svn path=/trunk/yasm/; revision=193
24 years ago
Peter Johnson
344727f824
Don't always check for Perl.
...
svn path=/trunk/yasm/; revision=191
24 years ago
Peter Johnson
9397744af8
Add unit test framework using Check ( http://check.sourceforge.net/ ).
...
Only test included right now is a tiny one for one bytecode function, but
will grow as time goes on.
TODO: check for non ANSI C things required by Check.
svn path=/trunk/yasm/; revision=190
24 years ago
Peter Johnson
cd3528249d
Initial revision
...
svn path=/trunk/yasm/; revision=186
24 years ago
Peter Johnson
e649bada33
Change ../ to $(top_builddir). It's clearer and safer.
...
svn path=/trunk/yasm/; revision=185
24 years ago
Peter Johnson
ef19b09dc2
Limit some tools to --enable-dev only. Only check for and use them if
...
--enable-dev is passed to configure.
svn path=/trunk/yasm/; revision=184
24 years ago
Michael Urman
caba67b7d6
Fixed two ansi C errors (empty file and extra semicolon)
...
svn path=/trunk/yasm/; revision=183
24 years ago
Peter Johnson
50bd17cd18
Reorganize docs into programmer and user parts. Repo-copy contrib/queue to
...
programmer/queue.
svn path=/trunk/yasm/; revision=182
24 years ago
Peter Johnson
79295b7e9d
Add rcs id.
...
svn path=/trunk/yasm/; revision=181
24 years ago
Peter Johnson
52e16af8a5
Add configure.scan and *.tar.gz.
...
svn path=/trunk/yasm/; revision=180
24 years ago
Peter Johnson
52847afaff
Use absolute paths instead of srcdir because libintl.h is built in the
...
build directory. To pass distcheck we need to do it this way.
svn path=/trunk/yasm/; revision=179
24 years ago
Peter Johnson
c72e48925e
Use automake for queue docs, otherwise distcheck complains.
...
svn path=/trunk/yasm/; revision=178
24 years ago
Peter Johnson
7c8c850f10
optimizer.h should be listed in yasm_SOURCES and it wasn't.
...
svn path=/trunk/yasm/; revision=177
24 years ago
Peter Johnson
863ac29d02
Add doc to automake and configure.
...
Only build queue docs if dev is enabled (--enable-dev).
svn path=/trunk/yasm/; revision=176
24 years ago
Peter Johnson
4e810ecf77
Add queue(3) docs from FreeBSD.
...
svn path=/trunk/yasm/; revision=175
24 years ago
Peter Johnson
b2890b8f9d
$Id$ -> $IdPath$.
...
svn path=/trunk/yasm/; revision=174
24 years ago
Peter Johnson
23e3786f58
Reorder generated Makefile list a little (to be consistent with
...
src/Makefile.am).
svn path=/trunk/yasm/; revision=172
24 years ago
Peter Johnson
1f499ab545
Expand out list of generated Makefiles and add RCS id.
...
svn path=/trunk/yasm/; revision=171
24 years ago
Peter Johnson
d758a063b2
Add barebones optimizer module framework.
...
svn path=/trunk/yasm/; revision=169
24 years ago
Peter Johnson
305d332441
Add prefix on local functions so they're easy to find in the debugger.
...
svn path=/trunk/yasm/; revision=168
24 years ago
Peter Johnson
20daa47e62
Reindent to match other code for the most part.
...
svn path=/trunk/yasm/; revision=167
24 years ago
Peter Johnson
695ab62056
Whoa, oops! Bad bug in bytecode_new_common (wasn't returning allocated bc).
...
svn path=/trunk/yasm/; revision=166
24 years ago