summaryrefslogtreecommitdiff
path: root/tokhash.pl
diff options
context:
space:
mode:
authorJin Kyu Song <jin.kyu.song@intel.com>2013-11-27 14:10:40 -0800
committerJin Kyu Song <jin.kyu.song@intel.com>2013-11-27 15:43:33 -0800
commit487f352b6222c79fd6c719d2c00ab6087c6b6b3c (patch)
treed8b19e49b37c89586bba36691331f80111d71b79 /tokhash.pl
parent6cfa968e8d3ef6344ef3e92b37d64a277124ee29 (diff)
downloadnasm-487f352b6222c79fd6c719d2c00ab6087c6b6b3c.tar.gz
nasm-487f352b6222c79fd6c719d2c00ab6087c6b6b3c.tar.bz2
nasm-487f352b6222c79fd6c719d2c00ab6087c6b6b3c.zip
stdscan: Rework curly brace parsing routines
As recommended by the community, a comma-separated decorators ({k1,z}) and nested braces ({{k1},{z}}) are dropped out. So only standard syntax is supported from now. This rework made source code neat and easy to maintain. Most of the codes for handling corner cases are removed. Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
Diffstat (limited to 'tokhash.pl')
-rwxr-xr-xtokhash.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tokhash.pl b/tokhash.pl
index 4ea387d..60bd258 100755
--- a/tokhash.pl
+++ b/tokhash.pl
@@ -260,6 +260,7 @@ if ($output eq 'h') {
print " uint16_t ix;\n";
print " const struct tokendata *data;\n";
print "\n";
+ printf " tv->t_flag = 0;\n";
printf " crc = crc64(UINT64_C(0x%08x%08x), token);\n",
$$sv[0], $$sv[1];
print " k1 = (uint32_t)crc;\n";