Skip to content

Commit

Permalink
MORTEVIELLE: Compilation fixes and extern prefixes to header file met…
Browse files Browse the repository at this point in the history
…hod declarations
  • Loading branch information
dreammaster authored and Strangerke committed Apr 6, 2012
1 parent 1ad0ded commit dd64a39
Show file tree
Hide file tree
Showing 23 changed files with 268 additions and 256 deletions.
62 changes: 31 additions & 31 deletions engines/mortevielle/actions.h
Expand Up @@ -31,38 +31,38 @@
namespace Mortevielle {

/* NIVEAU 4 */
void taller();
void tprendre();
void tsprendre();
void tsoulever();
void tlire();
void tslire();
void tregarder();
void tsregarder();
void tfouiller();
void tsfouiller();
void touvrir();
void tmettre();
void ttourner();
void tcacher();
void tattacher();
void tfermer();
void tfrapper();
void tposer();
void tecouter();
void tmanger();
void tentrer();
void tdormir();
void tdefoncer();
void tsortir();
void tattendre();
void tsonder();
void tparler();
void tsentir();
void tgratter();
extern void taller();
extern void tprendre();
extern void tsprendre();
extern void tsoulever();
extern void tlire();
extern void tslire();
extern void tregarder();
extern void tsregarder();
extern void tfouiller();
extern void tsfouiller();
extern void touvrir();
extern void tmettre();
extern void ttourner();
extern void tcacher();
extern void tattacher();
extern void tfermer();
extern void tfrapper();
extern void tposer();
extern void tecouter();
extern void tmanger();
extern void tentrer();
extern void tdormir();
extern void tdefoncer();
extern void tsortir();
extern void tattendre();
extern void tsonder();
extern void tparler();
extern void tsentir();
extern void tgratter();
/* NIVEAU 2 */
void tmaj1();
void tencore();
extern void tmaj1();
extern void tencore();

} // End of namespace Mortevielle
#endif
3 changes: 2 additions & 1 deletion engines/mortevielle/alert.cpp
Expand Up @@ -25,8 +25,9 @@
* Copyright (c) 1988-1989 Lankhor
*/

#include "mortevielle/alert.h"
#include "common/str.h"
#include "mortevielle/alert.h"
#include "mortevielle/level15.h"

namespace Mortevielle {

Expand Down
4 changes: 2 additions & 2 deletions engines/mortevielle/alert.h
Expand Up @@ -32,8 +32,8 @@

namespace Mortevielle {

int do_alert(Common::String str_, int n);
int do_alert(Common::String str_, int n);
extern int do_alert(Common::String str_, int n);
extern int do_alert(Common::String str_, int n);

} // End of namespace Mortevielle
#endif
2 changes: 1 addition & 1 deletion engines/mortevielle/boite.h
Expand Up @@ -30,7 +30,7 @@

namespace Mortevielle {

void boite(int x, int y, int dx, int dy, int coul);
extern void boite(int x, int y, int dx, int dy, int coul);

} // End of namespace Mortevielle
#endif
8 changes: 4 additions & 4 deletions engines/mortevielle/disk.h
Expand Up @@ -30,10 +30,10 @@

namespace Mortevielle {

void dem1();
void takesav(int n);
void ld_game(int n);
void sv_game(int n);
extern void dem1();
extern void takesav(int n);
extern void ld_game(int n);
extern void sv_game(int n);

} // End of namespace Mortevielle
#endif
2 changes: 1 addition & 1 deletion engines/mortevielle/droite.h
Expand Up @@ -30,7 +30,7 @@

namespace Mortevielle {

void droite(int x, int y, int xx, int yy, int coul);
extern void droite(int x, int y, int xx, int yy, int coul);

} // End of namespace Mortevielle
#endif
6 changes: 3 additions & 3 deletions engines/mortevielle/keyboard.h
Expand Up @@ -30,9 +30,9 @@

namespace Mortevielle {

char readkey1();
int testou();
void teskbd();
extern char readkey1();
extern int testou();
extern void teskbd();

} // End of namespace Mortevielle
#endif
34 changes: 18 additions & 16 deletions engines/mortevielle/level15.h
Expand Up @@ -28,25 +28,27 @@
#ifndef MORTEVIELLE_LEVEL15_H
#define MORTEVIELLE_LEVEL15_H

#include "mortevielle/var_mor.h"

namespace Mortevielle {

/* NIVEAU 15 */
void copcha();
bool dans_rect(rectangle r);
void outbloc(int n, pattern p, t_nhom pal);
void writepal(int n);
void pictout(int seg, int dep, int x, int y);
void putxy(int x, int y);
// int calad(int x, int y);
void sauvecr(int y, int dy);
void charecr(int y, int dy);
// int peek(int ad);
// int peekw(int ad);
// real peekl(int ad);
// void procedure poke(int ad, int n);
void adzon();
int animof(int ouf, int num);
// void affgd(int offs, int dep, int x, int y);
extern void copcha();
extern bool dans_rect(rectangle r);
extern void outbloc(int n, pattern p, t_nhom pal);
extern void writepal(int n);
extern void pictout(int seg, int dep, int x, int y);
extern void putxy(int x, int y);
// extern int calad(int x, int y);
extern void sauvecr(int y, int dy);
extern void charecr(int y, int dy);
// extern int peek(int ad);
// extern int peekw(int ad);
// extern real peekl(int ad);
// extern void procedure poke(int ad, int n);
extern void adzon();
extern int animof(int ouf, int num);
// extern void affgd(int offs, int dep, int x, int y);

} // End of namespace Mortevielle
#endif
22 changes: 11 additions & 11 deletions engines/mortevielle/menu.h
Expand Up @@ -33,17 +33,17 @@
namespace Mortevielle {

/* NIVEAU 14*/
void menut(int no, Common::String nom);
void menu_disable(int no);
void menu_enable(int no);
void menu_aff();
void draw_menu();
void invers(int ix);
void util(int x, int y);
void menu_down(int ii);
void menu_up(int xx);
void erase_menu();
void mdn();
extern void menut(int no, Common::String nom);
extern void menu_disable(int no);
extern void menu_enable(int no);
extern void menu_aff();
extern void draw_menu();
extern void invers(int ix);
extern void util(int x, int y);
extern void menu_down(int ii);
extern void menu_up(int xx);
extern void erase_menu();
extern void mdn();

} // End of namespace Mortevielle
#endif
164 changes: 82 additions & 82 deletions engines/mortevielle/mor.h
Expand Up @@ -33,95 +33,95 @@
namespace Mortevielle {

/* Niveau 14 suite */
void testfi();
int readclock();
void modif(int &nu);
void dessine(int ad, int x, int y);
void dessine_rouleau();
void text_color(int c);
extern void testfi();
extern int readclock();
extern void modif(int &nu);
extern void dessine(int ad, int x, int y);
extern void dessine_rouleau();
extern void text_color(int c);
/* NIVEAU 13 */
void text1(int x, int y, int nb, int m);
void initouv();
void ecrf1();
void clsf1();
void clsf2();
void ecrf2();
void ecr2(Common::String str_);
void clsf3();
void ecr3(Common::String text);
void ecrf6();
void ecrf7();
void clsf10();
void stop();
void paint_rect(int x, int y, int dx, int dy);
int hazard(int min, int max);
void calch(int &j, int &h, int &m);
void conv(int x, int &y);
extern void text1(int x, int y, int nb, int m);
extern void initouv();
extern void ecrf1();
extern void clsf1();
extern void clsf2();
extern void ecrf2();
extern void ecr2(Common::String str_);
extern void clsf3();
extern void ecr3(Common::String text);
extern void ecrf6();
extern void ecrf7();
extern void clsf10();
extern void stop();
extern void paint_rect(int x, int y, int dx, int dy);
extern int hazard(int min, int max);
extern void calch(int &j, int &h, int &m);
extern void conv(int x, int &y);
/* NIVEAU 12 */
void okpas();
void modobj(int m);
void modobj2(int m, bool t1, bool t2);
void repon(int f, int m);
void f3f8();
void t5(int cx);
void affper(int per);
void choix(int min, int max, int &per);
void cpl1(int &p);
void cpl2(int &p);
void cpl3(int &p);
void cpl5(int &p);
void cpl6(int &p);
void person();
void chlm(int &per);
void pendule();
extern void okpas();
extern void modobj(int m);
extern void modobj2(int m, bool t1, bool t2);
extern void repon(int f, int m);
extern void f3f8();
extern void t5(int cx);
extern void affper(int per);
extern void choix(int min, int max, int &per);
extern void cpl1(int &p);
extern void cpl2(int &p);
extern void cpl3(int &p);
extern void cpl5(int &p);
extern void cpl6(int &p);
extern void person();
extern void chlm(int &per);
extern void pendule();
/*************
* NIVEAU 11 *
*************/
void debloc(int l);
void cpl10(int &p, int &h);
void cpl11(int &p, int &h);
void cpl12(int &p);
void cpl13(int &p);
void cpl15(int &p);
void cpl20(int &p, int &h);
void quelq1(int l);
void quelq2();
void quelq5();
void quelq6(int l);
void quelq10(int h, int &per);
void quelq11(int h, int &per);
void quelq12(int &per);
void quelq15(int &per);
void quelq20(int h, int &per);
void frap();
void nouvp(int l, int &p);
void tip(int ip, int &cx);
void ecfren(int &p, int &haz, int cf, int l);
void becfren(int l);
extern void debloc(int l);
extern void cpl10(int &p, int &h);
extern void cpl11(int &p, int &h);
extern void cpl12(int &p);
extern void cpl13(int &p);
extern void cpl15(int &p);
extern void cpl20(int &p, int &h);
extern void quelq1(int l);
extern void quelq2();
extern void quelq5();
extern void quelq6(int l);
extern void quelq10(int h, int &per);
extern void quelq11(int h, int &per);
extern void quelq12(int &per);
extern void quelq15(int &per);
extern void quelq20(int h, int &per);
extern void frap();
extern void nouvp(int l, int &p);
extern void tip(int ip, int &cx);
extern void ecfren(int &p, int &haz, int cf, int l);
extern void becfren(int l);
/* NIVEAU 10 */
void init_nbrepm();
void phaz(int &haz, int &p, int cf);
void inzon();
void dprog();
void pl1(int cf);
void pl2(int cf);
void pl5(int cf);
void pl6(int cf);
void pl9(int cf);
void pl10(int cf);
void pl11(int cf);
void pl12(int cf);
void pl13(int cf);
void pl15(int cf);
void pl20(int cf);
void t11(int l11, int &a);
void cavegre();
void writetp(Common::String s, int t);
void messint(int nu);
void aniof(int ouf, int num);
void musique(int so);
extern void init_nbrepm();
extern void phaz(int &haz, int &p, int cf);
extern void inzon();
extern void dprog();
extern void pl1(int cf);
extern void pl2(int cf);
extern void pl5(int cf);
extern void pl6(int cf);
extern void pl9(int cf);
extern void pl10(int cf);
extern void pl11(int cf);
extern void pl12(int cf);
extern void pl13(int cf);
extern void pl15(int cf);
extern void pl20(int cf);
extern void t11(int l11, int &a);
extern void cavegre();
extern void writetp(Common::String s, int t);
extern void messint(int nu);
extern void aniof(int ouf, int num);
extern void musique(int so);
/* NIVEAU 9 */
void dessin(int ad);
extern void dessin(int ad);

} // End of namespace Mortevielle
#endif

0 comments on commit dd64a39

Please sign in to comment.