asm/nasm.c: Move directive parsing into a separate function
commitc713168bc72a7fd0dcc8da3b2c41acac18538fe1
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 8 Mar 2017 01:45:01 +0000 (7 17:45 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 8 Mar 2017 01:45:01 +0000 (7 17:45 -0800)
treef76d69c354d14c3ba2c570e9a3bdd513f26e00a9
parentf786ef7371cfeaa52c46266685fb5479d611866b
asm/nasm.c: Move directive parsing into a separate function

Move the directive parsing out of the main loop into a separate
function.  It is much cleaner this way, and opens up for further
refactoring -- a bunch of the directives do the same thing or very
similar things.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
asm/directiv.pl
asm/nasm.c