Hengband  2.1.4
 全て データ構造 ファイル 関数 変数 型定義 マクロ定義 ページ
マクロ定義 | 関数 | 変数
z-virt.h
#include "h-basic.h"
z-virt.hのインクルード依存関係図
このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。

ソースコードを見る。

マクロ定義

#define C_SIZE(N, T)   ((huge)((N)*(sizeof(T))))
 
#define SIZE(T)   ((huge)(sizeof(T)))
 
#define C_DIFF(P1, P2, N, T)   (memcmp((char*)(P1),(char*)(P2),C_SIZE(N,T)))
 
#define DIFF(P1, P2, T)   (memcmp((char*)(P1),(char*)(P2),SIZE(T)))
 
#define C_BSET(P, V, N, T)   (T*)(memset((char*)(P),(V),C_SIZE(N,T)))
 
#define BSET(P, V, T)   (T*)(memset((char*)(P),(V),SIZE(T)))
 
#define C_WIPE(P, N, T)   (T*)(memset((char*)(P),0,C_SIZE(N,T)))
 
#define WIPE(P, T)   (T*)(memset((char*)(P),0,SIZE(T)))
 
#define C_COPY(P1, P2, N, T)   (T*)(memcpy((char*)(P1),(char*)(P2),C_SIZE(N,T)))
 
#define COPY(P1, P2, T)   (T*)(memcpy((char*)(P1),(char*)(P2),SIZE(T)))
 
#define C_FREE(P, N, T)   (T*)(rnfree(P,C_SIZE(N,T)))
 
#define FREE(P, T)   (T*)(rnfree(P,SIZE(T)))
 
#define C_RNEW(N, T)   ((T*)(ralloc(C_SIZE(N,T))))
 
#define RNEW(T)   ((T*)(ralloc(SIZE(T))))
 
#define C_ZNEW(N, T)   ((T*)(C_WIPE(C_RNEW(N,T),N,T)))
 
#define ZNEW(T)   ((T*)(WIPE(RNEW(T),T)))
 
#define C_MAKE(P, N, T)   ((P)=C_ZNEW(N,T))
 
#define MAKE(P, T)   ((P)=ZNEW(T))
 
#define C_KILL(P, N, T)   ((P)=C_FREE(P,N,T))
 
#define KILL(P, T)   ((P)=FREE(P,T))
 

関数

vptr rnfree (vptr p, huge len)
 
vptr rpanic (huge len)
 
vptr ralloc (huge len)
 
cptr string_make (cptr str)
 
errr string_free (cptr str)
 

変数

vptr(* rnfree_aux )(vptr, huge)
 
vptr(* rpanic_aux )(huge)
 
vptr(* ralloc_aux )(huge)
 

マクロ定義

#define BSET (   P,
  V,
 
)    (T*)(memset((char*)(P),(V),SIZE(T)))
#define C_BSET (   P,
  V,
  N,
 
)    (T*)(memset((char*)(P),(V),C_SIZE(N,T)))
#define C_COPY (   P1,
  P2,
  N,
 
)    (T*)(memcpy((char*)(P1),(char*)(P2),C_SIZE(N,T)))
#define C_DIFF (   P1,
  P2,
  N,
 
)    (memcmp((char*)(P1),(char*)(P2),C_SIZE(N,T)))
#define C_FREE (   P,
  N,
 
)    (T*)(rnfree(P,C_SIZE(N,T)))
#define C_KILL (   P,
  N,
 
)    ((P)=C_FREE(P,N,T))
#define C_MAKE (   P,
  N,
 
)    ((P)=C_ZNEW(N,T))
#define C_RNEW (   N,
 
)    ((T*)(ralloc(C_SIZE(N,T))))
#define C_SIZE (   N,
 
)    ((huge)((N)*(sizeof(T))))
#define C_WIPE (   P,
  N,
 
)    (T*)(memset((char*)(P),0,C_SIZE(N,T)))
#define C_ZNEW (   N,
 
)    ((T*)(C_WIPE(C_RNEW(N,T),N,T)))
#define COPY (   P1,
  P2,
 
)    (T*)(memcpy((char*)(P1),(char*)(P2),SIZE(T)))
#define DIFF (   P1,
  P2,
 
)    (memcmp((char*)(P1),(char*)(P2),SIZE(T)))
#define FREE (   P,
 
)    (T*)(rnfree(P,SIZE(T)))
#define KILL (   P,
 
)    ((P)=FREE(P,T))
#define MAKE (   P,
 
)    ((P)=ZNEW(T))
#define RNEW (   T)    ((T*)(ralloc(SIZE(T))))
#define SIZE (   T)    ((huge)(sizeof(T)))
#define WIPE (   P,
 
)    (T*)(memset((char*)(P),0,SIZE(T)))
#define ZNEW (   T)    ((T*)(WIPE(RNEW(T),T)))

関数

vptr ralloc ( huge  len)

関数の呼び出しグラフ:

呼出しグラフ:

vptr rnfree ( vptr  p,
huge  len 
)

関数の呼び出しグラフ:

呼出しグラフ:

vptr rpanic ( huge  len)

関数の呼び出しグラフ:

呼出しグラフ:

errr string_free ( cptr  str)

関数の呼び出しグラフ:

呼出しグラフ:

cptr string_make ( cptr  str)

関数の呼び出しグラフ:

呼出しグラフ:

変数

vptr(* ralloc_aux)(huge)
vptr(* rnfree_aux)(vptr, huge)
vptr(* rpanic_aux)(huge)