]> granicus.if.org Git - yasm/commit
Allow directives to have no parameters in the parser, and check for it at
authorPeter Johnson <peter@tortall.net>
Wed, 7 Feb 2007 08:29:41 +0000 (08:29 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 7 Feb 2007 08:29:41 +0000 (08:29 -0000)
commite7b1cea7ffc86243f060253bb8d9277b12f72bc7
treef52959f80a0384c8c78e880d83ce597e519c2c99
parent96c34438da5f0ba7807526525a922e5164b8e328
Allow directives to have no parameters in the parser, and check for it at
a lower level.

To reduce code duplication, refactor several of the large if/else structures
into multiple functions with a lookup table.

Add support for registers to be used in directive expressions.

Allow directives to have underscores and numbers (still cannot start with
numbers).

svn path=/trunk/yasm/; revision=1757
15 files changed:
libyasm/arch.h
libyasm/dbgfmt.h
libyasm/objfmt.h
modules/arch/lc3b/lc3barch.c
modules/arch/x86/x86arch.c
modules/dbgfmts/dwarf2/dwarf2-line.c
modules/objfmts/bin/bin-objfmt.c
modules/objfmts/coff/coff-objfmt.c
modules/objfmts/dbg/dbg-objfmt.c
modules/objfmts/elf/elf-objfmt.c
modules/objfmts/macho/macho-objfmt.c
modules/objfmts/rdf/rdf-objfmt.c
modules/objfmts/xdf/xdf-objfmt.c
modules/parsers/nasm/nasm-parse.c
modules/parsers/nasm/nasm-token.re