head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.2 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.5.0.10 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.8 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.6 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.4 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.2 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.4.0.76 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.74 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.72 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.70 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.68 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.66 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.64 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.62 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.60 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.58 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.56 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.54 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.52 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.50 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.48 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.46 pkgsrc-2008Q1:1.4.0.44 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.42 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.40 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.38 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.36 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.34 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.32 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.30 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.28 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.26 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.24 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.22 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.20 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.18 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.16 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.14 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.12 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.10 pkgsrc-2003Q4-base:1.4 netbsd-1-6-1:1.4.0.6 netbsd-1-6-1-base:1.4 netbsd-1-6:1.4.0.8 netbsd-1-6-RELEASE-base:1.4 pkgviews:1.4.0.4 pkgviews-base:1.4 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.4 netbsd-1-5-RELEASE:1.4 netbsd-1-4-PATCH003:1.4 netbsd-1-4-PATCH002:1.4 comdex-fall-1999:1.4; locks; strict; comment @# @; 1.6 date 2013.01.21.05.19.46; author dholland; state dead; branches; next 1.5; 1.5 date 2011.12.20.16.18.16; author dholland; state Exp; branches; next 1.4; 1.4 date 99.08.11.21.54.22; author tron; state Exp; branches; next 1.3; 1.3 date 99.07.24.22.52.44; author dante; state Exp; branches; next 1.2; 1.2 date 99.07.22.23.37.45; author hubertf; state Exp; branches; next 1.1; 1.1 date 99.07.20.01.24.58; author hubertf; state Exp; branches; next ; desc @@ 1.6 log @Roll the existing patches into a distfile patch. In the course of doing so: Fix the fix previously in patch-ah (for platforms where char is unsigned by default) to not generate spurious EOF indications. Improve the fixes previously in patch-a[bcdef] to put the game's state file in $HOME/.craft instead of the current directory. Use a consistent method to set $PREFIX instead of a mixture of compiler flags, patching, and SUBST. Use pkg-config to find libX11, and clean up some pkglint. @ text @$NetBSD: patch-ag,v 1.5 2011/12/20 16:18:16 dholland Exp $ - use standard headers - don't croak on platforms where char is unsigned - const correctness demanded by newer gcc - declare main's return type - should match patch-hcc_hcc_hc --- hcc/hcc.cc.orig 1997-02-21 11:50:16.000000000 +0000 +++ hcc/hcc.cc @@@@ -1,6 +1,5 @@@@ -#include "bool.h" #include "stdio.h" -#include "std.h" +#include #include "string.h" #include "ctype.h" @@@@ -39,7 +38,7 @@@@ FILE *src; -void f_open (FILE *&f, char name [], char mode []) +void f_open (FILE *&f, const char name [], const char mode []) {f = fopen (name, mode); /* check_error */ {if (mode [0] == 'r' && f == NULL) {printf ("1, FILE, file '%s' not found\n", name); @@@@ -51,7 +50,7 @@@@ void f_open (FILE *&f, char name [], cha } -char *substring (char s [], int from) +char *substring (const char s [], int from) {static bool is_init = false; static char *result; @@@@ -68,7 +67,7 @@@@ char *substring (char s [], int from) } -char *substring (char s [], int from, int to) +char *substring (const char s [], int from, int to) {static bool is_init = false; static char *result; @@@@ -91,8 +90,8 @@@@ char *substring (char s [], int from, in void changeall (char s [], int max_length_of_s, - char tmplate [], - char replacement []) + const char tmplate [], + const char replacement []) {char *pos; @@@@ -129,7 +128,7 @@@@ void changeall (char s [], } -char *complete (char name [], char tail []) +char *complete (const char name [], const char tail []) {static char r [256]; strcpy (r, name); @@@@ -175,7 +174,7 @@@@ void dump_line_cor () }; } -void pass_1_error (int line_no, char msg [], int l) +void pass_1_error (int line_no, const char msg [], int l) {char err_msg [256]; char ii [128]; @@@@ -187,7 +186,7 @@@@ void pass_1_error (int line_no, char msg exit (1); } -void pass_1_error (int line_no, char msg []) +void pass_1_error (int line_no, const char msg []) {fclose (src); printf ("error : %d : %s\n", line_no, msg); exit (1); @@@@ -203,7 +202,7 @@@@ bool pass_1 (char src_name []) char last_last_sym; int last_ref_sym_line; int last_ref_sym_no; - char sym; + signed char sym; int nested_brackets; bool inside_refinement; bool inside_string; @@@@ -1307,7 +1306,7 @@@@ void pass_3 (char src_name []) } -main (int num_params, char *shell_params []) +int main (int num_params, char *shell_params []) {char gcc_exec [256]; char src_name [256]; char options [256]; @ 1.5 log @Assorted fixes and cleanup. - if we're going to supply the build makefile, it shouldn't require gmake. - don't install executable html or gif files - add patch comments - const correctness for string constants, as demanded by gcc 4.5 - avoid needing -lcompat - fix a y2038 issue PKGREVISION -> 2 @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.4 1999/08/11 21:54:22 tron Exp $ @ 1.4 log @Fix problems caused by author's assumption that 'char' is signed. Patches supplied by Reinoud Zandijk in PR pkg/8143. @ text @d1 1 a1 1 $NetBSD$ d3 8 a10 2 --- hcc/hcc.cc.orig Fri Feb 21 12:50:16 1997 +++ hcc/hcc.cc Wed Aug 4 15:37:39 1999 d19 66 a84 1 @@@@ -203,7 +202,7 @@@@ d93 9 @ 1.3 log @Remove inclusion of "bool.h" and "std.h"; Include @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.2 1999/07/22 23:37:45 hubertf Exp $ d3 2 a4 2 --- hcc/hcc.cc.orig Sun Jul 25 00:11:11 1999 +++ hcc/hcc.cc Sun Jul 25 00:12:37 1999 d13 9 @ 1.2 log @Fix path in patch. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.1 1999/07/20 01:24:58 hubertf Exp $ d3 4 a6 4 --- hcc/hcc.cc.orig Tue Jul 20 03:19:57 1999 +++ hcc/hcc.cc Fri Feb 21 12:50:16 1997 @@@@ -1,6 +1,6 @@@@ #include "bool.h" d8 2 a9 2 -#include +#include "std.h" @ 1.1 log @New systems don't have old libg++-headers bool.h and std.h any more, adjust this. Reported in PR 7970 by Thilo.Manske@@HEH.Uni-Oldenburg.DE @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- work.i386/hcc/hcc.cc.orig Tue Jul 20 03:19:57 1999 +++ work.i386/hcc/hcc.cc Fri Feb 21 12:50:16 1997 @