summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2017-05-24 18:37:43 (GMT)
committerespie <espie@openbsd.org>2017-05-24 18:37:43 (GMT)
commit8ac745a8a63c4fecbb7e13eb9a0394de4ec7604f (patch)
tree4fbf5baadc719823dae5f11d957545fe45a30af0
parente57a99ccd24cb581786e302fdd14498a70886233 (diff)
downloadopenbsd-ports-8ac745a8a63c4fecbb7e13eb9a0394de4ec7604f.tar.gz
openbsd-ports-8ac745a8a63c4fecbb7e13eb9a0394de4ec7604f.tar.xz
surprisingly enough, this converts easily to modern C++
-rw-r--r--games/ri-li/patches/patch-src_audio_cc18
-rw-r--r--games/ri-li/patches/patch-src_ecran_cc13
-rw-r--r--games/ri-li/patches/patch-src_editeur_cc17
-rw-r--r--games/ri-li/patches/patch-src_jeux_cc13
-rw-r--r--games/ri-li/patches/patch-src_loco_cc13
-rw-r--r--games/ri-li/patches/patch-src_main_cc16
-rw-r--r--games/ri-li/patches/patch-src_menu_cc17
-rw-r--r--games/ri-li/patches/patch-src_mouse_cc13
-rw-r--r--games/ri-li/patches/patch-src_sprite_cc35
-rw-r--r--games/ri-li/patches/patch-src_tableau_cc22
-rw-r--r--games/ri-li/patches/patch-src_utils_cc17
11 files changed, 194 insertions, 0 deletions
diff --git a/games/ri-li/patches/patch-src_audio_cc b/games/ri-li/patches/patch-src_audio_cc
new file mode 100644
index 0000000..7a38c96
--- /dev/null
+++ b/games/ri-li/patches/patch-src_audio_cc
@@ -0,0 +1,18 @@
+$OpenBSD: patch-src_audio_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/audio.cc
+--- src/audio.cc.orig
++++ src/audio.cc
+@@ -22,9 +22,11 @@
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ #include <stdlib.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <string.h>
+
++using std::cerr;
++using std::endl;
+ #include "audio.h"
+ #include "utils.h"
+ #include "preference.h"
diff --git a/games/ri-li/patches/patch-src_ecran_cc b/games/ri-li/patches/patch-src_ecran_cc
new file mode 100644
index 0000000..790509d
--- /dev/null
+++ b/games/ri-li/patches/patch-src_ecran_cc
@@ -0,0 +1,13 @@
+$OpenBSD: patch-src_ecran_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/ecran.cc
+--- src/ecran.cc.orig
++++ src/ecran.cc
+@@ -21,7 +21,6 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <math.h>
diff --git a/games/ri-li/patches/patch-src_editeur_cc b/games/ri-li/patches/patch-src_editeur_cc
new file mode 100644
index 0000000..f98b1dd
--- /dev/null
+++ b/games/ri-li/patches/patch-src_editeur_cc
@@ -0,0 +1,17 @@
+$OpenBSD: patch-src_editeur_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/editeur.cc
+--- src/editeur.cc.orig
++++ src/editeur.cc
+@@ -25,7 +25,10 @@
+ #include <windows.h>
+ #endif
+
+-#include <iostream.h>
++#include <iostream>
++using std::cerr;
++using std::endl;
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/games/ri-li/patches/patch-src_jeux_cc b/games/ri-li/patches/patch-src_jeux_cc
new file mode 100644
index 0000000..9af3edd
--- /dev/null
+++ b/games/ri-li/patches/patch-src_jeux_cc
@@ -0,0 +1,13 @@
+$OpenBSD: patch-src_jeux_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/jeux.cc
+--- src/jeux.cc.orig
++++ src/jeux.cc
+@@ -25,7 +25,6 @@
+ #include <windows.h>
+ #endif
+
+-#include <iostream.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/games/ri-li/patches/patch-src_loco_cc b/games/ri-li/patches/patch-src_loco_cc
new file mode 100644
index 0000000..dbf8a99
--- /dev/null
+++ b/games/ri-li/patches/patch-src_loco_cc
@@ -0,0 +1,13 @@
+$OpenBSD: patch-src_loco_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/loco.cc
+--- src/loco.cc.orig
++++ src/loco.cc
+@@ -21,7 +21,6 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/games/ri-li/patches/patch-src_main_cc b/games/ri-li/patches/patch-src_main_cc
new file mode 100644
index 0000000..c52e42c
--- /dev/null
+++ b/games/ri-li/patches/patch-src_main_cc
@@ -0,0 +1,16 @@
+$OpenBSD: patch-src_main_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/main.cc
+--- src/main.cc.orig
++++ src/main.cc
+@@ -23,7 +23,9 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <iostream.h>
++#include <iostream>
++using std::cerr;
++using std::endl;
+ #include <string.h>
+ #include <SDL/SDL.h>
+ #include <SDL/SDL_mixer.h>
diff --git a/games/ri-li/patches/patch-src_menu_cc b/games/ri-li/patches/patch-src_menu_cc
new file mode 100644
index 0000000..9f51be8
--- /dev/null
+++ b/games/ri-li/patches/patch-src_menu_cc
@@ -0,0 +1,17 @@
+$OpenBSD: patch-src_menu_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/menu.cc
+--- src/menu.cc.orig
++++ src/menu.cc
+@@ -21,7 +21,10 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
++using std::cerr;
++using std::endl;
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/games/ri-li/patches/patch-src_mouse_cc b/games/ri-li/patches/patch-src_mouse_cc
new file mode 100644
index 0000000..02be646
--- /dev/null
+++ b/games/ri-li/patches/patch-src_mouse_cc
@@ -0,0 +1,13 @@
+$OpenBSD: patch-src_mouse_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/mouse.cc
+--- src/mouse.cc.orig
++++ src/mouse.cc
+@@ -21,7 +21,6 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
+ #include <stdio.h>
+ #include "mouse.h"
+ #include "preference.h"
diff --git a/games/ri-li/patches/patch-src_sprite_cc b/games/ri-li/patches/patch-src_sprite_cc
new file mode 100644
index 0000000..eb78ec9
--- /dev/null
+++ b/games/ri-li/patches/patch-src_sprite_cc
@@ -0,0 +1,35 @@
+$OpenBSD: patch-src_sprite_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/sprite.cc
+--- src/sprite.cc.orig
++++ src/sprite.cc
+@@ -21,7 +21,10 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
++using std::cerr;
++using std::endl;
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -351,7 +354,7 @@ bool Sprite::Load(unsigned char *Buf,long &P)
+ // Fabrique la surface
+ Image[i]=SDL_CreateRGBSurface((Dim[i].bpp-3)*SDL_SRCALPHA,Dim[i].L,Dim[i].H,Dim[i].bpp*8,
+ 0xff,0xff00,0xff0000,0xff000000*(Dim[i].bpp-3));
+- if(Image[i]<=NULL) {
++ if(Image[i]==NULL) {
+ cerr <<"Impossible de créer une Surface SDL!"<<endl;
+ return false;
+ }
+@@ -485,7 +488,7 @@ bool Sprite::Nouveau(int Lx,int Ly)
+ // Fabrique la surface
+ Image[0]=SDL_CreateRGBSurface((Dim[0].bpp-3)*SDL_SRCALPHA,Dim[0].L,Dim[0].H,Dim[0].bpp*8,
+ 0xff,0xff00,0xff0000,0xff000000*(Dim[0].bpp-3));
+- if(Image[0]<=NULL) {
++ if(Image[0]==NULL) {
+ cerr <<"Impossible de créer une Surface SDL!"<<endl;
+ return false;
+ }
diff --git a/games/ri-li/patches/patch-src_tableau_cc b/games/ri-li/patches/patch-src_tableau_cc
new file mode 100644
index 0000000..d2ef6ca
--- /dev/null
+++ b/games/ri-li/patches/patch-src_tableau_cc
@@ -0,0 +1,22 @@
+$OpenBSD: patch-src_tableau_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/tableau.cc
+--- src/tableau.cc.orig
++++ src/tableau.cc
+@@ -21,7 +21,6 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include "preference.h"
+@@ -87,7 +86,7 @@ bool Tableau::Save(void)
+
+ // Alloue la mémoire
+ Buf=new unsigned char [sizeof(s_Tableau)*N+sizeof(int)+1];
+- if(Buf<=0) return false;
++ if(Buf==0) return false;
+
+ // Charge les tableaux
+ Buf[0]=N/256;
diff --git a/games/ri-li/patches/patch-src_utils_cc b/games/ri-li/patches/patch-src_utils_cc
new file mode 100644
index 0000000..1c2543f
--- /dev/null
+++ b/games/ri-li/patches/patch-src_utils_cc
@@ -0,0 +1,17 @@
+$OpenBSD: patch-src_utils_cc,v 1.1 2017/05/24 18:37:43 espie Exp $
+
+Index: src/utils.cc
+--- src/utils.cc.orig
++++ src/utils.cc
+@@ -21,7 +21,10 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
++using std::cerr;
++using std::endl;
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>