]> granicus.if.org Git - yasm/commit
* arch.h (yasm_arch_syntax_flavor): Remove.
authorPeter Johnson <peter@tortall.net>
Sun, 25 Sep 2005 00:41:04 +0000 (00:41 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 25 Sep 2005 00:41:04 +0000 (00:41 -0000)
commita1e0e6a913d6d3a27c264cd2172ff8045d5e91cd
treebdf2f3ef705bf521875efea37eea4cf9d4b280d8
parentb66cb8d4d4898d2bac4f0d6e0e663cb8f16a6ed8
* arch.h (yasm_arch_syntax_flavor): Remove.
(yasm_arch_create): Add parser and error parameters; now the arch is given
the keyword of the parser in use.  The error parameter allows the caller to
find out whether it was the machine name or the parser name that was in
error.
(yasm_arch_module): Change create definition to match yasm_arch_create().
(yasm_arch_create_error): New error typedef for yasm_arch_create() errors.

* lc3barch.c (lc3b_create): Update to match new yasm_arch_create().
* x86arch.c (x86_create): Likewise.

* yasm.c (main): Use new yasm_arch_create() and handle the two kinds of
errors it can now generate.  Move parser creation up in the sequence so it
happens before the arch is created.

svn path=/trunk/yasm/; revision=1230
frontends/yasm/yasm.c
libyasm/arch.h
modules/arch/lc3b/lc3barch.c
modules/arch/x86/x86arch.c