From 68d80277c3a551542628ffd353b9de8ccd13c9b4 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Sun, 15 Apr 2001 15:22:54 +0000 Subject: Bugfixes --- lib/assembler.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/assembler.c b/lib/assembler.c index bd10954..c06fecd 100644 --- a/lib/assembler.c +++ b/lib/assembler.c @@ -15,7 +15,7 @@ #define downcase(x) ((((x)>='A')&&((x)<='Z'))?((x)-'A'+'a'):(x)) #define upcase(x) ((((x)>='a')&&((x)<='z'))?((x)-'a'+'A'):(x)) -int process_file(char *); +static int process_file(char *); typedef struct expression_t { int e_type; @@ -496,7 +496,7 @@ void push_pile(char *a) case 's': e->op = 4; break; - case 'r' + case 'r': e->op = 5; break; default: @@ -1678,7 +1678,7 @@ void asm_eol(void) e_current = e_line = NULL; } -void asm_eof(void) +void asm_eof(FILE * f) { } @@ -1743,7 +1743,7 @@ void assemble_file(char * iname, char * oname) { pushcontext(_("Opening output file")); if (!(f = fopen(oname, "wb"))) { - pushcontext(stderror(errno)); + pushcontext(strerror(errno)); exception(1, _("Error writing output file")); } popcontext(); @@ -1753,5 +1753,5 @@ void assemble_file(char * iname, char * oname) { pushcontext(_("Writing output file")); asm_eof(f); fclose(f); - popocontext(); + popcontext(); } -- cgit v1.2.3