diff options
Diffstat (limited to 'games/omega/patches/patch-ac')
-rw-r--r-- | games/omega/patches/patch-ac | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/games/omega/patches/patch-ac b/games/omega/patches/patch-ac deleted file mode 100644 index a755569e8e9..00000000000 --- a/games/omega/patches/patch-ac +++ /dev/null @@ -1,86 +0,0 @@ -$NetBSD: patch-ac,v 1.4 2003/12/31 18:07:47 ben Exp $ - ---- genclr.c.orig 1998-08-08 05:53:59.000000000 -0700 -+++ genclr.c -@@ -181,13 +181,12 @@ static FILE *emitopen (char *file, char - perror (""); - exit (1); - } -- fprintf (fp, "\ --/*\n\ -- * Do not edit this file. It was automatically generated by running:\n\ -- * %s %s %s\n\ -- */\n\ --\n\ --", -+ fprintf (fp, -+ "/*\n" -+ " * Do not edit this file. It was automatically generated by running:\n" -+ " * %s %s %s\n" -+ " */\n" -+ "\n", - argv[0], argv[1], argv[2]); - return fp; - } -@@ -280,31 +279,26 @@ int main (int argc, char **argv) - * Emit .c file. - */ - fp = emitopen (cfile, argv); -- fprintf (fp, "\ --#include <curses.h>\n\ --#include <stdio.h>\n\ --#include <stdlib.h>\n\ -- --#include \"%s\"\n\ -- --void clrgen_init (void)\n\ --""{\n\ -- if (%d > COLOR_PAIRS - 1) {\n\ -- endwin(); -- fputs (\"Too many color pairs!\\n\", stderr);\n\ -- exit (1);\n\ -- }\n\ --", -+ fprintf (fp, -+ "#include <curses.h>\n" -+ "#include <stdio.h>\n" -+ "#include <stdlib.h>\n" -+ "\n" -+ "#include \"%s\"\n" -+ "\n" -+ "void clrgen_init (void)\n" -+ "{\n" -+ " if (%d > COLOR_PAIRS - 1) {\n" -+ " endwin();\n" -+ " fputs (\"Too many color pairs!\\n\", stderr);\n" -+ " exit (1);\n" -+ " }\n", - hfile, ncpairs); - for (i = 0; i < ncpairs; i++) -- fprintf (fp, "\ -- init_pair (%d, COLOR_%s, COLOR_%s);\n\ --", -+ fprintf (fp, -+ " init_pair (%d, COLOR_%s, COLOR_%s);\n", - cpairs[i]->idx, cpairs[i]->cfg, cpairs[i]->cbg); -- fputs ("\ --""}\n\ --", -- fp); -+ fputs ("}\n", fp); - emitclose (fp, cfile); - - /* -@@ -318,10 +312,8 @@ void clrgen_init (void)\n\ - strlen (pair->ofg) + strlen (pair->obg) > 10 ? "" : "\t", - pair->idx, pair->boldfg ? "|A_BOLD" : ""); - } -- fputs ("\ --\n\ --extern void clrgen_init (void);\n\ --", -+ fputs ("\n" -+ "extern void clrgen_init (void);\n", - fp); - emitclose (fp, hfile); - |