Merge branch 'master' of https://github.com/cc65/cc65
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
.include "gamate.inc"
|
.include "gamate.inc"
|
||||||
.include "extzp.inc"
|
.include "extzp.inc"
|
||||||
|
|
||||||
|
.import fontdata
|
||||||
.import colors
|
.import colors
|
||||||
.importzp ptr1, tmp1
|
.importzp ptr1, tmp1
|
||||||
|
|
||||||
@@ -24,8 +25,3 @@ initconio:
|
|||||||
sta BGCOLOR
|
sta BGCOLOR
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.segment "RODATA"
|
|
||||||
|
|
||||||
.export fontdata
|
|
||||||
fontdata:
|
|
||||||
.include "vga.inc"
|
|
||||||
|
|||||||
7
libsrc/gamate/vga.inc → libsrc/gamate/vga.s
Normal file → Executable file
7
libsrc/gamate/vga.inc → libsrc/gamate/vga.s
Normal file → Executable file
@@ -1,6 +1,11 @@
|
|||||||
|
|
||||||
; VGA charset for the Gamate conio implementation
|
; VGA charset for the Gamate conio implementation
|
||||||
|
|
||||||
|
.export fontdata
|
||||||
|
|
||||||
|
.rodata
|
||||||
|
|
||||||
|
fontdata:
|
||||||
|
|
||||||
.byte $00, $00, $00, $00, $00, $00, $00, $00
|
.byte $00, $00, $00, $00, $00, $00, $00, $00
|
||||||
|
|
||||||
; 1
|
; 1
|
||||||
@@ -95,7 +95,7 @@ $(WORKDIR)/pptest2.$1.$2.prg: pptest2.c | $(WORKDIR)
|
|||||||
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||||
|
|
||||||
# should compile, but gives an error
|
# should compile, but gives an error
|
||||||
$(WORKDIR)/bug1263.$1.$2.prg: pptest2.c | $(WORKDIR)
|
$(WORKDIR)/bug1263.$1.$2.prg: bug1263.c | $(WORKDIR)
|
||||||
@echo "FIXME: " $$@ "currently does not compile."
|
@echo "FIXME: " $$@ "currently does not compile."
|
||||||
$(if $(QUIET),echo misc/bug1263.$1.$2.prg)
|
$(if $(QUIET),echo misc/bug1263.$1.$2.prg)
|
||||||
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||||
|
|||||||
@@ -1,17 +1,15 @@
|
|||||||
|
/* bug #1263 - erroneous error for K & R function declaration */
|
||||||
|
|
||||||
/* bug #1263 - erroneous error for implicit function declaration */
|
enum E { I = 0 };
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
enum E { I };
|
|
||||||
extern int f(enum E);
|
extern int f(enum E);
|
||||||
|
|
||||||
int f(e)
|
int f(e)
|
||||||
enum E e;
|
enum E e;
|
||||||
{
|
{
|
||||||
return 1;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
return f(1) ? EXIT_SUCCESS : EXIT_FAILURE;
|
return f(I);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user