summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2009-10-29 23:09:18 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2009-10-31 20:02:43 +0300
commit917117ff69271fe911e87a6f0e8dfc1f81c3f9b4 (patch)
tree7fa504459cecef908ceed5197bf8bab629dc11e9 /nasm.c
parentbafd877d48b25e576a4c905a14f1301502cca69c (diff)
downloadnasm-917117ff69271fe911e87a6f0e8dfc1f81c3f9b4.tar.gz
nasm-917117ff69271fe911e87a6f0e8dfc1f81c3f9b4.tar.bz2
nasm-917117ff69271fe911e87a6f0e8dfc1f81c3f9b4.zip
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 'nasm.c')
-rw-r--r--nasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nasm.c b/nasm.c
index d955660..ac2adde 100644
--- a/nasm.c
+++ b/nasm.c
@@ -1365,7 +1365,7 @@ static void assemble_file(char *fname, StrList **depend_ptr)
}
case D_ABSOLUTE: /* [ABSOLUTE address] */
stdscan_reset();
- stdscan_bufptr = value;
+ stdscan_set(value);
tokval.t_type = TOKEN_INVALID;
e = evaluate(stdscan, NULL, &tokval, NULL, pass2,
nasm_error, NULL);
@@ -1470,7 +1470,7 @@ static void assemble_file(char *fname, StrList **depend_ptr)
break;
case D_DEFAULT: /* [DEFAULT] */
stdscan_reset();
- stdscan_bufptr = value;
+ stdscan_set(value);
tokval.t_type = TOKEN_INVALID;
if (stdscan(NULL, &tokval) == TOKEN_SPECIAL) {
switch ((int)tokval.t_integer) {