]> granicus.if.org Git - yasm/log
yasm
23 years agoClean up to pass lclint.
Peter Johnson [Fri, 16 Nov 2001 22:56:33 +0000 (22:56 -0000)]
Clean up to pass lclint.

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

23 years agoAllow symrec_foreach return value to be ignored (in lclint).
Peter Johnson [Fri, 16 Nov 2001 22:56:09 +0000 (22:56 -0000)]
Allow symrec_foreach return value to be ignored (in lclint).

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

23 years agolclint-ize gettext().
Peter Johnson [Fri, 16 Nov 2001 22:55:26 +0000 (22:55 -0000)]
lclint-ize gettext().

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

23 years agoFix some nits found by lclint. Still something weird going on with list2 in
Peter Johnson [Fri, 16 Nov 2001 22:05:24 +0000 (22:05 -0000)]
Fix some nits found by lclint.  Still something weird going on with list2 in
mergesort(), according to lclint, but I haven't figured out if it's real or
not.

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

23 years agoAdd some lclint annotations.
Peter Johnson [Fri, 16 Nov 2001 22:04:31 +0000 (22:04 -0000)]
Add some lclint annotations.

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

23 years agoSplit away x86-specific parts of expression handling (eg, effective address ->
Peter Johnson [Thu, 15 Nov 2001 23:44:41 +0000 (23:44 -0000)]
Split away x86-specific parts of expression handling (eg, effective address ->
ModRM+SIB).

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

23 years agoFix file comment.
Peter Johnson [Tue, 13 Nov 2001 23:02:54 +0000 (23:02 -0000)]
Fix file comment.

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

23 years agoUpdate to match tree changes.
Peter Johnson [Thu, 8 Nov 2001 19:53:21 +0000 (19:53 -0000)]
Update to match tree changes.

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

23 years agoUpdate to match tree changes.
Peter Johnson [Wed, 7 Nov 2001 21:50:33 +0000 (21:50 -0000)]
Update to match tree changes.

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

23 years agoMaintain 'latest' symlink.
Peter Johnson [Mon, 5 Nov 2001 15:50:48 +0000 (15:50 -0000)]
Maintain 'latest' symlink.

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

23 years agoAdd nightly build script.
Peter Johnson [Mon, 5 Nov 2001 09:14:19 +0000 (09:14 -0000)]
Add nightly build script.

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

23 years agoBring in depcomp from Automake 1.5.
Peter Johnson [Mon, 5 Nov 2001 08:20:39 +0000 (08:20 -0000)]
Bring in depcomp from Automake 1.5.

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

23 years agoRun with -a so that any missing files get added instead of just failing.
Peter Johnson [Mon, 5 Nov 2001 08:18:52 +0000 (08:18 -0000)]
Run with -a so that any missing files get added instead of just failing.

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

23 years agoFix AC_REPLACE_FUNCS handling for tests as well as src/ by putting LIBOBJS
Peter Johnson [Mon, 5 Nov 2001 08:17:22 +0000 (08:17 -0000)]
Fix AC_REPLACE_FUNCS handling for tests as well as src/ by putting LIBOBJS
into libyasm.a instead of just for the yasm target.

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

23 years agoHopefully fix problem with including replacement functions.
Peter Johnson [Mon, 5 Nov 2001 07:57:37 +0000 (07:57 -0000)]
Hopefully fix problem with including replacement functions.

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

23 years agoAdd mergesort.c and strsep.c to EXTRA_DIST.
Peter Johnson [Mon, 5 Nov 2001 07:45:15 +0000 (07:45 -0000)]
Add mergesort.c and strsep.c to EXTRA_DIST.

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

23 years agoAdd autogen script to make building straight from CVS easier.
Peter Johnson [Mon, 5 Nov 2001 07:22:22 +0000 (07:22 -0000)]
Add autogen script to make building straight from CVS easier.

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

23 years agoSplit x86-specific stuff away from bytecode.
Peter Johnson [Mon, 5 Nov 2001 05:49:19 +0000 (05:49 -0000)]
Split x86-specific stuff away from bytecode.

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

23 years agoChange PERL line to reflect instrs.dat move.
Peter Johnson [Sat, 3 Nov 2001 06:25:40 +0000 (06:25 -0000)]
Change PERL line to reflect instrs.dat move.

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

23 years agoStart framework for separating architecture-dependent functions and data
Peter Johnson [Sat, 3 Nov 2001 06:22:55 +0000 (06:22 -0000)]
Start framework for separating architecture-dependent functions and data
structures from the rest of the assembler.  We're not trying to write GAS
here (yet :), but doing this will make large parts of the codebase a lot
clearer.

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

23 years agoAdd coretype.h, make util.h do a lot more, use util.h to simplify include
Peter Johnson [Sat, 3 Nov 2001 05:17:51 +0000 (05:17 -0000)]
Add coretype.h, make util.h do a lot more, use util.h to simplify include
sections of C files.  Also remove IdPath from top comment in files where
RCSID() is used.  Move RCSID() to immediately after util.h include.

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

23 years agobytecode_print(): Change how NULL values are output for imm and multiple.
Peter Johnson [Sat, 3 Nov 2001 04:13:42 +0000 (04:13 -0000)]
bytecode_print(): Change how NULL values are output for imm and multiple.
bytecode_parser_finalize_insn(): Add some preliminary imm handling.  Handle
shift_op special-casing (,1 hack).

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

23 years agoConditional x* prototypes on !DMALLOC (as they're defined by dmalloc.h if
Peter Johnson [Sat, 3 Nov 2001 04:11:22 +0000 (04:11 -0000)]
Conditional x* prototypes on !DMALLOC (as they're defined by dmalloc.h if
DMALLOC is enabled).

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

23 years agoOptimize expression building a bit in expr_new() by eliminating IDENT's here.
Peter Johnson [Thu, 1 Nov 2001 03:51:26 +0000 (03:51 -0000)]
Optimize expression building a bit in expr_new() by eliminating IDENT's here.
This saves a lot of extra unnecessary recursions when the expr gets to the
simplification stage.

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

23 years agoAdd memory expressions tests (checkea).
Peter Johnson [Thu, 1 Nov 2001 02:36:22 +0000 (02:36 -0000)]
Add memory expressions tests (checkea).
Split off errwarn functions so that they can be overridden in test cases.

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

23 years agoFix errors found in expr_level_op() and checkea_calc_displen() by new test
Peter Johnson [Thu, 1 Nov 2001 02:34:54 +0000 (02:34 -0000)]
Fix errors found in expr_level_op() and checkea_calc_displen() by new test
cases.

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

23 years agoFix directive memory leaks in a different way; the old way broke name/val
Peter Johnson [Thu, 1 Nov 2001 00:24:09 +0000 (00:24 -0000)]
Fix directive memory leaks in a different way; the old way broke name/val
splitting.

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

23 years agoMissed a free->xfree conversion.
Peter Johnson [Wed, 31 Oct 2001 22:08:25 +0000 (22:08 -0000)]
Missed a free->xfree conversion.

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

23 years agoPrevious commit broke ANSI C header checking (BAD). Fixed, by changing how
Peter Johnson [Wed, 31 Oct 2001 22:06:48 +0000 (22:06 -0000)]
Previous commit broke ANSI C header checking (BAD).  Fixed, by changing how
optional things are checked.

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

23 years agoUpdate with changes made to source tree and configure options.
Peter Johnson [Tue, 30 Oct 2001 04:32:10 +0000 (04:32 -0000)]
Update with changes made to source tree and configure options.

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

23 years agoCorrectly process 32-bit memory expressions in expr_checkea().
Peter Johnson [Mon, 29 Oct 2001 10:25:44 +0000 (10:25 -0000)]
Correctly process 32-bit memory expressions in expr_checkea().

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

23 years agoOn xfree(NULL), just return instead of triggering InternalError().
Peter Johnson [Mon, 29 Oct 2001 06:28:51 +0000 (06:28 -0000)]
On xfree(NULL), just return instead of triggering InternalError().

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

23 years agoPlug memory leaks, and enhance finding later ones with *_delete functions.
Peter Johnson [Mon, 29 Oct 2001 04:52:44 +0000 (04:52 -0000)]
Plug memory leaks, and enhance finding later ones with *_delete functions.
Fix a *major* bug in expr_level_op().

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

23 years agoGet rid of all the extra filename strdup()'s. (Bug #14).
Peter Johnson [Mon, 29 Oct 2001 01:10:20 +0000 (01:10 -0000)]
Get rid of all the extra filename strdup()'s.  (Bug #14).

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

23 years agoMake InternalError() a bit easier to call. Also, reverse its file and line
Peter Johnson [Mon, 29 Oct 2001 00:21:00 +0000 (00:21 -0000)]
Make InternalError() a bit easier to call.  Also, reverse its file and line
parameters to match the *At() functions.

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

23 years agoAdd xfree() to replace calls to free().
Peter Johnson [Mon, 29 Oct 2001 00:11:14 +0000 (00:11 -0000)]
Add xfree() to replace calls to free().
This also fixes the build breakage caused by removing stdlib includes.

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

23 years agoAdd option for malloc debugging using dmalloc library (http://dmalloc.com/).
Peter Johnson [Mon, 29 Oct 2001 00:01:31 +0000 (00:01 -0000)]
Add option for malloc debugging using dmalloc library (http://dmalloc.com/).
Remove unnecessary stdlib includes (because we use xmalloc instead of malloc).

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

23 years agoPut in temporary implementations of ErrorAt() and WarningAt().
Peter Johnson [Sun, 28 Oct 2001 23:58:39 +0000 (23:58 -0000)]
Put in temporary implementations of ErrorAt() and WarningAt().

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

23 years agoParse NOSPLIT.
Peter Johnson [Sun, 28 Oct 2001 23:39:14 +0000 (23:39 -0000)]
Parse NOSPLIT.
Move some work to subfunctions in expr so they can be used for both 16-bit
and 32-bit checking.

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

23 years ago*COMPLETELY* rewrite most of expression handling.
Peter Johnson [Sun, 28 Oct 2001 09:22:13 +0000 (09:22 -0000)]
*COMPLETELY* rewrite most of expression handling.
Features:
- More complex memory expressions like [bx-(bx-di)] are now calculated through
  as valid.
- Much better simplification.
Internal changes:
- More flexible n-way tree (rather than old binary-only).
- Many new functions to simplify and deal with very complex expressions.

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

23 years agoAdd other Makefiles, supporting files to EXTRA_DIST.
Peter Johnson [Sun, 28 Oct 2001 09:16:11 +0000 (09:16 -0000)]
Add other Makefiles, supporting files to EXTRA_DIST.

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

23 years agoAdd mergesort() replacement from BSD sources.
Peter Johnson [Fri, 26 Oct 2001 04:32:18 +0000 (04:32 -0000)]
Add mergesort() replacement from BSD sources.

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

23 years agoRCSID() breaks under DJGPP because of "__unused". Removing __unused shouldn't
Peter Johnson [Sun, 21 Oct 2001 00:13:24 +0000 (00:13 -0000)]
RCSID() breaks under DJGPP because of "__unused".  Removing __unused shouldn't
cause any problems, really, so just removed it.

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

23 years agoAdd "very flat" (based on Makefile.flat) makefiles and config.h files for
Peter Johnson [Sat, 20 Oct 2001 23:37:13 +0000 (23:37 -0000)]
Add "very flat" (based on Makefile.flat) makefiles and config.h files for
DJGPP and Visual C++.  These are build-only (not development).

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

23 years agoPrototype, very simple, flat Makefile for use in compiling (but NOT developing)
Peter Johnson [Sat, 20 Oct 2001 21:40:02 +0000 (21:40 -0000)]
Prototype, very simple, flat Makefile for use in compiling (but NOT developing)
on other platforms.

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

23 years agoUpdate comment on disp.len to match changes in expr.c.
Peter Johnson [Thu, 18 Oct 2001 07:02:11 +0000 (07:02 -0000)]
Update comment on disp.len to match changes in expr.c.

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

23 years agoAdd parser finalization check for undefined symbols.
Peter Johnson [Mon, 15 Oct 2001 07:25:47 +0000 (07:25 -0000)]
Add parser finalization check for undefined symbols.

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

23 years agoAdd symrec_get_visibility().
Peter Johnson [Mon, 15 Oct 2001 07:13:16 +0000 (07:13 -0000)]
Add symrec_get_visibility().

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

23 years agoCall expr_expand_equ() on effective address from bytecode_parser_finalize().
Peter Johnson [Mon, 15 Oct 2001 07:07:55 +0000 (07:07 -0000)]
Call expr_expand_equ() on effective address from bytecode_parser_finalize().

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

23 years agoAdd _copy() constructor.
Peter Johnson [Mon, 15 Oct 2001 07:04:01 +0000 (07:04 -0000)]
Add _copy() constructor.
Add expr_expand_equ().

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

23 years agoAdd first version of post-parsing bytecode finalization. Lots of work still
Peter Johnson [Mon, 15 Oct 2001 04:42:47 +0000 (04:42 -0000)]
Add first version of post-parsing bytecode finalization.  Lots of work still
to be done at the bytecode and expression level.

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

23 years agoAdd several major functions, including effective address ModRM calculation
Peter Johnson [Mon, 15 Oct 2001 04:40:45 +0000 (04:40 -0000)]
Add several major functions, including effective address ModRM calculation
(only 16-bit is implemented at the moment) via expr_checkea().

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

23 years agoChange order of arguments for get_ and check_ functions to better match other
Peter Johnson [Mon, 15 Oct 2001 04:34:11 +0000 (04:34 -0000)]
Change order of arguments for get_ and check_ functions to better match other
functions (floatnum * as first arg).

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

23 years agoAllow both signed and unsigned interpretations for get_int and check_size.
Peter Johnson [Mon, 15 Oct 2001 04:32:16 +0000 (04:32 -0000)]
Allow both signed and unsigned interpretations for get_int and check_size.
Change argument order on get_int and check_size to better match other
functions (intnum * first arg).

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

23 years agoAdd parsing of memory expressions. Currently adds a lot of duplication for
Peter Johnson [Fri, 12 Oct 2001 03:36:10 +0000 (03:36 -0000)]
Add parsing of memory expressions.  Currently adds a lot of duplication for
the expressions in the yacc code, but I don't see an easier way right now.
Also, no validity checking is done.

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

23 years agoAdd expr_contains_float() and symrec_get_equ() functions. These are the first
Peter Johnson [Fri, 12 Oct 2001 02:34:30 +0000 (02:34 -0000)]
Add expr_contains_float() and symrec_get_equ() functions.  These are the first
of many functions like this which will be needed for advanced validity checking
in the finalization of the parser stage.
Fix yacc grammar to not use the (incorrect) expr_no_fltstr, and change memexp
to memexpr and its handling to prepare for memory expressions.

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

23 years agoClarify and fix some usages of valid/need flags for modrm and sib bytes.
Peter Johnson [Fri, 12 Oct 2001 02:29:31 +0000 (02:29 -0000)]
Clarify and fix some usages of valid/need flags for modrm and sib bytes.
In bytecode_print(), check for NULL ea displacement and print out modrm and
sib bytes in octal (because it's easier to read the 2/3/3 format in octal).

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

23 years agoDon't allow floats to be used as targets of jumps.
Peter Johnson [Thu, 11 Oct 2001 23:09:34 +0000 (23:09 -0000)]
Don't allow floats to be used as targets of jumps.

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

23 years agoSupport TIMES prefix. Split expr parsing to have a no-float and no-string
Peter Johnson [Thu, 11 Oct 2001 22:55:04 +0000 (22:55 -0000)]
Support TIMES prefix.  Split expr parsing to have a no-float and no-string
version (for times and reserve space).

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

23 years agoFix conficts created when adding EQU.
Peter Johnson [Thu, 11 Oct 2001 19:15:45 +0000 (19:15 -0000)]
Fix conficts created when adding EQU.

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

23 years agoFix handling of numeric constants ending in a single character (h,q,b).
Peter Johnson [Thu, 11 Oct 2001 18:59:13 +0000 (18:59 -0000)]
Fix handling of numeric constants ending in a single character (h,q,b).

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

23 years agoHandle EQU. Handle BITS directive. Move directive handling out to separate
Peter Johnson [Thu, 11 Oct 2001 17:33:30 +0000 (17:33 -0000)]
Handle EQU.  Handle BITS directive.  Move directive handling out to separate
function.

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

23 years agoRemove NULL return checks; BitVector uses xmalloc(), so they aren't necessary.
Peter Johnson [Thu, 11 Oct 2001 05:37:34 +0000 (05:37 -0000)]
Remove NULL return checks; BitVector uses xmalloc(), so they aren't necessary.

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

23 years agoFix LOTS of little nits. Primary changes:
Peter Johnson [Thu, 11 Oct 2001 05:34:50 +0000 (05:34 -0000)]
Fix LOTS of little nits.  Primary changes:
 - New intnum module to replace using just unsigned long (for >32 bit values).
   Read values using BitVector instead of strtoul().
 - Brought both floatnum and intnum into expr (still need to integrate calc for
   floatnum).
 - Add traversal function to ternary tree (for use by symrec_foreach).
 - Change floatnum output interface from single/double/extended to byte size.
 - Try to make floatnum/intnum interfaces very similar.  Still needs work.
 - Add/fix *_print functions, including interating ones for sections/bytecodes.
 - Fix handling of $ and $$.  Both now are properly parsed and bytecode'd.
 - Print out all sections and symbol table in main() in preparation for work
   on "cleanup" functionality between parser and optimizer stages (really part
   of the parser stage).

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

23 years agoOutput "real" version and package names (from config.h).
Peter Johnson [Thu, 11 Oct 2001 00:14:25 +0000 (00:14 -0000)]
Output "real" version and package names (from config.h).

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

23 years agoAdd BitVector_from_Oct() and tests for it.
Peter Johnson [Sun, 7 Oct 2001 23:02:43 +0000 (23:02 -0000)]
Add BitVector_from_Oct() and tests for it.

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

23 years agoChange comment to include im_ptr in list of things that cannot be reused or
Peter Johnson [Thu, 4 Oct 2001 06:03:29 +0000 (06:03 -0000)]
Change comment to include im_ptr in list of things that cannot be reused or
changed after calling bytecode_new_insn().

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

23 years agoMake data.insn.imm within bytecode a pointer. This prevents leakage in calls to
Peter Johnson [Thu, 4 Oct 2001 06:01:44 +0000 (06:01 -0000)]
Make data.insn.imm within bytecode a pointer.  This prevents leakage in calls to
bytecode_new_insn().

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

23 years agoUse xmalloc() instead of malloc().
Peter Johnson [Thu, 4 Oct 2001 03:59:07 +0000 (03:59 -0000)]
Use xmalloc() instead of malloc().

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

23 years agoMove SymStatus and SymType to symrec.c from symrec.h. They're only used
Peter Johnson [Thu, 4 Oct 2001 02:37:08 +0000 (02:37 -0000)]
Move SymStatus and SymType to symrec.c from symrec.h.  They're only used
internally.

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

23 years agoFix SHR operation, and do some reindentation.
Peter Johnson [Thu, 4 Oct 2001 02:31:23 +0000 (02:31 -0000)]
Fix SHR operation, and do some reindentation.

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

23 years agoUse wordptr and charptr when appropriate for data when using BitVector functions.
Peter Johnson [Wed, 3 Oct 2001 20:49:38 +0000 (20:49 -0000)]
Use wordptr and charptr when appropriate for data when using BitVector functions.
Make some minor comment corrections.

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

23 years agoMake most data structures opaque, keeping internals truly internal and making the
Peter Johnson [Wed, 3 Oct 2001 20:42:17 +0000 (20:42 -0000)]
Make most data structures opaque, keeping internals truly internal and making the
overall structure much more modular.
The test files, which need access to the internals of the structures being
tested, now include the source file instead of the header file to gain access
to all internal formats and functions.

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

23 years agoTest floatnum_new().
Peter Johnson [Wed, 3 Oct 2001 08:02:08 +0000 (08:02 -0000)]
Test floatnum_new().

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

23 years agoConst'ify floatnum_new() input string.
Peter Johnson [Wed, 3 Oct 2001 08:00:53 +0000 (08:00 -0000)]
Const'ify floatnum_new() input string.

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

23 years agoAdd floatnum_delete().
Peter Johnson [Wed, 3 Oct 2001 07:46:16 +0000 (07:46 -0000)]
Add floatnum_delete().

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

23 years agoFix mantissa rounding overflow issue: 0xff -> 0x100, and shift right -> 0x80 is
Peter Johnson [Wed, 3 Oct 2001 07:41:11 +0000 (07:41 -0000)]
Fix mantissa rounding overflow issue: 0xff -> 0x100, and shift right -> 0x80 is
not correct except when the 1 bit is explicit.

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

23 years agoCompletely revamp format and extensiveness of testing.
Peter Johnson [Wed, 3 Oct 2001 07:14:48 +0000 (07:14 -0000)]
Completely revamp format and extensiveness of testing.
Currently two tests fail (the approx 1.e-38 in single and double precision).
Need still to add tests for ASCII->internal conversion.

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

23 years agoImplement floatnum_print() (for debugging purposes only).
Peter Johnson [Wed, 3 Oct 2001 07:12:46 +0000 (07:12 -0000)]
Implement floatnum_print() (for debugging purposes only).

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

23 years agoAdd copyright and GPL comments.
Peter Johnson [Wed, 3 Oct 2001 02:47:46 +0000 (02:47 -0000)]
Add copyright and GPL comments.

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

23 years agomalloc->xmalloc, strdup->xstrdup, and calloc->xcalloc. The x* family performs
Peter Johnson [Wed, 3 Oct 2001 02:27:41 +0000 (02:27 -0000)]
malloc->xmalloc, strdup->xstrdup, and calloc->xcalloc.  The x* family performs
error checking.  Remove check for strdup() from configure, as we don't need it.

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

23 years agoAdd some (optional through configure) additional warning flags. Add options
Peter Johnson [Wed, 3 Oct 2001 01:44:47 +0000 (01:44 -0000)]
Add some (optional through configure) additional warning flags.  Add options
to configure to enable profiling and enable -Werror.  Make changes to ensure
everything builds with all additional warnings and -Werror enabled.  Most of
these changes consist of adding "const" modifiers for functions that get
constant literal strings.

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

23 years agoFinish ASCII->internal FP conversion and clean up single/double/extended
Peter Johnson [Tue, 2 Oct 2001 23:24:15 +0000 (23:24 -0000)]
Finish ASCII->internal FP conversion and clean up single/double/extended
conversion functions.  For accuracy, change from 64-bit to 80-bit internal
mantissa.  Modify tests to match new internal format.
TODO: Denormalized numbers, and write more tests!

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

23 years agoCheck for NULL datavals to avoid crashes.
Peter Johnson [Tue, 2 Oct 2001 05:09:42 +0000 (05:09 -0000)]
Check for NULL datavals to avoid crashes.

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

23 years agoAdded command line parsing
Stanislav Karchebny [Fri, 28 Sep 2001 05:11:00 +0000 (05:11 -0000)]
Added command line parsing

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

23 years agoAdd *Now and *At error and warning functions. *At functions still need to
Peter Johnson [Thu, 27 Sep 2001 18:51:37 +0000 (18:51 -0000)]
Add *Now and *At error and warning functions.  *At functions still need to
be implemented.  Consider a rename of these functions at some point?

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

23 years agoImplement floating point size conversions (with help from BitVector).
Peter Johnson [Thu, 27 Sep 2001 07:55:36 +0000 (07:55 -0000)]
Implement floating point size conversions (with help from BitVector).
Interface changed slightly (only affects symrec.c right now).  Tests committed
to check a single case (pi) with all three size conversion functions.
Still need to write to/from ASCII string functions (the hard part).

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

23 years agoInitialize BitVector framework.
Peter Johnson [Thu, 27 Sep 2001 07:52:57 +0000 (07:52 -0000)]
Initialize BitVector framework.

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

23 years agoMade gmon and core files globally ignored.
Peter Johnson [Thu, 27 Sep 2001 07:52:12 +0000 (07:52 -0000)]
Made gmon and core files globally ignored.

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

23 years agoIgnore all test executables as well as gmon and core files.
Peter Johnson [Thu, 27 Sep 2001 07:50:43 +0000 (07:50 -0000)]
Ignore all test executables as well as gmon and core files.

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

23 years agoAdd BitVector documentation. These docs are really for the Perl side, but
Peter Johnson [Thu, 27 Sep 2001 02:36:26 +0000 (02:36 -0000)]
Add BitVector documentation.  These docs are really for the Perl side, but
are certainly better than nothing.

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

23 years agoIntegrate 6.0 changes.
Peter Johnson [Wed, 26 Sep 2001 23:59:16 +0000 (23:59 -0000)]
Integrate 6.0 changes.

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

23 years agoAdd RCSID().
Peter Johnson [Wed, 26 Sep 2001 22:45:16 +0000 (22:45 -0000)]
Add RCSID().

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

23 years agoAdd GNU Library General Public License (version 2) to CVS and distribution
Peter Johnson [Wed, 26 Sep 2001 22:42:43 +0000 (22:42 -0000)]
Add GNU Library General Public License (version 2) to CVS and distribution
because that's the license bitvect is under.

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

23 years agoFix gcc -Wall warnings.
Peter Johnson [Wed, 26 Sep 2001 22:39:39 +0000 (22:39 -0000)]
Fix gcc -Wall warnings.

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

23 years agoAdd bitvect to build framework. C file still produces some warnings; these
Peter Johnson [Wed, 26 Sep 2001 22:37:42 +0000 (22:37 -0000)]
Add bitvect to build framework.  C file still produces some warnings; these
will be fixed in the next commit.

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

23 years agoInitial revision
Peter Johnson [Wed, 26 Sep 2001 22:17:44 +0000 (22:17 -0000)]
Initial revision

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

23 years agoAdd SAVE_*, READ_*, and LOAD_* families of little-endian macros.
Peter Johnson [Wed, 26 Sep 2001 20:54:37 +0000 (20:54 -0000)]
Add SAVE_*, READ_*, and LOAD_* families of little-endian macros.

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

23 years agoFix large parts of expression and symbol handling. Actually link in labels
Peter Johnson [Wed, 26 Sep 2001 00:57:55 +0000 (00:57 -0000)]
Fix large parts of expression and symbol handling.  Actually link in labels
properly (bug #8).  Framework added for portable floating point support (bug
#7).  Lots of functions still not finished in this commit.

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

23 years agoConst-ize string input parameters.
Peter Johnson [Tue, 25 Sep 2001 23:30:52 +0000 (23:30 -0000)]
Const-ize string input parameters.

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