OSDN Git Service

Leon氏の勧めに従って、Vanillaのコードと同様に各ソースファイルの頭の
[hengband/hengband.git] / src / z-util.h
1 /* File z-util.h */
2
3 /*
4  * Copyright (c) 1997 Ben Harrison
5  *
6  * This software may be copied and distributed for educational, research,
7  * and not for profit purposes provided that this copyright and statement
8  * are included in all such copies.
9  */
10
11 #ifndef INCLUDED_Z_UTIL_H
12 #define INCLUDED_Z_UTIL_H
13
14 #include "h-basic.h"
15
16
17 /*
18  * Extremely basic stuff, like global temp and constant variables.
19  * Also, some very useful low level functions, such as "streq()".
20  * All variables and functions in this file are "addressable".
21  */
22
23
24 /**** Available variables ****/
25
26 /* A cptr to the name of the program */
27 extern cptr argv0;
28
29
30 /* Aux functions */
31 extern void (*plog_aux)(cptr);
32 extern void (*quit_aux)(cptr);
33 extern void (*core_aux)(cptr);
34
35
36 /**** Available Functions ****/
37
38 /* Test equality, prefix, suffix */
39 extern bool streq(cptr s, cptr t);
40 extern bool prefix(cptr s, cptr t);
41 extern bool suffix(cptr s, cptr t);
42
43
44 /* Print an error message */
45 extern void plog(cptr str);
46
47 /* Exit, with optional message */
48 extern void quit(cptr str);
49
50 /* Dump core, with optional message */
51 extern void core(cptr str);
52
53
54
55 #endif
56