1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

1) Fix multi-line strings to sate gcc33

2) Fix a bug which caused xprez to display garbage as the list of
   cards that were exchanged at the beginning of a new round of the game.
This commit is contained in:
Tim Vanderhoek 2004-02-02 03:55:03 +00:00
parent fb325c73d6
commit 91d0a1d4bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99776
4 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- aprez/Makefile.in.orig Sun Feb 1 22:29:17 2004
+++ aprez/Makefile.in Sun Feb 1 22:16:59 2004
@@ -30,6 +30,8 @@
# code...
cat ../ABOUT | perl -pe 's/(\")/\\$$1/g;' > tempfile2
perl -e '$$a=`cat tempfile1`; $$b=`cat tempfile2`; \
+ $$a=~s/\n/\\n\"\n\"/g; $$a=~s/^/\"/g; $$a=~s/\"//; \
+ $$b=~s/\n/\\n\"\n\"/g; $$b=~s/^/\"/g; $$b=~s/\"//; \
while (<>) { \
s/\!COPYING\!/$$a/g; \
s/\!ABOUT\!/$$b/g; \

View File

@ -0,0 +1,36 @@
$FreeBSD$
--- aprez/aprez.c.orig Sun Feb 1 22:31:50 2004
+++ aprez/aprez.c Sun Feb 1 22:31:21 2004
@@ -484,18 +484,18 @@
tcsetattr (fileno(stdin), TCSANOW, &term);
}
if (i == 'h') {
- bigmessage ("
-j\tdown one
-u\tup one
-s\ttoggle select on card
-l\tlay (or pass if no cards are selected)
-v\tsave game
-b\tload game
-h\tcommand reference
-w\twarranty and license
-a\tabout
-C-C\tquit (Ctrl-C)
-");
+ bigmessage ("\n"
+"j\tdown one\n"
+"u\tup one\n"
+"s\ttoggle select on card\n"
+"l\tlay (or pass if no cards are selected)\n"
+"v\tsave game\n"
+"b\tload game\n"
+"h\tcommand reference\n"
+"w\twarranty and license\n"
+"a\tabout\n"
+"C-C\tquit (Ctrl-C)\n"
+"");
}
if (i == 'w') {
mondomessage ("!COPYING!");

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- prez/Makefile.in.orig Sun Feb 1 22:29:31 2004
+++ prez/Makefile.in Sun Feb 1 22:17:20 2004
@@ -29,6 +29,8 @@
# code...
cat ../ABOUT | perl -pe 's/(\")/\\$$1/g;' > tempfile2
perl -e '$$a=`cat tempfile1`; $$b=`cat tempfile2`; \
+ $$a=~s/\n/\\n\"\n\"/g; $$a=~s/^/\"/g; $$a=~s/\"//; \
+ $$b=~s/\n/\\n\"\n\"/g; $$b=~s/^/\"/g; $$b=~s/\"//; \
while (<>) { \
s/\!COPYING\!/$$a/g; \
s/\!ABOUT\!/$$b/g; \

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- xprez/xp_deal.c.orig Sun Feb 1 22:32:15 2004
+++ xprez/xp_deal.c Sun Feb 1 22:16:17 2004
@@ -41,7 +41,7 @@
*/
int
xp_deal (ClientData clientdata, Tcl_Interp * interp, int argc, char ** argv) {
- char ret[200];
+ static char ret[200];
int i;
hand_t ss;