OSDN Git Service

[Refactor] #37363 h-*.h の空行調整 / Reshaped blank lines in h-*.h
authorHourier <hourier@users.sourceforge.jp>
Wed, 29 Jan 2020 12:38:49 +0000 (21:38 +0900)
committerHourier <hourier@users.sourceforge.jp>
Wed, 29 Jan 2020 12:38:49 +0000 (21:38 +0900)
src/h-basic.h
src/h-config.h
src/h-define.h
src/h-system.h
src/h-type.h

index 01d64a9..231b0e4 100644 (file)
@@ -7,7 +7,6 @@
  * 不明(変愚蛮怒スタッフ?)
  */
 
-
 #ifndef INCLUDED_H_BASIC_H
 #define INCLUDED_H_BASIC_H
 
@@ -42,4 +41,3 @@
 #  define NULL ((char*)0) /*!< コンパイル環境に定義がない場合のNULL定義 */
 # endif /* __STDC__ */
 #endif /* NULL */
-
index 23cd38d..ff2b505 100644 (file)
@@ -42,8 +42,6 @@
 # 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
@@ -53,8 +51,6 @@
 # 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
@@ -70,7 +66,6 @@
 # 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
@@ -95,7 +90,6 @@
 # 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
index 25cf762..b9c8b80 100644 (file)
@@ -9,7 +9,6 @@
 #ifndef INCLUDED_H_DEFINE_H
 #define INCLUDED_H_DEFINE_H
 
-
 /*
  * The constants "TRUE" and "FALSE"
  */
@@ -20,9 +19,6 @@
 #undef FALSE
 #define FALSE  0 /*!< コンパイル環境に定義がない場合のFALSE定義 */
 
-
-
-
 /**** Simple "Macros" ****/
 #ifdef JP
 #define lbtokg(x) ((int)((x)*5)) /*!< 変愚蛮怒基準のポンド→キログラム変換定義(全体) */
@@ -36,7 +32,6 @@
 #define FORCELOWER(A)  ((isupper((A))) ? tolower((A)) : (A))
 #define FORCEUPPER(A)  ((islower((A))) ? toupper((A)) : (A))
 
-
 /*
  * Non-typed minimum value macro
  */
@@ -67,4 +62,3 @@
 #define atoffset(TYPE, STRUCT_PTR, OFFSET) (*(TYPE*)(((char*)STRUCT_PTR) + (OFFSET)))
 
 #endif
-
index ec7bbcd..c416f17 100644 (file)
  * 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>
index deafdf1..a2f688c 100644 (file)
 #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
@@ -73,20 +71,15 @@ typedef int errr;
 
 #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;
 
@@ -108,7 +101,6 @@ typedef signed long s32b;
 typedef unsigned long u32b;
 #endif
 
-
 typedef s16b IDX;                              /*!< ゲーム中のID型を定義 */
 
 typedef s16b TOWN_IDX;                 /*!< ゲーム中の町ID型を定義 */
@@ -151,7 +143,6 @@ typedef byte FEAT_SUBTYPE;  /*!< 地形情報の副値 (トラップ種別/パタ
 
 typedef char GAME_TEXT;                /*!< ゲーム中のテキスト型定義 */
 
-
 /*!
  * @var typedef s32b HIT_POINT
  * @brief HPとその増減量の型定義
@@ -264,7 +255,6 @@ typedef s16b FEAT_PRIORITY; /*!< 地形の縮小表示優先順位 */
 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;
@@ -281,9 +271,7 @@ typedef u32b *u32b_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);
 
@@ -298,6 +286,4 @@ typedef uint        (*func_hsh)(vptr, uint);
 
 /* A key extractor takes a thing and returns (a pointer to) some key */
 typedef vptr   (*func_key)(vptr);
-
-
 #endif