]> granicus.if.org Git - yasm/log
yasm
22 years agoComment additions.
Peter Johnson [Mon, 18 Mar 2002 07:12:57 +0000 (07:12 -0000)]
Comment additions.

svn path=/trunk/yasm/; revision=526

22 years agoFix slight whitespace issue - don't append whitespace after closing
Michael Urman [Mon, 18 Mar 2002 03:11:07 +0000 (03:11 -0000)]
Fix slight whitespace issue - don't append whitespace after closing
paren to beginning of expansion of %define with parameters.

svn path=/trunk/yasm/; revision=525

22 years agodefines with parameters seem to work. wow. i need some more test
Michael Urman [Mon, 18 Mar 2002 03:07:46 +0000 (03:07 -0000)]
defines with parameters seem to work.  wow.  i need some more test
cases, cause i'm pretty sure i have to have missed something.

svn path=/trunk/yasm/; revision=524

22 years agoTests for define with parameters.
Michael Urman [Mon, 18 Mar 2002 03:02:54 +0000 (03:02 -0000)]
Tests for define with parameters.

svn path=/trunk/yasm/; revision=523

22 years agoLots of preparations for expanding %defines with argument lists:
Michael Urman [Sun, 17 Mar 2002 21:58:42 +0000 (21:58 -0000)]
Lots of preparations for expanding %defines with argument lists:
 - several global struct source_head's have become localized to allow
   recursion
 - a few more helper functions, etc.
No change in the output yet, except in the previously unsupported cases.

svn path=/trunk/yasm/; revision=522

22 years agoBinary object format output! Lots of structural changes needed, particularly
Peter Johnson [Sun, 17 Mar 2002 21:58:36 +0000 (21:58 -0000)]
Binary object format output!  Lots of structural changes needed, particularly
with regards to resolve_label().
MAJOR FIXME: The tobytes() pass acts like a final optimization pass.  This
causes internal errors because of length mismatches (optimized to shorter len).

svn path=/trunk/yasm/; revision=521

22 years agoMake call instruction work correctly. The old code generated a legal short
Peter Johnson [Sun, 17 Mar 2002 21:55:53 +0000 (21:55 -0000)]
Make call instruction work correctly.  The old code generated a legal short
form for it (opcode length 1, opcode 0, rather than opcode length 0).

svn path=/trunk/yasm/; revision=520

22 years agoRemove debugging print statement added in previous commit.
Peter Johnson [Sun, 17 Mar 2002 20:19:29 +0000 (20:19 -0000)]
Remove debugging print statement added in previous commit.

svn path=/trunk/yasm/; revision=519

22 years agoMake call instruction work correctly. The old code generated a legal short
Peter Johnson [Sun, 17 Mar 2002 20:18:24 +0000 (20:18 -0000)]
Make call instruction work correctly.  The old code generated a legal short
form for it (opcode length 1, opcode 0, rather than opcode length 0).

svn path=/trunk/yasm/; revision=518

22 years agoFix bug in 32-bit displacement with no registers.
Peter Johnson [Sun, 17 Mar 2002 10:06:44 +0000 (10:06 -0000)]
Fix bug in 32-bit displacement with no registers.

svn path=/trunk/yasm/; revision=517

22 years agoRemoved spurious src/tests/yapp_test from CLEANFILES (*bewildered look*)
Michael Urman [Sun, 17 Mar 2002 06:59:46 +0000 (06:59 -0000)]
Removed spurious src/tests/yapp_test from CLEANFILES (*bewildered look*)

svn path=/trunk/yasm/; revision=516

22 years agoDon't block global src variable. While I'm here, change to use SLIST_FOREACH.
Peter Johnson [Sun, 17 Mar 2002 06:03:36 +0000 (06:03 -0000)]
Don't block global src variable.  While I'm here, change to use SLIST_FOREACH.

svn path=/trunk/yasm/; revision=515

22 years agoNow that whitespace is mostly preserved, no need for the next token for
Michael Urman [Sun, 17 Mar 2002 05:23:56 +0000 (05:23 -0000)]
Now that whitespace is mostly preserved, no need for the next token for
guessing whitespace insertion.

svn path=/trunk/yasm/; revision=514

22 years agoHandle recursive %defines properly.
Michael Urman [Sun, 17 Mar 2002 01:07:10 +0000 (01:07 -0000)]
Handle recursive %defines properly.

svn path=/trunk/yasm/; revision=513

22 years agoTests for recursive %defines.
Michael Urman [Sun, 17 Mar 2002 01:06:16 +0000 (01:06 -0000)]
Tests for recursive %defines.

svn path=/trunk/yasm/; revision=512

22 years agoHandle %define to %define - caught use of a global in a recursive func.
Michael Urman [Sun, 17 Mar 2002 00:48:56 +0000 (00:48 -0000)]
Handle %define to %define - caught use of a global in a recursive func.
Fix how %defines get built - append_through_return -> append_to_return.

svn path=/trunk/yasm/; revision=511

22 years agotest case for %define to a %define. non-recursive.
Michael Urman [Sun, 17 Mar 2002 00:47:19 +0000 (00:47 -0000)]
test case for %define to a %define.  non-recursive.

svn path=/trunk/yasm/; revision=510

22 years agoCatch a few missing inhibited directives (not implemented yet anyway).
Michael Urman [Sun, 17 Mar 2002 00:28:15 +0000 (00:28 -0000)]
Catch a few missing inhibited directives (not implemented yet anyway).
Preserve non-trailing whitespace (cleaner look, supports %define foo()).
Condense %line, \n or %line, %line into single %line.

svn path=/trunk/yasm/; revision=509

22 years agoHandle output inhibition more properly; %includes inside %ifs don't
Michael Urman [Sat, 16 Mar 2002 23:32:31 +0000 (23:32 -0000)]
Handle output inhibition more properly; %includes inside %ifs don't
actually %include, etc.
Also fix starting line to be 1, not 0.

svn path=/trunk/yasm/; revision=508

22 years agoSeveral new tests.
Michael Urman [Sat, 16 Mar 2002 23:30:48 +0000 (23:30 -0000)]
Several new tests.

svn path=/trunk/yasm/; revision=507

22 years agoCatch "errors" and update report format
Michael Urman [Sat, 16 Mar 2002 22:19:16 +0000 (22:19 -0000)]
Catch "errors" and update report format

svn path=/trunk/yasm/; revision=506

22 years agoAdd ifdef tests.
Michael Urman [Sat, 16 Mar 2002 22:17:01 +0000 (22:17 -0000)]
Add ifdef tests.

svn path=/trunk/yasm/; revision=505

22 years agoadd beginnings of test suite for yapp
Michael Urman [Sat, 16 Mar 2002 21:27:11 +0000 (21:27 -0000)]
add beginnings of test suite for yapp

svn path=/trunk/yasm/; revision=504

22 years agoreturn [ and ] characters
Michael Urman [Sat, 16 Mar 2002 20:59:04 +0000 (20:59 -0000)]
return [ and ] characters

svn path=/trunk/yasm/; revision=503

22 years agoRemoved spurious include of objfmt
Michael Urman [Sat, 16 Mar 2002 20:58:36 +0000 (20:58 -0000)]
Removed spurious include of objfmt
Added some debugging printf to isolate and fix failing define case

svn path=/trunk/yasm/; revision=502

22 years agoRemove some spurious includes.
Michael Urman [Sat, 16 Mar 2002 18:25:04 +0000 (18:25 -0000)]
Remove some spurious includes.

svn path=/trunk/yasm/; revision=501

22 years agoDon't call bc_resolve (it's going away soon).
Peter Johnson [Fri, 15 Mar 2002 22:19:58 +0000 (22:19 -0000)]
Don't call bc_resolve (it's going away soon).
FIXME: Do we really need to check completion of all sections?

svn path=/trunk/yasm/; revision=500

22 years agoAdd autom4te.cache.
Peter Johnson [Fri, 15 Mar 2002 07:00:56 +0000 (07:00 -0000)]
Add autom4te.cache.

svn path=/trunk/yasm/; revision=499

22 years agoSwitch to requiring autoconf 2.50. We should really be using configure.ac
Peter Johnson [Fri, 15 Mar 2002 07:00:12 +0000 (07:00 -0000)]
Switch to requiring autoconf 2.50.  We should really be using configure.ac
instead of configure.in for the autoconf input file, but gettextize 0.10.35
complains if configure.in does not exist.

svn path=/trunk/yasm/; revision=498

22 years agoSwitch to requiring autoconf 2.50. We should really be using configure.ac
Peter Johnson [Fri, 15 Mar 2002 07:00:12 +0000 (07:00 -0000)]
Switch to requiring autoconf 2.50.  We should really be using configure.ac
instead of configure.in for the autoconf input file, but gettextize 0.10.35
complains if configure.in does not exist.

svn path=/trunk/yasm/; revision=497

22 years agoAdd bcs_last() macro.
Peter Johnson [Thu, 14 Mar 2002 06:40:07 +0000 (06:40 -0000)]
Add bcs_last() macro.

svn path=/trunk/yasm/; revision=496

22 years agoOnly check for dmalloc library and dmalloc.h if --enable-dmalloc is used. This
Peter Johnson [Thu, 14 Mar 2002 05:58:42 +0000 (05:58 -0000)]
Only check for dmalloc library and dmalloc.h if --enable-dmalloc is used.  This
prevents it being linked in even if it isn't enabled.

svn path=/trunk/yasm/; revision=495

22 years agoOnly check for dmalloc library and dmalloc.h if --enable-dmalloc is used. This
Peter Johnson [Thu, 14 Mar 2002 05:58:42 +0000 (05:58 -0000)]
Only check for dmalloc library and dmalloc.h if --enable-dmalloc is used.  This
prevents it being linked in even if it isn't enabled.

svn path=/trunk/yasm/; revision=494

22 years agoMake duplicate definition (w/regards to COMMON and EXTERN) work properly.
Peter Johnson [Thu, 14 Mar 2002 04:26:03 +0000 (04:26 -0000)]
Make duplicate definition (w/regards to COMMON and EXTERN) work properly.

svn path=/trunk/yasm/; revision=493

22 years agoMove static structures from .h to .c, include .h in .l.
Peter Johnson [Wed, 13 Mar 2002 04:53:47 +0000 (04:53 -0000)]
Move static structures from .h to .c, include .h in .l.

svn path=/trunk/yasm/; revision=492

22 years agoFix warning.
Peter Johnson [Tue, 12 Mar 2002 05:45:50 +0000 (05:45 -0000)]
Fix warning.

svn path=/trunk/yasm/; revision=491

22 years agoAdd bin object format.
Peter Johnson [Sun, 10 Mar 2002 23:15:14 +0000 (23:15 -0000)]
Add bin object format.
Changes to:
 objfmt interface: added parameter to directive() for sections access.
 section interface: moved start to be present for all section types.
 basic optimizer: add section start to offset determination.
(much of the section start changes are due to the need to make sure offsets
don't end up being optimized into byte-sized offsets that can't be relocated).

svn path=/trunk/yasm/; revision=490

22 years agoAllow replacing with no extension (eg w/o an appended '.'). Needed for bin
Peter Johnson [Sun, 10 Mar 2002 23:07:20 +0000 (23:07 -0000)]
Allow replacing with no extension (eg w/o an appended '.').  Needed for bin
objfmt output.

svn path=/trunk/yasm/; revision=489

22 years agoMove BitCount() macro from hamt.c to util.h.
Peter Johnson [Sun, 10 Mar 2002 20:21:50 +0000 (20:21 -0000)]
Move BitCount() macro from hamt.c to util.h.

svn path=/trunk/yasm/; revision=488

22 years agoAdd yapp-token.c.
Peter Johnson [Sun, 10 Mar 2002 06:04:29 +0000 (06:04 -0000)]
Add yapp-token.c.

svn path=/trunk/yasm/; revision=487

22 years agoFixed some warnings.
Michael Urman [Sun, 10 Mar 2002 02:41:44 +0000 (02:41 -0000)]
Fixed some warnings.
The wussy way, cause i didn't comment any of the new prototypes.

svn path=/trunk/yasm/; revision=486

22 years agoAdd const char *in_filename arguments to
Michael Urman [Thu, 7 Mar 2002 08:50:39 +0000 (08:50 -0000)]
Add const char *in_filename arguments to
 - preproc initialize function
 - parser parse function (to pass to preproc initialize)
so that the preprocessor has a clue what file it's in.

svn path=/trunk/yasm/; revision=484

22 years agoYAPP has arrived.
Michael Urman [Thu, 7 Mar 2002 08:32:22 +0000 (08:32 -0000)]
YAPP has arrived.

Or at least it has begun.  At this point it can only handle:
%define
%if*def
%el*def
%else
%endif
%include (to some degree; needs a lot of thought, but recurses fine)
and replacing simple %defines (like %define foo bar)

And like all code, it's probably horribly inconsistent about variable
names, etc.  We'll wash it later.

svn path=/trunk/yasm/; revision=483

22 years agoUpdate main files to include support for yapp.
Michael Urman [Thu, 7 Mar 2002 08:26:50 +0000 (08:26 -0000)]
Update main files to include support for yapp.
This includes defaulting to yapp for ./yasm -e passes.

svn path=/trunk/yasm/; revision=482

22 years agoEnhance bc_resolve() implementation a bit, but comment out, as this function
Peter Johnson [Thu, 7 Mar 2002 07:40:40 +0000 (07:40 -0000)]
Enhance bc_resolve() implementation a bit, but comment out, as this function
will probably disappear in the near future (its functionality will be handled
directly by the object format module without the need for another pass).

svn path=/trunk/yasm/; revision=481

22 years agoSupport NASM syntax of options such as -fobj (as well as -f obj).
Peter Johnson [Wed, 6 Mar 2002 08:23:29 +0000 (08:23 -0000)]
Support NASM syntax of options such as -fobj (as well as -f obj).

svn path=/trunk/yasm/; revision=480

22 years agoAllow preprocess-only and setting of preproc. Update main() and related
Peter Johnson [Wed, 6 Mar 2002 06:02:21 +0000 (06:02 -0000)]
Allow preprocess-only and setting of preproc.  Update main() and related
functions to be a bit more clean.

svn path=/trunk/yasm/; revision=479

22 years agoUpdate bug mailing address to <bug-yasm@tortall.net>.
Peter Johnson [Wed, 6 Mar 2002 05:59:19 +0000 (05:59 -0000)]
Update bug mailing address to <bug-yasm@tortall.net>.

svn path=/trunk/yasm/; revision=478

22 years agoUse non-preprocessed BITS directive so this can be assembled with current YASM.
Peter Johnson [Sat, 2 Mar 2002 22:39:35 +0000 (22:39 -0000)]
Use non-preprocessed BITS directive so this can be assembled with current YASM.

svn path=/trunk/yasm/; revision=477

22 years agoRevamp object format functional interface a bit. Now, only the output()
Peter Johnson [Wed, 27 Feb 2002 05:43:16 +0000 (05:43 -0000)]
Revamp object format functional interface a bit.  Now, only the output()
function gets a FILE *, and it's the only function that can write to a file.
The object file is thus not opened until AFTER parsing and most error checking
is complete.  Necessitated adding a special case for the dbg object format
because it needs to output to the "object" (debug) file from essentially every
function.  Added a global (debug_file) to support this.

svn path=/trunk/yasm/; revision=476

22 years agoEnable second pass (resolve/calculate known values).
Peter Johnson [Wed, 27 Feb 2002 05:40:46 +0000 (05:40 -0000)]
Enable second pass (resolve/calculate known values).

svn path=/trunk/yasm/; revision=475

22 years agoInclude errwarn.h to declare ErrorAt().
Peter Johnson [Thu, 21 Feb 2002 05:30:48 +0000 (05:30 -0000)]
Include errwarn.h to declare ErrorAt().

svn path=/trunk/yasm/; revision=474

22 years agoTest circular reference detection. Very basic examples from NASM's docs on
Peter Johnson [Wed, 20 Feb 2002 08:16:13 +0000 (08:16 -0000)]
Test circular reference detection.  Very basic examples from NASM's docs on
critical expressions.
NASM behavior: 1-3 fail, 4 generates a 4-byte offset in the memory expression.
YASM behavior: 1&2 fail (and rightfully so :), 3 works as expected, and 4
 generates a 1-byte offset.

svn path=/trunk/yasm/; revision=473

22 years agoIndicate actual line number of circular reference error.
Peter Johnson [Wed, 20 Feb 2002 08:05:10 +0000 (08:05 -0000)]
Indicate actual line number of circular reference error.

svn path=/trunk/yasm/; revision=472

22 years agoBring up-to-date with traverse function changes. Start trying to check for
Peter Johnson [Wed, 20 Feb 2002 07:43:26 +0000 (07:43 -0000)]
Bring up-to-date with traverse function changes.  Start trying to check for
circular references.

svn path=/trunk/yasm/; revision=471

22 years agoCorrect optimize() comment.
Peter Johnson [Wed, 20 Feb 2002 07:40:13 +0000 (07:40 -0000)]
Correct optimize() comment.

svn path=/trunk/yasm/; revision=470

22 years agoTerminate & cleanup early if an error occurs during the optimization phase.
Peter Johnson [Wed, 20 Feb 2002 07:39:27 +0000 (07:39 -0000)]
Terminate & cleanup early if an error occurs during the optimization phase.

svn path=/trunk/yasm/; revision=469

22 years agoReverse how traverse functions do early termination (now, they terminate on
Peter Johnson [Wed, 20 Feb 2002 07:38:41 +0000 (07:38 -0000)]
Reverse how traverse functions do early termination (now, they terminate on
a non-zero func return and return the value func returned).  Document the
changes in the header files.

svn path=/trunk/yasm/; revision=468

22 years agoFix issue with how symrec's are handled when an expression is copied: old code
Peter Johnson [Wed, 20 Feb 2002 07:35:43 +0000 (07:35 -0000)]
Fix issue with how symrec's are handled when an expression is copied: old code
just assigned the pointer: but the symrec is deleted (if it's not in the symbol
table) when the expr is deleted.  Thus, we need to create a copy of the symrec
instead of just reusing the same value if it's going to be deleted later.  This
trickles down to objfmt to copy the objfmt-local data.

svn path=/trunk/yasm/; revision=467

22 years agoAdded --version option. Pass option descriptions, --help, and --version
Peter Johnson [Thu, 14 Feb 2002 09:04:20 +0000 (09:04 -0000)]
Added --version option.  Pass option descriptions, --help, and --version
messages through gettext.  Rework handling of --version and --help.

svn path=/trunk/yasm/; revision=466

22 years agoAdd semicolon at end of error handling code to fix syntax errors. Only seen
Peter Johnson [Wed, 13 Feb 2002 05:32:30 +0000 (05:32 -0000)]
Add semicolon at end of error handling code to fix syntax errors.  Only seen
on Cygwin so far, but a legitimate error.

svn path=/trunk/yasm/; revision=465

23 years agoBring up-to-date with tree and build changes.
Peter Johnson [Sat, 2 Feb 2002 05:08:39 +0000 (05:08 -0000)]
Bring up-to-date with tree and build changes.

svn path=/trunk/yasm/; revision=464

23 years agoEnhance error/warning framework by allowing specific warnings to be disabled,
Peter Johnson [Sun, 13 Jan 2002 08:53:24 +0000 (08:53 -0000)]
Enhance error/warning framework by allowing specific warnings to be disabled,
all warnings to be disabled, and warnings to be treated as errors, much in the
style of GNU tools such as gcc.

svn path=/trunk/yasm/; revision=463

23 years agoCheck for param=NULL before dereferencing it in sopt case.
Peter Johnson [Sun, 13 Jan 2002 01:10:19 +0000 (01:10 -0000)]
Check for param=NULL before dereferencing it in sopt case.

svn path=/trunk/yasm/; revision=462

23 years agoDon't compact into a short form if one's not available.
Peter Johnson [Fri, 11 Jan 2002 07:26:45 +0000 (07:26 -0000)]
Don't compact into a short form if one's not available.

svn path=/trunk/yasm/; revision=461

23 years agoMake jcc's default to JR_SHORT in NASM syntax, and test for this possibility
Peter Johnson [Fri, 11 Jan 2002 07:12:57 +0000 (07:12 -0000)]
Make jcc's default to JR_SHORT in NASM syntax, and test for this possibility
in calc_len().

svn path=/trunk/yasm/; revision=460

23 years agoFinish bc_calc_len(), with fixes to x86_bc_calc_len_insn()'s EA sizing calcs,
Peter Johnson [Fri, 11 Jan 2002 05:04:47 +0000 (05:04 -0000)]
Finish bc_calc_len(), with fixes to x86_bc_calc_len_insn()'s EA sizing calcs,
and implementation of x86_bc_calc_len_jmprel().

svn path=/trunk/yasm/; revision=459

23 years agoIn optimize_bytecode(), calculate bc->offset *before* calling bc_calc_len().
Peter Johnson [Fri, 11 Jan 2002 04:36:23 +0000 (04:36 -0000)]
In optimize_bytecode(), calculate bc->offset *before* calling bc_calc_len().
This is because calc_len may want to know the current bytecode's offset (eg for
determining relative displacement length).

svn path=/trunk/yasm/; revision=458

23 years agoImplement rest of bc_calc_len for general bytecodes.
Peter Johnson [Fri, 11 Jan 2002 02:59:33 +0000 (02:59 -0000)]
Implement rest of bc_calc_len for general bytecodes.

svn path=/trunk/yasm/; revision=457

23 years agoDon't store "determined" immediate len and neg. Both will be determined from
Peter Johnson [Thu, 10 Jan 2002 05:39:25 +0000 (05:39 -0000)]
Don't store "determined" immediate len and neg.  Both will be determined from
the expr when that's actually possible.

svn path=/trunk/yasm/; revision=456

23 years agoAdd comment about bc_calc_len() possibly returning -1.
Peter Johnson [Thu, 10 Jan 2002 05:29:22 +0000 (05:29 -0000)]
Add comment about bc_calc_len() possibly returning -1.

svn path=/trunk/yasm/; revision=455

23 years agoFix memory leak.
Peter Johnson [Thu, 10 Jan 2002 05:16:19 +0000 (05:16 -0000)]
Fix memory leak.
Add assert call to silence LCLint.

svn path=/trunk/yasm/; revision=454

23 years agoRework resolve_label() and add a second pass.
Peter Johnson [Thu, 10 Jan 2002 05:02:40 +0000 (05:02 -0000)]
Rework resolve_label() and add a second pass.

svn path=/trunk/yasm/; revision=453

23 years agoAdd new bc_resolve() family, and rewrite calc_len to /just/ calculate the
Peter Johnson [Thu, 10 Jan 2002 05:01:36 +0000 (05:01 -0000)]
Add new bc_resolve() family, and rewrite calc_len to /just/ calculate the
length, not modify anything else (particularly expressions w/temp. resolved
labels).

svn path=/trunk/yasm/; revision=452

23 years agoAdd bcs_next (STAILQ_NEXT).
Peter Johnson [Wed, 9 Jan 2002 09:38:19 +0000 (09:38 -0000)]
Add bcs_next (STAILQ_NEXT).

svn path=/trunk/yasm/; revision=451

23 years agoAdd bcs_first() (STAILQ_FIRST).
Peter Johnson [Wed, 9 Jan 2002 09:32:41 +0000 (09:32 -0000)]
Add bcs_first() (STAILQ_FIRST).

svn path=/trunk/yasm/; revision=450

23 years agoTiny formatting fix.
Peter Johnson [Wed, 9 Jan 2002 09:11:17 +0000 (09:11 -0000)]
Tiny formatting fix.

svn path=/trunk/yasm/; revision=449

23 years agoChange return type of calc_len() family back to int from unsigned long.
Peter Johnson [Wed, 9 Jan 2002 09:10:36 +0000 (09:10 -0000)]
Change return type of calc_len() family back to int from unsigned long.

svn path=/trunk/yasm/; revision=448

23 years ago- Use new symrec_get_label().
Peter Johnson [Wed, 9 Jan 2002 09:04:41 +0000 (09:04 -0000)]
- Use new symrec_get_label().
- Change optimize() function to return void.
- Pass LCLint.

svn path=/trunk/yasm/; revision=447

23 years agoAdd basic optimizer to checks.
Peter Johnson [Wed, 9 Jan 2002 09:03:29 +0000 (09:03 -0000)]
Add basic optimizer to checks.

svn path=/trunk/yasm/; revision=446

23 years agoRemove symrec_get_int_value(), add symrec_get_label().
Peter Johnson [Wed, 9 Jan 2002 09:02:33 +0000 (09:02 -0000)]
Remove symrec_get_int_value(), add symrec_get_label().

svn path=/trunk/yasm/; revision=445

23 years agoGeneral code cleanup.
Peter Johnson [Wed, 9 Jan 2002 08:36:02 +0000 (08:36 -0000)]
General code cleanup.

svn path=/trunk/yasm/; revision=444

23 years agoLCLint cleanups.
Peter Johnson [Wed, 9 Jan 2002 08:27:38 +0000 (08:27 -0000)]
LCLint cleanups.

svn path=/trunk/yasm/; revision=443

23 years agoFix one line odd error: missing initialization of step.
Michael Urman [Wed, 9 Jan 2002 08:15:57 +0000 (08:15 -0000)]
Fix one line odd error: missing initialization of step.

svn path=/trunk/yasm/; revision=442

23 years agoBe nice for debugging purposes and set effaddr sib=0 even when it's not valid.
Peter Johnson [Wed, 9 Jan 2002 07:25:16 +0000 (07:25 -0000)]
Be nice for debugging purposes and set effaddr sib=0 even when it's not valid.

svn path=/trunk/yasm/; revision=441

23 years agoMake resolve_label() take a symrec * instead of a section * and bytecode *.
Peter Johnson [Wed, 9 Jan 2002 07:23:00 +0000 (07:23 -0000)]
Make resolve_label() take a symrec * instead of a section * and bytecode *.
Extend expr_expand_equ() into expr_expand_labelequ() and call resolve_label()
here.

svn path=/trunk/yasm/; revision=440

23 years agoRemove unused variable declaration.
Peter Johnson [Wed, 9 Jan 2002 07:13:42 +0000 (07:13 -0000)]
Remove unused variable declaration.

svn path=/trunk/yasm/; revision=439

23 years agoChange from linked list to vector representation for line mapping.
Michael Urman [Wed, 9 Jan 2002 07:06:18 +0000 (07:06 -0000)]
Change from linked list to vector representation for line mapping.

svn path=/trunk/yasm/; revision=438

23 years agoComment fix.
Peter Johnson [Wed, 9 Jan 2002 07:03:47 +0000 (07:03 -0000)]
Comment fix.

svn path=/trunk/yasm/; revision=437

23 years agobc_calc_len() family should return unsigned long, not int.
Peter Johnson [Wed, 9 Jan 2002 05:05:21 +0000 (05:05 -0000)]
bc_calc_len() family should return unsigned long, not int.

svn path=/trunk/yasm/; revision=436

23 years agoCut bitvect allocations even more by making a bitvect_from_Dec_static() and
Peter Johnson [Wed, 9 Jan 2002 04:35:51 +0000 (04:35 -0000)]
Cut bitvect allocations even more by making a bitvect_from_Dec_static() and
associated _Boot and _Shutdown.

svn path=/trunk/yasm/; revision=435

23 years agoAllocate single static temporary bitvect for conversions (as most conversions
Peter Johnson [Wed, 9 Jan 2002 03:26:05 +0000 (03:26 -0000)]
Allocate single static temporary bitvect for conversions (as most conversions
will be <=32 bits in size).

svn path=/trunk/yasm/; revision=434

23 years agodmalloc is enabled with DMALLOC, not DDMALLOC.
Peter Johnson [Wed, 9 Jan 2002 03:22:18 +0000 (03:22 -0000)]
dmalloc is enabled with DMALLOC, not DDMALLOC.

svn path=/trunk/yasm/; revision=433

23 years agodmalloc is enabled with DMALLOC, not DDMALLOC.
Peter Johnson [Wed, 9 Jan 2002 03:22:18 +0000 (03:22 -0000)]
dmalloc is enabled with DMALLOC, not DDMALLOC.

svn path=/trunk/yasm/; revision=432

23 years agoFree in_filename.
Peter Johnson [Wed, 9 Jan 2002 02:57:02 +0000 (02:57 -0000)]
Free in_filename.

svn path=/trunk/yasm/; revision=431

23 years agoDon't shadow global (standard C) "index" (noticed by LCLint).
Peter Johnson [Wed, 9 Jan 2002 00:04:56 +0000 (00:04 -0000)]
Don't shadow global (standard C) "index" (noticed by LCLint).

svn path=/trunk/yasm/; revision=429

23 years agoCorrect for renamed/moved files.
Peter Johnson [Wed, 9 Jan 2002 00:04:09 +0000 (00:04 -0000)]
Correct for renamed/moved files.

svn path=/trunk/yasm/; revision=428

23 years agoLCLint-inspired cleanups.
Peter Johnson [Wed, 9 Jan 2002 00:03:37 +0000 (00:03 -0000)]
LCLint-inspired cleanups.

svn path=/trunk/yasm/; revision=427

23 years agoLine number is a long (found by lclint).
Peter Johnson [Wed, 9 Jan 2002 00:02:52 +0000 (00:02 -0000)]
Line number is a long (found by lclint).

svn path=/trunk/yasm/; revision=426

23 years agoChange from current file/line dual storage to a monotonically-increasing line
Peter Johnson [Mon, 7 Jan 2002 07:42:27 +0000 (07:42 -0000)]
Change from current file/line dual storage to a monotonically-increasing line
"index".  This fixes some problems with assumptions made by various parts of
the code that are invalidated when the line number doesn't always increase (eg.
when the NASM %line directive is used).
Speed fixes are needed to the implementation of the line_* functions in
globals.c before this is finished.

svn path=/trunk/yasm/; revision=424