Bug #1510 ยป mille.diff
| games/mille/mille.c | ||
|---|---|---|
|
# include "mille.h"
|
||
|
# include <signal.h>
|
||
|
# ifdef attron
|
||
|
# include <term.h>
|
||
|
# endif /* attron */
|
||
|
# include <term.h>
|
||
|
/*
|
||
|
* @(#)mille.c 1.3 (Berkeley) 5/10/83
|
||
| games/mille/mille.h | ||
|---|---|---|
|
# define EXTENSIONPROMPT 7
|
||
|
# define OVERWRITEFILEPROMPT 8
|
||
|
# ifdef SYSV
|
||
|
# define srandom(x) srand(x)
|
||
|
# define random() rand()
|
||
|
# endif
|
||
|
# if defined(SYSV) || defined(__DragonFly__) || defined(__FreeBSD__)
|
||
|
# ifndef attron
|
||
|
# define erasechar() _tty.c_cc[VERASE]
|
||
|
# define killchar() _tty.c_cc[VKILL]
|
||
|
# endif
|
||
|
# else
|
||
|
# ifndef erasechar
|
||
|
# define erasechar() _tty.sg_erase
|
||
|
# define killchar() _tty.sg_kill
|
||
|
# endif
|
||
|
# endif /* SYSV */
|
||
|
# define erasechar() _tty.c_cc[VERASE]
|
||
|
# define killchar() _tty.c_cc[VKILL]
|
||
|
# define _tty cur_term->Nttyb
|
||
|
typedef struct {
|
||
|
bool coups[NUM_SAFE];
|
||
| games/mille/misc.c | ||
|---|---|---|
|
#include <termios.h>
|
||
|
#include "mille.h"
|
||
|
# ifdef attron
|
||
|
# include <term.h>
|
||
|
# define _tty cur_term->Nttyb
|
||
|
# endif /* attron */
|
||
|
#include <term.h>
|
||
|
/*
|
||
|
* @(#)misc.c 1.2 (Berkeley) 3/28/83
|
||
| games/mille/move.c | ||
|---|---|---|
|
#include "mille.h"
|
||
|
#include <unctrl.h>
|
||
|
# ifdef attron
|
||
|
# include <term.h>
|
||
|
# define _tty cur_term->Nttyb
|
||
|
# endif /* attron */
|
||
|
#include <term.h>
|
||
|
/*
|
||
|
* @(#)move.c 1.2 (Berkeley) 3/28/83
|
||
| games/mille/save.c | ||
|---|---|---|
|
#include "mille.h"
|
||
|
#include <unctrl.h>
|
||
|
# ifdef attron
|
||
|
# include <term.h>
|
||
|
# define _tty cur_term->Nttyb
|
||
|
# endif /* attron */
|
||
|
#include <term.h>
|
||
|
/*
|
||
|
* @(#)save.c 1.2 (Berkeley) 3/28/83
|
||