Hengband  2.1.4
 全て データ構造 ファイル 関数 変数 型定義 マクロ定義 ページ
データ構造 | マクロ定義 | 関数 | 変数
util.c
#include "angband.h"
util.cのインクルード依存関係図

データ構造

struct  menu_naiyou
 
struct  special_menu_naiyou
 

マクロ定義

#define O_BINARY   0
 
#define MENU_CLASS   1
 
#define MENU_WILD   2
 
#define REPEAT_MAX   20
 
#define CUTOFF   4
 

関数

struct passwd * getpwuid (uid_t uid)
 
struct passwd * getpwnam (const char *name)
 
void user_name (char *buf, int id)
 
errr path_parse (char *buf, int max, cptr file)
 
static errr path_temp (char *buf, int max)
 
errr path_build (char *buf, int max, cptr path, cptr file)
 
FILE * my_fopen (cptr file, cptr mode)
 
errr my_fclose (FILE *fff)
 
FILE * my_fopen_temp (char *buf, int max)
 
errr my_fgets (FILE *fff, char *buf, huge n)
 
errr my_fputs (FILE *fff, cptr buf, huge n)
 
errr fd_kill (cptr file)
 
errr fd_move (cptr file, cptr what)
 
errr fd_copy (cptr file, cptr what)
 
int fd_make (cptr file, int mode)
 
int fd_open (cptr file, int flags)
 
errr fd_lock (int fd, int what)
 
errr fd_seek (int fd, huge n)
 
errr fd_chop (int fd, huge n)
 
errr fd_read (int fd, char *buf, huge n)
 
errr fd_write (int fd, cptr buf, huge n)
 
errr fd_close (int fd)
 
void move_cursor (int row, int col)
 
static char octify (uint i)
 
static char hexify (uint i)
 
static int deoct (char c)
 
static int dehex (char c)
 
static int my_stricmp (cptr a, cptr b)
 
static int my_strnicmp (cptr a, cptr b, int n)
 
static void trigger_text_to_ascii (char **bufptr, cptr *strptr)
 
void text_to_ascii (char *buf, cptr str)
 
static bool trigger_ascii_to_text (char **bufptr, cptr *strptr)
 
void ascii_to_text (char *buf, cptr str)
 
sint macro_find_exact (cptr pat)
 
static sint macro_find_check (cptr pat)
 
static sint macro_find_maybe (cptr pat)
 
static sint macro_find_ready (cptr pat)
 
errr macro_add (cptr pat, cptr act)
 
void flush (void)
 
void bell (void)
 
void sound (int val)
 
errr play_music (int type, int val)
 
void select_floor_music ()
 
static char inkey_aux (void)
 
static void forget_macro_action (void)
 
char inkey (void)
 
void quark_init (void)
 
s16b quark_add (cptr str)
 
cptr quark_str (s16b i)
 
s16b message_num (void)
 
cptr message_str (int age)
 
void message_add (cptr str)
 
static void msg_flush (int x)
 
void msg_print (cptr msg)
 
void screen_save (void)
 
void screen_load (void)
 
void msg_format (cptr fmt,...)
 
void c_put_str (byte attr, cptr str, int row, int col)
 
void put_str (cptr str, int row, int col)
 
void c_prt (byte attr, cptr str, int row, int col)
 
void prt (cptr str, int row, int col)
 
void c_roff (byte a, cptr str)
 
void roff (cptr str)
 
void clear_from (int row)
 
bool askfor_aux (char *buf, int len, bool numpad_cursor)
 
bool askfor (char *buf, int len)
 
bool get_string (cptr prompt, char *buf, int len)
 
bool get_check (cptr prompt)
 
bool get_check_strict (cptr prompt, int mode)
 
bool get_com (cptr prompt, char *command, bool z_escape)
 
s16b get_quantity (cptr prompt, int max)
 
void pause_line (int row)
 
static char inkey_from_menu (void)
 
void request_command (int shopping)
 
bool is_a_vowel (int ch)
 
int get_keymap_dir (char ch)
 
void repeat_push (int what)
 
bool repeat_pull (int *what)
 
void repeat_check (void)
 
static void swap (tag_type *a, tag_type *b)
 
static void InsertionSort (tag_type elements[], int number)
 
static tag_type median3 (tag_type elements[], int left, int right)
 
static void quicksort (tag_type elements[], int left, int right)
 
void tag_sort (tag_type elements[], int number)
 
void build_gamma_table (int gamma)
 
errr type_string (cptr str, uint len)
 
void roff_to_buf (cptr str, int maxlen, char *tbuf, size_t bufsize)
 
size_t my_strcpy (char *buf, const char *src, size_t bufsize)
 
size_t my_strcat (char *buf, const char *src, size_t bufsize)
 
char * my_strstr (const char *haystack, const char *needle)
 
char * my_strchr (const char *ptr, char ch)
 
void str_tolower (char *str)
 
int inkey_special (bool numpad_cursor)
 

変数

static int num_more = 0
 
static char inkey_macro_trigger_string [1024]
 
static bool macro__use [256]
 
static bool parse_macro = FALSE
 
static bool parse_under = FALSE
 
static cptr inkey_next = NULL
 
static int screen_depth = 0
 
static char request_command_buffer [256]
 
menu_naiyou menu_info [10][10]
 
special_menu_naiyou special_menu_info []
 
static int repeat__cnt = 0
 
static int repeat__idx = 0
 
static int repeat__key [REPEAT_MAX]
 
byte gamma_table [256]
 
static s16b gamma_helper [256]
 

マクロ定義

#define CUTOFF   4
#define MENU_CLASS   1
#define MENU_WILD   2
#define O_BINARY   0
#define REPEAT_MAX   20

関数

void ascii_to_text ( char *  buf,
cptr  str 
)

関数の呼び出しグラフ:

呼出しグラフ:

bool askfor ( char *  buf,
int  len 
)

関数の呼び出しグラフ:

呼出しグラフ:

bool askfor_aux ( char *  buf,
int  len,
bool  numpad_cursor 
)

関数の呼び出しグラフ:

呼出しグラフ:

void bell ( void  )

関数の呼び出しグラフ:

void build_gamma_table ( int  gamma)
void c_prt ( byte  attr,
cptr  str,
int  row,
int  col 
)

関数の呼び出しグラフ:

呼出しグラフ:

void c_put_str ( byte  attr,
cptr  str,
int  row,
int  col 
)

関数の呼び出しグラフ:

void c_roff ( byte  a,
cptr  str 
)

関数の呼び出しグラフ:

呼出しグラフ:

void clear_from ( int  row)

関数の呼び出しグラフ:

呼出しグラフ:

static int dehex ( char  c)
static

呼出しグラフ:

static int deoct ( char  c)
static

呼出しグラフ:

errr fd_chop ( int  fd,
huge  n 
)
errr fd_close ( int  fd)

呼出しグラフ:

errr fd_copy ( cptr  file,
cptr  what 
)

関数の呼び出しグラフ:

errr fd_kill ( cptr  file)

関数の呼び出しグラフ:

呼出しグラフ:

errr fd_lock ( int  fd,
int  what 
)

呼出しグラフ:

int fd_make ( cptr  file,
int  mode 
)

関数の呼び出しグラフ:

呼出しグラフ:

errr fd_move ( cptr  file,
cptr  what 
)

関数の呼び出しグラフ:

呼出しグラフ:

int fd_open ( cptr  file,
int  flags 
)

関数の呼び出しグラフ:

呼出しグラフ:

errr fd_read ( int  fd,
char *  buf,
huge  n 
)

呼出しグラフ:

errr fd_seek ( int  fd,
huge  n 
)

呼出しグラフ:

errr fd_write ( int  fd,
cptr  buf,
huge  n 
)

呼出しグラフ:

void flush ( void  )

呼出しグラフ:

static void forget_macro_action ( void  )
static

関数の呼び出しグラフ:

呼出しグラフ:

bool get_check ( cptr  prompt)

関数の呼び出しグラフ:

bool get_check_strict ( cptr  prompt,
int  mode 
)

関数の呼び出しグラフ:

呼出しグラフ:

bool get_com ( cptr  prompt,
char *  command,
bool  z_escape 
)

関数の呼び出しグラフ:

呼出しグラフ:

int get_keymap_dir ( char  ch)

呼出しグラフ:

s16b get_quantity ( cptr  prompt,
int  max 
)

関数の呼び出しグラフ:

呼出しグラフ:

bool get_string ( cptr  prompt,
char *  buf,
int  len 
)

関数の呼び出しグラフ:

呼出しグラフ:

struct passwd* getpwnam ( const char *  name)

呼出しグラフ:

struct passwd* getpwuid ( uid_t  uid)

呼出しグラフ:

static char hexify ( uint  i)
static

呼出しグラフ:

char inkey ( void  )

関数の呼び出しグラフ:

static char inkey_aux ( void  )
static

関数の呼び出しグラフ:

呼出しグラフ:

static char inkey_from_menu ( void  )
static

関数の呼び出しグラフ:

呼出しグラフ:

int inkey_special ( bool  numpad_cursor)

関数の呼び出しグラフ:

呼出しグラフ:

static void InsertionSort ( tag_type  elements[],
int  number 
)
static

呼出しグラフ:

bool is_a_vowel ( int  ch)

呼出しグラフ:

errr macro_add ( cptr  pat,
cptr  act 
)

関数の呼び出しグラフ:

呼出しグラフ:

static sint macro_find_check ( cptr  pat)
static

関数の呼び出しグラフ:

呼出しグラフ:

sint macro_find_exact ( cptr  pat)

関数の呼び出しグラフ:

呼出しグラフ:

static sint macro_find_maybe ( cptr  pat)
static

関数の呼び出しグラフ:

呼出しグラフ:

static sint macro_find_ready ( cptr  pat)
static

関数の呼び出しグラフ:

呼出しグラフ:

static tag_type median3 ( tag_type  elements[],
int  left,
int  right 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

void message_add ( cptr  str)

関数の呼び出しグラフ:

呼出しグラフ:

s16b message_num ( void  )

呼出しグラフ:

cptr message_str ( int  age)

関数の呼び出しグラフ:

呼出しグラフ:

void move_cursor ( int  row,
int  col 
)

関数の呼び出しグラフ:

呼出しグラフ:

static void msg_flush ( int  x)
static

関数の呼び出しグラフ:

呼出しグラフ:

void msg_format ( cptr  fmt,
  ... 
)

関数の呼び出しグラフ:

void msg_print ( cptr  msg)

関数の呼び出しグラフ:

errr my_fclose ( FILE *  fff)
errr my_fgets ( FILE *  fff,
char *  buf,
huge  n 
)

呼出しグラフ:

FILE* my_fopen ( cptr  file,
cptr  mode 
)

関数の呼び出しグラフ:

呼出しグラフ:

FILE* my_fopen_temp ( char *  buf,
int  max 
)

関数の呼び出しグラフ:

呼出しグラフ:

errr my_fputs ( FILE *  fff,
cptr  buf,
huge  n 
)

呼出しグラフ:

size_t my_strcat ( char *  buf,
const char *  src,
size_t  bufsize 
)

関数の呼び出しグラフ:

呼出しグラフ:

char* my_strchr ( const char *  ptr,
char  ch 
)

呼出しグラフ:

size_t my_strcpy ( char *  buf,
const char *  src,
size_t  bufsize 
)

呼出しグラフ:

static int my_stricmp ( cptr  a,
cptr  b 
)
static

呼出しグラフ:

static int my_strnicmp ( cptr  a,
cptr  b,
int  n 
)
static

呼出しグラフ:

char* my_strstr ( const char *  haystack,
const char *  needle 
)

呼出しグラフ:

static char octify ( uint  i)
static

呼出しグラフ:

errr path_build ( char *  buf,
int  max,
cptr  path,
cptr  file 
)

関数の呼び出しグラフ:

errr path_parse ( char *  buf,
int  max,
cptr  file 
)

関数の呼び出しグラフ:

呼出しグラフ:

static errr path_temp ( char *  buf,
int  max 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

void pause_line ( int  row)

関数の呼び出しグラフ:

呼出しグラフ:

errr play_music ( int  type,
int  val 
)

関数の呼び出しグラフ:

呼出しグラフ:

void prt ( cptr  str,
int  row,
int  col 
)

関数の呼び出しグラフ:

void put_str ( cptr  str,
int  row,
int  col 
)

関数の呼び出しグラフ:

s16b quark_add ( cptr  str)

関数の呼び出しグラフ:

呼出しグラフ:

void quark_init ( void  )

関数の呼び出しグラフ:

呼出しグラフ:

cptr quark_str ( s16b  i)

呼出しグラフ:

static void quicksort ( tag_type  elements[],
int  left,
int  right 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

void repeat_check ( void  )

関数の呼び出しグラフ:

呼出しグラフ:

bool repeat_pull ( int *  what)

呼出しグラフ:

void repeat_push ( int  what)

呼出しグラフ:

void request_command ( int  shopping)

関数の呼び出しグラフ:

呼出しグラフ:

void roff ( cptr  str)

関数の呼び出しグラフ:

void roff_to_buf ( cptr  str,
int  maxlen,
char *  tbuf,
size_t  bufsize 
)

呼出しグラフ:

void screen_load ( void  )

関数の呼び出しグラフ:

void screen_save ( void  )

関数の呼び出しグラフ:

void select_floor_music ( void  )

関数の呼び出しグラフ:

呼出しグラフ:

void sound ( int  val)

関数の呼び出しグラフ:

void str_tolower ( char *  str)

呼出しグラフ:

static void swap ( tag_type a,
tag_type b 
)
static

呼出しグラフ:

void tag_sort ( tag_type  elements[],
int  number 
)

関数の呼び出しグラフ:

呼出しグラフ:

void text_to_ascii ( char *  buf,
cptr  str 
)

関数の呼び出しグラフ:

呼出しグラフ:

static bool trigger_ascii_to_text ( char **  bufptr,
cptr strptr 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void trigger_text_to_ascii ( char **  bufptr,
cptr strptr 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

errr type_string ( cptr  str,
uint  len 
)

関数の呼び出しグラフ:

void user_name ( char *  buf,
int  id 
)

関数の呼び出しグラフ:

呼出しグラフ:

変数

s16b gamma_helper[256]
static
初期値:
=
{
0,-1420,-1242,-1138,-1065,-1007,-961,-921,-887,-857,-830,-806,-783,-762,-744,-726,
-710,-694,-679,-666,-652,-640,-628,-617,-606,-596,-586,-576,-567,-577,-549,-541,
-532,-525,-517,-509,-502,-495,-488,-482,-475,-469,-463,-457,-451,-455,-439,-434,
-429,-423,-418,-413,-408,-403,-398,-394,-389,-385,-380,-376,-371,-367,-363,-359,
-355,-351,-347,-343,-339,-336,-332,-328,-325,-321,-318,-314,-311,-308,-304,-301,
-298,-295,-291,-288,-285,-282,-279,-276,-273,-271,-268,-265,-262,-259,-257,-254,
-251,-248,-246,-243,-241,-238,-236,-233,-231,-228,-226,-223,-221,-219,-216,-214,
-212,-209,-207,-205,-203,-200,-198,-196,-194,-192,-190,-188,-186,-184,-182,-180,
-178,-176,-174,-172,-170,-168,-166,-164,-162,-160,-158,-156,-155,-153,-151,-149,
-147,-146,-144,-142,-140,-139,-137,-135,-134,-132,-130,-128,-127,-125,-124,-122,
-120,-119,-117,-116,-114,-112,-111,-109,-108,-106,-105,-103,-102,-100,-99,-97,
-96,-95,-93,-92,-90,-89,-87,-86,-85,-83,-82,-80,-79,-78,-76,-75,
-74,-72,-71,-70,-68,-67,-66,-65,-63,-62,-61,-59,-58,-57,-56,-54,
-53,-52,-51,-50,-48,-47,-46,-45,-44,-42,-41,-40,-39,-38,-37,-35,
-34,-33,-32,-31,-30,-29,-27,-26,-25,-24,-23,-22,-21,-20,-19,-18,
-17,-16,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1
}
byte gamma_table[256]
char inkey_macro_trigger_string[1024]
static
cptr inkey_next = NULL
static
bool macro__use[256]
static
menu_naiyou menu_info[10][10]
int num_more = 0
static
bool parse_macro = FALSE
static
bool parse_under = FALSE
static
int repeat__cnt = 0
static
int repeat__idx = 0
static
int repeat__key[REPEAT_MAX]
static
char request_command_buffer[256]
static
int screen_depth = 0
static
special_menu_naiyou special_menu_info[]
初期値:
=
{
{"MindCraft/Special", 0, 0, MENU_CLASS, CLASS_MINDCRAFTER},
{"Imitation/Special", 0, 0, MENU_CLASS, CLASS_IMITATOR},
{"Song/Special", 0, 0, MENU_CLASS, CLASS_BARD},
{"Technique/Special", 0, 0, MENU_CLASS, CLASS_SAMURAI},
{"Mind/Magic/Special", 0, 0, MENU_CLASS, CLASS_FORCETRAINER},
{"BrutalPower/Special", 0, 0, MENU_CLASS, CLASS_BERSERKER},
{"Technique/Special", 0, 0, MENU_CLASS, CLASS_SMITH},
{"MirrorMagic/Special", 0, 0, MENU_CLASS, CLASS_MIRROR_MASTER},
{"Ninjutsu/Special", 0, 0, MENU_CLASS, CLASS_NINJA},
{"Enter global map(<)", 2, 6, MENU_WILD, FALSE},
{"Enter local map(>)", 2, 7, MENU_WILD, TRUE},
{"", 0, 0, 0, 0},
}
#define CLASS_BARD
Definition: defines.h:845
#define CLASS_MINDCRAFTER
Definition: defines.h:837
#define CLASS_BERSERKER
Definition: defines.h:851
#define FALSE
コンパイル環境に定義がない場合のFALSE定義
Definition: h-define.h:69
#define CLASS_SMITH
Definition: defines.h:852
#define CLASS_NINJA
Definition: defines.h:854
#define CLASS_SAMURAI
Definition: defines.h:847
#define CLASS_FORCETRAINER
Definition: defines.h:848
#define MENU_CLASS
Definition: util.c:4155
#define CLASS_IMITATOR
Definition: defines.h:840
#define TRUE
コンパイル環境に定義がない場合のTRUE定義
Definition: h-define.h:66
#define MENU_WILD
Definition: util.c:4156
#define CLASS_MIRROR_MASTER
Definition: defines.h:853