pkgsrc/devel/xa65/patches/patch-src_xa.c
wiz 5fc0909cea Import xa65-2.3.5 as devel/xa65, packaged for wip by Moritz Wilhelmy.
xa is a high-speed, two-pass portable cross-assembler. It understands mnemonics
and generates code for NMOS 6502s (such as 6502A, 6504, 6507, 6510, 7501, 8500,
8501, 8502 ...), CMOS 6502s (65C02 and Rockwell R65C02) and the 65816.

Key features:
* C-like preprocessor (and understands cpp for additional feature support)
* rich expression syntax and pseudo-op vocabulary
* multiple character sets
* binary linking
* supports o65 relocatable objects with a full linker and relocation suite, as
  well as "bare" plain binary object files
* block structure for label scoping
2012-12-12 13:16:02 +00:00

33 lines
858 B
C

$NetBSD: patch-src_xa.c,v 1.1 2012/12/12 13:16:02 wiz Exp $
Rename internal getline so it doesn't conflict with libc's
--- src/xa.c.orig 2009-01-21 16:57:32.000000000 +0000
+++ src/xa.c
@@ -87,7 +87,7 @@ static int pass2(void);
static int puttmp(int);
static int puttmps(signed char *, int);
static void chrput(int);
-static int getline(char *);
+static int xagetline(char *);
static void lineout(void);
static long ga_p1(void);
static long gm_p1(void);
@@ -763,7 +763,7 @@ static int pass1(void)
temp_er = 0;
/*FIXIT*/
- while(!(er=getline(s)))
+ while(!(er=xagetline(s)))
{
er=t_p1((signed char*)s,o,&l,&al);
switch(segment) {
@@ -1002,7 +1002,7 @@ static int puttmps(signed char *s, int l
static char l[MAXLINE];
-static int getline(char *s)
+static int xagetline(char *s)
{
static int ec;