From c16c6082eb0595637a762b6a2fbef67769237fd5 Mon Sep 17 00:00:00 2001 From: "James E. Housley" Date: Thu, 16 Oct 2003 17:11:18 +0000 Subject: Fix some very broken coding style that barfs with GCC3.3 --- emulators/sim6811/Makefile | 5 +---- emulators/sim6811/files/patch-ac | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 emulators/sim6811/files/patch-ac (limited to 'emulators/sim6811') diff --git a/emulators/sim6811/Makefile b/emulators/sim6811/Makefile index d80ae9533d84..99464ad655c2 100644 --- a/emulators/sim6811/Makefile +++ b/emulators/sim6811/Makefile @@ -7,6 +7,7 @@ PORTNAME= sim6811 PORTVERSION= 1.6 +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= ftp://crl.nmsu.edu/pub/non-lexical/6811/ DISTNAME= sim @@ -19,8 +20,4 @@ NO_WRKSUBDIR= yes .include -.if ${OSVERSION} >= 501000 -BROKEN= "Does not compile" -.endif - .include diff --git a/emulators/sim6811/files/patch-ac b/emulators/sim6811/files/patch-ac new file mode 100644 index 000000000000..53ec9652e011 --- /dev/null +++ b/emulators/sim6811/files/patch-ac @@ -0,0 +1,35 @@ +--- main.c.orig Tue Mar 22 14:16:59 1994 ++++ main.c Thu Oct 16 10:06:27 2003 +@@ -70,11 +70,8 @@ + #include + #include "sim.h" + +-extern int printf(); +-extern int fprintf(); + extern int fclose(); + extern int fscanf(); +-extern int sscanf(); + extern int fflush(); + + /* how to handle all other op codes */ +@@ -323,19 +320,7 @@ + + case '?': /* help */ + (void) fgets(line, sizeof(line), stdin); +- printf( +- " +- +- (empty line) step once +-s [n] step n times +-b [add [n]] set break at add which will survive n hits +-g [add [n]] set pc to add, step n times +-l [add [n]] list n lines of disassembly starting from pc +-m add n set specified memory location to n +-R Reset memory, regs and reload code +-t [add [n]] set temporary break at add which will survive n hits +-q or EOF exit simulator +-? print this list\n\n"); ++ printf("\n\n (empty line) step once\ns [n] step n times\nb [add [n]] set break at add which will survive n hits\ng [add [n]] set pc to add, step n times\nl [add [n]] list n lines of disassembly starting from pc\nm add n set specified memory location to n\nR Reset memory, regs and reload code\nt [add [n]] set temporary break at add which will survive n hits\nq or EOF exit simulator\n? print this list\n\n"); + printf("hit return to continue"); + fflush(stdout); + fgets(line, sizeof(line), stdin); -- cgit v1.2.3