Slightly optimize the interface to nasm_token_hash()
commitbf9a24f46471abad75fa3efba059646a6c4f5026
authorH. Peter Anvin <hpa@zytor.com>
Wed, 19 Sep 2007 05:54:40 +0000 (18 22:54 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 19 Sep 2007 05:54:40 +0000 (18 22:54 -0700)
tree11fb8d714b12f1cf4d067233e8e9436b2bbac415
parent69db8c6963aab103d1cf9c2735c49bd25c28fb6b
Slightly optimize the interface to nasm_token_hash()

Instead of returning -1 from nasm_token_hash, set tv->t_type to
TOKEN_ID and return TOKEN_ID, since that's what stdscan.c wants to do
with it anyway.  This allows us to simply tailcall nasm_token_hash().
stdscan.c
tokhash.pl