filename | src/tools/gendec.h |
changeset | 948:545c85cc56f1 |
prev | 736:a02d1475ccfd |
next | 969:3f178ca1398c |
author | nkeynes |
date | Wed Jan 07 04:39:04 2009 +0000 (13 years ago) |
branch | lxdream-mem |
permissions | -rw-r--r-- |
last change | Introduce sh4_finalize_instruction to clean-up on instruction exits Remove the sh4_flush_icache special cases, now works through the general case. |
file | annotate | diff | log | raw |
1.1 --- a/src/tools/gendec.h Mon Jul 14 07:44:42 2008 +00001.2 +++ b/src/tools/gendec.h Wed Jan 07 04:39:04 2009 +00001.3 @@ -70,14 +70,24 @@1.4 };1.6 struct actionset {1.7 - char *pretext;1.8 - char *posttext;1.9 char *actions[MAX_RULES];1.10 };1.12 -struct actionset *parse_action_file( struct ruleset *rules, FILE *f );1.13 +typedef struct actionfile *actionfile_t;1.15 -int generate_decoder( struct ruleset *rules, struct actionset *actions, FILE *f );1.16 +typedef struct actiontoken {1.17 + enum { NONE, TEXT, ACTIONS, END, ERROR } symbol;1.18 + char *text;1.19 + char *actions[MAX_RULES];1.20 +} *actiontoken_t;1.21 +1.22 +actionfile_t action_file_open( const char *filename, struct ruleset *rules );1.23 +1.24 +actiontoken_t action_file_next( actionfile_t af );1.25 +1.26 +void action_file_close( actionfile_t af );1.27 +1.28 +int generate_decoder( struct ruleset *rules, actionfile_t af, FILE *f );1.30 #ifdef __cplusplus1.31 }
.