diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-10-29 23:09:18 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-10-31 20:02:43 +0300 |
commit | 917117ff69271fe911e87a6f0e8dfc1f81c3f9b4 (patch) | |
tree | 7fa504459cecef908ceed5197bf8bab629dc11e9 /stdscan.h | |
parent | bafd877d48b25e576a4c905a14f1301502cca69c (diff) | |
download | nasm-917117ff69271fe911e87a6f0e8dfc1f81c3f9b4.tar.gz |
stdscan: switch to stdscan_get/set routines
Instead of manipulating stdscan buffer pointer directly
we switch to a routine interface.
This allow us to unify stdscan access: ie caller should
"talk" to stdscan via stdscan_get/set routines.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'stdscan.h')
-rw-r--r-- | stdscan.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -37,10 +37,10 @@ #ifndef NASM_STDSCAN_H #define NASM_STDSCAN_H -/* - * Standard scanner. - */ -extern char *stdscan_bufptr; + +/* Standard scanner */ +void stdscan_set(char *str); +char *stdscan_get(void); void stdscan_reset(void); int stdscan(void *private_data, struct tokenval *tv); int nasm_token_hash(const char *token, struct tokenval *tv); |