pragma: use the directives hash to look up directive names
commitd9493fa4403ea05eb99dae73daf771cfc44c3ca7
authorH. Peter Anvin <hpa@zytor.com>
Thu, 9 Mar 2017 04:05:41 +0000 (8 20:05 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 9 Mar 2017 04:10:46 +0000 (8 20:10 -0800)
tree6f2c186705a145d633ec60839da43c8b80f3a8d3
parentd49a3bf6db49b4120e261c281148877ed3917c3b
pragma: use the directives hash to look up directive names

Very few things have any desire to do its own string parsing, and the
directives hash is already a plain string-to-numbers O(1) hash.  The
namespace is small enough that even if it makes some switch statements
compile a bit larger there is no real reason to have separate hashes,
even if the actual code as opposed to the data structure was shared.

So, for right now, just throw them together in one big happy pot.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
asm/directiv.dat
asm/pragma.c
include/nasm.h