]> granicus.if.org Git - yasm/commit
Support forced identifiers ($foo) in directives. This makes yasm match
authorPeter Johnson <peter@tortall.net>
Mon, 5 Feb 2007 08:11:52 +0000 (08:11 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 5 Feb 2007 08:11:52 +0000 (08:11 -0000)
commitfdf47df3787862bcbfb2c8a97dc2376ec223d0d6
tree5f5a34f2f80e493ead042c14dccb74abc83cc17c
parent560315575831cd7060285d0290e93b9edc39c87a
Support forced identifiers ($foo) in directives.  This makes yasm match
NASM behavior with regards to e.g. extern $foo.

Unfortunately this makes yasm start not matching NASM behavior with regards
to the RDF module directive.  In NASM, module $foo results in a literal $foo
reference; yasm now requires either a double $ (e.g. $$foo) or quotes (e.g.
"$foo").  The special case for section (section $foo --> literal $foo) is
still present, but keeping this for other directives is extremely difficult.

svn path=/trunk/yasm/; revision=1754
modules/objfmts/elf/tests/Makefile.inc
modules/objfmts/elf/tests/nasm-forceident.asm [new file with mode: 0644]
modules/objfmts/elf/tests/nasm-forceident.hex [new file with mode: 0644]
modules/objfmts/rdf/tests/rdfext.asm
modules/parsers/nasm/nasm-token.re