-/* $NetBSD: monop.h,v 1.7 1999/08/21 10:40:04 simonb Exp $ */
+/* $NetBSD: monop.h,v 1.10 1999/09/30 18:01:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
* @(#)monop.h 8.1 (Berkeley) 5/31/93
*/
+#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
}
struct sqr_st { /* structure for square */
- char *name; /* place name */
+ const char *name; /* place name */
short owner; /* owner number */
short type; /* place type */
struct prp_st *desc; /* description struct */
typedef struct sqr_st SQUARE;
struct mon_st { /* monopoly description structure */
- char *name; /* monop. name (color) */
+ const char *name; /* monop. name (color) */
short owner; /* owner of monopoly */
short num_in; /* # in monopoly */
short num_own; /* # owned (-1: not poss. monop)*/
short h_cost; /* price of houses */
- char *not_m; /* name if not monopoly */
- char *mon_n; /* name if a monopoly */
+ const char *not_m; /* name if not monopoly */
+ const char *mon_n; /* name if a monopoly */
unsigned char sqnums[3]; /* Square numbers (used to init)*/
SQUARE *sq[3]; /* list of squares in monop */
};
void move __P((int));
void save __P((void));
void restore __P((void));
-int rest_f __P((char *));
+int rest_f __P((const char *));
/* getinp.c */
-int getinp __P((char *, char *[]));
+int getinp __P((const char *, const char *const []));
/* houses.c */
void buy_houses __P((void));
void printturn __P((void));
/* misc.c */
-int getyn __P((char *));
+int getyn __P((const char *));
void notify __P((void));
void next_play __P((void));
-int get_int __P((char *));
+int get_int __P((const char *));
void set_ownlist __P((int));
void is_monop __P((MON *, int));
-void isnot_monop __P((MON *));
+void is_not_monop __P((MON *));
void list __P((void));
void list_all __P((void));
void quit __P((void));