head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.8 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.6 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.4 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.2.0.30 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.28 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.26 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.24 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.22 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.20 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.18 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.16 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.14 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.12 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.10 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.8 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.6 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.4 pkgsrc-2008Q1:1.2.0.2 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.1.1.1.0.4 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.2 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2011.05.28.22.41.43; author dholland; state dead; branches; next 1.2; 1.2 date 2008.02.02.17.05.00; author rillig; state Exp; branches; next 1.1; 1.1 date 2007.07.25.00.11.10; author rillig; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.07.25.00.11.10; author rillig; state Exp; branches; next ; desc @@ 1.3 log @Minor rototill and respin patches; add patch comments, etc. I was taking a shot at making it work on LP64, but there seem to be deeper problems than the usual sorts of things. Add a comment in the makefile documenting a case that fails on LP64 but not ILP32. PKGREVISION++. @ text @$NetBSD: patch-ab,v 1.2 2008/02/02 17:05:00 rillig Exp $ --- cmdline.c.orig 1997-07-27 17:14:18.000000000 +0200 +++ cmdline.c 2008-02-02 18:02:11.000000000 +0100 @@@@ -42,16 +42,19 @@@@ void command_line_input(struct board *bo int flag = 1,answer; char st[80]; - printf("Enter positions in the form x+y+'0', where:\n"); + setvbuf(stdout, NULL, _IONBF, 0); + printf("Enter positions in the form xy0, where:\n"); printf("x is the level of play: 'a' = weak, 'b' = normal, 'c' = strong\n"); printf("y is a sequence of moves that brings to the position you want\n"); printf(" (columns are numbered from 1 to 7)\n"); printf("'0' is the 48 ASCII char which tells Velena where the string ends\n"); + printf("Example: c4444350\n"); printf("\nEnter 'q' to quit\n\n"); do { printf(">"); // Waiting for the user to enter the string - gets(st); + if (fgets(st, sizeof(st), stdin) == NULL) + break; if(st[0]=='q') flag = 0; // if the string begins with 'q' we quit. else { @ 1.2 log @Made stdout unbuffered, so that the program can be used by other programs. PKGREVISION++ @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 15 a17 3 --- cmdline.c.orig 2007-07-25 01:53:41.000000000 +0200 +++ cmdline.c 2007-07-25 01:54:04.000000000 +0200 @@@@ -51,7 +51,8 @@@@ void command_line_input(struct board *bo @ 1.1.1.1 log @Imported velena. Velena is a program playing connect-four based on the work of Victor Allis, who proved in 1986 that the first player can always win. @ text @@