動的メモリ確保を行う関数 [詳細]
#include <sent/stddefs.h>
関数 | |
void * | mymalloc (int size) |
void * | myrealloc (void *ptr, int size) |
void * | mycalloc (int nelem, int elsize) |
動的メモリ確保を行う関数
エラーが起こった場合,即座にエラー終了します.
mymalloc.c で定義されています。
void* mymalloc | ( | int | size | ) |
Allocate a memory, as the same as malloc.
size | [in] required size in bytes. |
mymalloc.c の 40 行で定義されています。
参照元 add_arc(), add_successor(), add_to_error(), add_unigram(), adin_cut(), adin_cut_callback_store_buffer(), adin_file_begin(), adin_initialize(), adin_mic_standby(), adin_sndfile_begin(), adin_thread_create(), build_gsset(), build_state2gs(), build_wchmm2(), calc_tied_mix_init(), calc_tied_mix_prepare(), cdset_new(), cm_init(), CMN_realtime_init(), CMN_realtime_update(), config_file_parse(), Delta(), dfa_append(), dfa_find_pause_word(), dfa_info_new(), dfa_pause_word_append(), dfa_state_init(), do_align(), exec_exclude_vectors(), filepath(), get_line(), get_nbest_uniprob(), gmm_gprune_safe_init(), gmm_init(), gms_gprune_init(), gms_init(), gms_prepare(), gprune_beam_init(), gprune_heu_init(), gprune_none_init(), gprune_safe_init(), hmminfo_new(), init_count_zc_e(), init_mark(), init_param(), InitFBank(), make_costbl_hamming(), make_costbl_makemfcc(), make_fft_table(), make_iwcache_index(), make_phseq(), make_sintbl_wcep(), make_successor_list(), make_terminfo(), malloc_dfa_cp(), malloc_nodes(), malloc_wordtrellis(), max_successor_cache_init(), max_successor_prob_iw(), mfcfilelist_nextfile(), msock_exec_command(), multigram_add(), multigram_add_gramlist(), multigram_add_prefix_filelist(), mybmalloc(), mybmalloc2(), new_make_word_hmm_with_lm(), new_node(), new_param(), new_SS_calculate(), new_SS_load_from_file(), new_str2phseq(), new_str2wordseq(), new_wav2mfcc(), newnode(), ngram_compact_bigram_context(), ngram_info_new(), ngram_make_lookup_tree(), ngram_read_bin(), nw_malloc(), opt_parse(), outprob_cache_extend(), outprob_cd_nbest_init(), param_str2code(), phoneme_rev_align(), rd_dens(), rd_state(), rd_tmix(), rd_trans(), rd_var(), rddfa_line(), rdhmmlist(), read_param(), read_token(), realloc_dfa_cp(), RealTimeInit(), RealTimeParam(), RealTimePipeLine(), regist_cdset(), set_bigram(), set_trigram(), set_unigram(), state_rev_align(), terminfo_append(), test_expand_triphone(), tmix_create_codebook_index(), viterbi_segment(), voca_append(), voca_load_htkdict_line(), wchmm_add_word(), wchmm_duplicate_leafnode(), wchmm_fbs(), wchmm_init(), wchmm_new(), WeightCepstrum(), winfo_init(), WMP_calc_init(), WMP_deltabuf_new(), word_info_new(), word_rev_align(), wt_dens(), wt_state(), wt_tmix(), wt_trans(), と wt_var().
void* myrealloc | ( | void * | ptr, | |
int | size | |||
) |
Re-allocate memory area, keeping the existing data, as the same as realloc.
ptr | [in] memory pointer to be re-allocated | |
size | [in] required new size in bytes |
mymalloc.c の 58 行で定義されています。
参照元 CMN_realtime_update(), config_file_parse(), dfa_pause_word_append(), dfa_state_expand(), expand_tlist(), new_str2phseq(), new_str2wordseq(), ngram_compact_bigram_context(), outprob_cache_extend(), RealTimePipeLine(), regist_cdset(), shrink_successor(), terminfo_append(), voca_load_htkdict_line(), wchmm_extend(), と winfo_expand().
void* mycalloc | ( | int | nelem, | |
int | elsize | |||
) |
Allocate memory area and set it to zero, as the same as calloc.
nelem | [in] size of element in bytes | |
elsize | [in] number of elements to allocate |
mymalloc.c の 76 行で定義されています。
参照元 CMN().