* 不明(変愚蛮怒スタッフ?)
*/
-
#ifndef INCLUDED_H_BASIC_H
#define INCLUDED_H_BASIC_H
# define NULL ((char*)0) /*!< コンパイル環境に定義がない場合のNULL定義 */
# endif /* __STDC__ */
#endif /* NULL */
-
# endif
#endif
-
-
/*
* OPTION: Define "L64" if a "long" is 64-bits. See "h-types.h".
* The only such platform that angband is ported to is currently
# define L64
#endif
-
-
/*
* OPTION: set "SET_UID" if the machine is a "multi-user" machine.
* This option is used to verify the use of "uids" and "gids" for
# define SET_UID
#endif
-
/*
* Every system seems to use its own symbol as a path separator.
* Default to the standard Unix slash, but attempt to change this
# define PATH_SEP "/"
#endif
-
/*
* The Macintosh allows the use of a "file type" when creating a file
*/
# define stricmp strcasecmp
#endif
-
/*
* OPTION: Define "HAVE_USLEEP" only if "usleep()" exists.
*
#endif /* HAVE_CONFIG_H */
-
/*
* Look through the following lines, and where a comment includes the
* tag "OPTION:", examine the associated "#define" statements, and decide
*/
#define SAFE_SETUID
-
/*
* This flag enables the "POSIX" methods for "SAFE_SETUID".
*/
# define DEFAULT_PATH "./lib/"
#endif
-
/*
* OPTION: Create and use a hidden directory in the users home directory
* for storing pref-files and character-dumps.
* OPTION: Person to bother if something goes wrong.
*/
/* #define MAINTAINER "rr9@angband.org" */
-#define MAINTAINER "echizen@users.sourceforge.jp"
-
+#define MAINTAINER "echizen@users.sourceforge.jp"
#ifdef JP
/*
#define DEFAULT_X11_FONT_7 "5x8"
#endif
-
/*
* Hack -- Mach-O (native binary format of OS X) is basically a Un*x
* but has Mac OS/Windows-like user interface
#ifndef INCLUDED_H_DEFINE_H
#define INCLUDED_H_DEFINE_H
-
/*
* The constants "TRUE" and "FALSE"
*/
#undef FALSE
#define FALSE 0 /*!< コンパイル環境に定義がない場合のFALSE定義 */
-
-
-
/**** Simple "Macros" ****/
#ifdef JP
#define lbtokg(x) ((int)((x)*5)) /*!< 変愚蛮怒基準のポンド→キログラム変換定義(全体) */
#define FORCELOWER(A) ((isupper((A))) ? tolower((A)) : (A))
#define FORCEUPPER(A) ((islower((A))) ? toupper((A)) : (A))
-
/*
* Non-typed minimum value macro
*/
#define atoffset(TYPE, STRUCT_PTR, OFFSET) (*(TYPE*)(((char*)STRUCT_PTR) + (OFFSET)))
#endif
-
* because VMS does not use the "ASCII" character set.
*/
-
#ifndef INCLUDED_H_SYSTEM_H
#define INCLUDED_H_SYSTEM_H
-
-
#include <stdio.h>
#include <ctype.h>
#include <wctype.h>
#include <errno.h>
#include <stddef.h>
-
#if defined(NeXT)
# include <libc.h>
#else
# include <stdlib.h>
#endif /* NeXT */
-
#ifdef SET_UID
# include <sys/types.h>
#endif /* SET_UID */
-
#include <time.h>
-
#if defined(WINDOWS)
# include <io.h>
#endif
# endif
#endif
-
#if !defined(NeXT) && !defined(__MWERKS__)
# include <fcntl.h>
#endif
-
#ifdef SET_UID
# include <sys/param.h>
#endif
/*** Special 4 letter names for some standard types ***/
-
typedef void *vptr; /*!< void型ポインタ定義 / A standard pointer (to "void" because ANSI C says so) */
typedef const char *concptr; /*!< 文字列定数用ポインタ定義 / A simple pointer (to unmodifiable strings) */
typedef double real; /*!< doubleをreal型として定義 / Since float's are silly, hard code real numbers as doubles */
-
/*!
* @brief エラーコードの定義 / Error codes for function return values
* @details
#define MAX_NLEN 160 /*!< Maximum length of object's name */
-
/* Note that "signed char" is not always "defined" */
/* So always use "s16b" to hold small signed values */
/* A signed byte of memory */
/* typedef signed char syte; */
-
typedef unsigned char byte; /*!< byte型をunsighned charとして定義 / Note that unsigned values can cause math problems / An unsigned byte of memory */
typedef char bool; /*!< bool型をcharとして定義 / Note that a bool is smaller than a full "int" / Simple True/False type */
typedef int sint; /*!< sint型をintとして定義 / A signed, standard integer (at least 2 bytes) */
typedef unsigned int uint; /* uint型をintとして定義 / An unsigned, "standard" integer (often pre-defined) */
-/* The largest possible signed integer (pre-defined) */
-/* typedef long long; */
-
/* The largest possible unsigned integer */
typedef unsigned long huge;
typedef unsigned long u32b;
#endif
-
typedef s16b IDX; /*!< ゲーム中のID型を定義 */
typedef s16b TOWN_IDX; /*!< ゲーム中の町ID型を定義 */
typedef char GAME_TEXT; /*!< ゲーム中のテキスト型定義 */
-
/*!
* @var typedef s32b HIT_POINT
* @brief HPとその増減量の型定義
typedef BIT_FLAGS SPOP_FLAGS; /*!< スペル用オプション */
/*** Pointers to all the basic types defined above ***/
-
typedef real *real_ptr;
typedef errr *errr_ptr;
typedef char *char_ptr;
typedef vptr *vptr_ptr;
typedef concptr *cptr_ptr;
-
/*** Pointers to Functions of special types (for various purposes) ***/
-
/* A generic function takes a user data and a special data */
typedef errr (*func_gen)(vptr, vptr);
/* A key extractor takes a thing and returns (a pointer to) some key */
typedef vptr (*func_key)(vptr);
-
-
#endif