diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-02-25 20:42:19 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:38:07 +0200 |
commit | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch) | |
tree | a5d9c84ba2661029ddb2223dacd50529a361c3d5 /as/readsrc.c | |
parent | f8de35da65c5d93bb733073cf40da154bc1c0748 (diff) | |
parent | 9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff) | |
download | dev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz |
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'as/readsrc.c')
-rw-r--r-- | as/readsrc.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/as/readsrc.c b/as/readsrc.c index 82be10f..557ca5d 100644 --- a/as/readsrc.c +++ b/as/readsrc.c @@ -29,6 +29,10 @@ #endif #endif +#ifdef MSDOS +#define off_t long /* Not a typedef! */ +#endif + #ifndef MINIBUF #define MINIBUF 1 /* Add in a reasonable buffer */ #endif @@ -94,8 +98,13 @@ char *name; fd = 0; else #endif +#ifdef O_BINARY if ((unsigned) (fd = open(name, O_RDONLY|O_BINARY)) > 255) as_abort("error opening input file"); +#else + if ((unsigned) (fd = open(name, O_RDONLY)) > 255) + as_abort("error opening input file"); +#endif #if BIGBUFFER == 1 if( mem_start == 0 ) @@ -254,9 +263,9 @@ PUBLIC void pproceof() { list.current = list.global; maclist.current = maclist.global; - warn.current = TRUE; - if (warn.semaphore < 0) - warn.current = FALSE; + as_warn.current = TRUE; + if (as_warn.semaphore < 0) + as_warn.current = FALSE; } if (infiln != 0) @@ -348,6 +357,10 @@ PUBLIC void readline() } } macstak->text = bufptr; +#if 0 + *reglineptr = 0; + printf("MLINE:%s.\n", lineptr); +#endif *reglineptr = EOLCHAR; return; } |