summaryrefslogtreecommitdiff
path: root/lib/assembler.c
diff options
context:
space:
mode:
authorPixel <>2001-04-15 15:22:54 +0000
committerPixel <>2001-04-15 15:22:54 +0000
commit68d80277c3a551542628ffd353b9de8ccd13c9b4 (patch)
tree256ac71da17510eda329f09e694fd9bbe97fdcb8 /lib/assembler.c
parent9e39a9d01a90080114a4cb7521b00184a586b31f (diff)
Bugfixes
Diffstat (limited to 'lib/assembler.c')
-rw-r--r--lib/assembler.c10
1 files changed, 5 insertions, 5 deletions
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();
}