pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/velena Made stdout unbuffered, so that the progr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/971d46a3834c
branches:  trunk
changeset: 538227:971d46a3834c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Feb 02 17:05:00 2008 +0000

description:
Made stdout unbuffered, so that the program can be used by other
programs. PKGREVISION++

diffstat:

 games/velena/Makefile         |   4 ++--
 games/velena/distinfo         |   4 ++--
 games/velena/patches/patch-ab |  20 ++++++++++++++++----
 3 files changed, 20 insertions(+), 8 deletions(-)

diffs (59 lines):

diff -r 1429d79b4da9 -r 971d46a3834c games/velena/Makefile
--- a/games/velena/Makefile     Sat Feb 02 16:43:34 2008 +0000
+++ b/games/velena/Makefile     Sat Feb 02 17:05:00 2008 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2007/07/29 01:35:57 rillig Exp $
+# $NetBSD: Makefile,v 1.5 2008/02/02 17:05:00 rillig Exp $
 #
 
 DISTNAME=      veleng10
 PKGNAME=       velena-1.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    games
 MASTER_SITES=  http://www.ce.unipr.it/~gbe/
 EXTRACT_SUFX=  .zip
diff -r 1429d79b4da9 -r 971d46a3834c games/velena/distinfo
--- a/games/velena/distinfo     Sat Feb 02 16:43:34 2008 +0000
+++ b/games/velena/distinfo     Sat Feb 02 17:05:00 2008 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+$NetBSD: distinfo,v 1.2 2008/02/02 17:05:00 rillig Exp $
 
 SHA1 (veleng10.zip) = f9af1cc6f809347151bee4763a62073fe56ef9b4
 RMD160 (veleng10.zip) = a8cc6933196140b5ac941f4369e9bb422a885851
 Size (veleng10.zip) = 243352 bytes
 SHA1 (patch-aa) = 810ca44164b273710fccf8237b1b5343d3354e9d
-SHA1 (patch-ab) = 91138783750acf293b0df4a0d9a34373ec5627d8
+SHA1 (patch-ab) = 5d4fabb5fb6b4b7d51123c19eb398fb0c54c78ed
 SHA1 (patch-ac) = dd01e7c0231c715421ef56a230e44b2e075b6f67
 SHA1 (patch-ad) = 11e71c97346be1ecd1cef65a1fe2a27805ca0bee
 SHA1 (patch-ae) = d08ca8a02db09bd1013e3823308a445796ca3897
diff -r 1429d79b4da9 -r 971d46a3834c games/velena/patches/patch-ab
--- a/games/velena/patches/patch-ab     Sat Feb 02 16:43:34 2008 +0000
+++ b/games/velena/patches/patch-ab     Sat Feb 02 17:05:00 2008 +0000
@@ -1,8 +1,20 @@
-$NetBSD: patch-ab,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+$NetBSD: patch-ab,v 1.2 2008/02/02 17:05:00 rillig Exp $
 
---- 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
+--- 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



Home | Main Index | Thread Index | Old Index