hbmap: fix iterator truncation when size_t < 32bit
[rofl0r-agsutils.git] / kw_search.h
blob5561935f087c90b3db3621b58e37855cc75335be
1 #include "ags_cpu.h"
2 #include <string.h>
4 #ifndef KW_TOK_SCMD_BASE
5 #define KW_TOK_SCMD_BASE 0
6 #endif
8 #define __KW_SCMD_DEBUG__
9 #include "scmd_tok.h"
10 #include "scmd_tok.c"
12 #ifndef RN_TOK_BASE
13 #define RN_TOK_BASE 0
14 #endif
15 #include "regname_tok.h"
16 #include "regname_tok.c"
18 static void kw_init(void) {
19 KW_SCMD_reset();
20 RN_reset();
23 static void kw_finish(void) {
24 KW_SCMD_output_statistics();
25 RN_output_statistics();
28 static unsigned kw_find_insn(char* sym, size_t l) {
29 return KW_SCMD_find_keyword(sym, l);
32 static unsigned kw_find_reg(char* sym, size_t l) {
33 return RN_find_keyword(sym, l);