#include <stdarg.h>
util.hのインクルード依存関係図
このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。
マクロ定義 | |
#define | MYBMALLOC_BLOCK_SIZE 10000 |
Memory block size in bytes for mybmalloc(). | |
型定義 | |
typedef _bmalloc_base | BMALLOC_BASE |
Information of allocated memory block for mybmalloc(). | |
関数 | |
char * | getl (char *, int, FILE *) |
char * | getl_fp (char *, int, FILE *) |
char * | getl_fd (char *, int, int) |
char * | getl_sd (char *, int, int) |
char * | first_token (char *) |
char * | next_token (void) |
char * | next_token_if_any (void) |
char * | rest_token (void) |
FILE * | fopen_readfile (char *) |
int | fclose_readfile (FILE *) |
FILE * | fopen_writefile (char *) |
int | fclose_writefile (FILE *) |
size_t | myfread (void *ptr, size_t size, size_t n, FILE *fp) |
size_t | myfwrite (void *ptr, size_t size, size_t n, FILE *fp) |
int | myfgetc (FILE *fp) |
int | myfeof (FILE *fp) |
void | mybmalloc_set_param () |
void * | mybmalloc (int) |
void | mybmalloc_free (void) |
char * | mybstrdup (char *) |
void * | mybmalloc2 (int size, BMALLOC_BASE **list) |
void | mybfree2 (BMALLOC_BASE **list) |
void * | mymalloc (int) |
void * | myrealloc (void *, int) |
void * | mycalloc (int, int) |
void | swap_sample_bytes (SP16 *buf, int len) |
void | swap_bytes (char *buf, size_t unitbyte, int unitnum) |
boolean | j_printf_set_charconv (char *fromcode, char *tocode) |
char * | charconv (char *instr, char *outstr, int maxoutlen) |
boolean | charconv_iconv_setup (char *fromcode, char *tocode, boolean *enabled) |
char * | charconv_iconv (char *instr, char *outstr, int maxoutlen) |
boolean | charconv_win32_setup (char *fromcode, char *tocode, boolean *enabled) |
char * | charconv_win32 (char *instr, char *outstr, int maxoutlen) |
boolean | charconv_libjcode_setup (char *fromcode, char *tocode, boolean *enabled) |
char * | charconv_libjcode (char *instr, char *outstr, int maxoutlen) |
void | set_print_func (void(*print)(char *), void(*printerr)(char *), void(*flush)(void)) |
int | j_printf (char *format,...) |
Output a text message to standard out. | |
int | j_printerr (char *format,...) |
Output a text message to standard error. | |
int | j_flushprint () |
Flush text message. | |
int | module_send (int sd, char *format,...) |
void | j_error (char *format,...) |
void | j_error_register_exitfunc (void(*error_func)()) |
void | j_exit () |
void | j_exit_register_exitfunc (void(*exit_func)()) |
char * | mystrtok_quotation (char *str, char *delim, int left_paren, int right_paren, int mode) |
char * | mystrtok_quote (char *str, char *delim) |
char * | mystrtok (char *str, char *delim) |
char * | mystrtok_movetonext (char *str, char *delim) |
util.h で定義されています。
|
Memory block size in bytes for mybmalloc(). mybmalloc() allocate memory per big block to reduce memory management overhead. This value sets the block size to be allocated. Smaller value may leads to finer granularity, but overhead may increase. Larger value may result in reduction of overhead, but too much memory can be allocated for a small memory requirement. |
|
Read one line from file that has been opened by fopen_readfile(). Blank line will be skipped.
readfile.c の 52 行で定義されています。 参照元 add_bigram_rl(), add_unigram(), ngram_read_arpa(), rddfa(), rdhmmlist(), read_token(), set_and_check_total_info(), set_bigram(), set_total_info(), set_trigram(), set_unigram(), と voca_load_htkdict(). |
|
Read one line from file pointer. Blank line will be skipped.
readfile.c の 86 行で定義されています。 参照元 adin_file_begin(), adin_sndfile_begin(), mfcfilelist_nextfile(), と multigram_add_prefix_filelist(). |
|
Read one line from a file descriptor. Blank line will be skipped.
readfile.c の 114 行で定義されています。 参照元 rddfa_fd(), と voca_load_htkdict_fd(). |
|
Read one line from a socket descriptor. Blank line will be skipped.
readfile.c の 151 行で定義されています。 参照元 rddfa_sd(), と voca_load_htkdict_sd(). |
|
Return first token of a buffer, delimited by DELM. Program will terminate if any token does not found.
readfile.c の 186 行で定義されています。 参照元 add_bigram_rl(), add_unigram(), new_str2phseq(), rddfa_line(), rdhmmlist(), set_bigram(), set_trigram(), と set_unigram(). |
|
Return next token of a buffer, delimited by DELM. Should be called after first_token(). Program will terminate if any token does not found.
readfile.c の 202 行で定義されています。 参照元 add_bigram_rl(), add_unigram(), rddfa_line(), set_bigram(), set_trigram(), と set_unigram(). |
|
Return next token of a buffer, delimited by DELM. Should be called after first_token().
readfile.c の 216 行で定義されています。 参照元 new_str2phseq(), と rdhmmlist(). |
|
Return the rest tokens till newline. Program will terminate if any token does not found.
readfile.c の 230 行で定義されています。 |
|
Open a file with zlib.
参照元 adin_file_open(), CMN_load_from_file(), init_dfa(), init_hmminfo(), init_ngram_arpa(), init_ngram_bin(), init_voca(), new_SS_load_from_file(), と rdparam(). |
|
Close a file previously opened by fopen_readfile().
参照元 adin_file_close(), adin_file_open(), CMN_load_from_file(), init_dfa(), init_hmminfo(), init_ngram_arpa(), init_ngram_bin(), init_voca(), new_SS_load_from_file(), rdparam(), と setup_wav(). |
|
Open or create a file for writing (no compression supported),
参照元 wrwav_open(). |
|
Close file previously opened by open_writefile().
参照元 wrwav_close(). |
|
Read data from input stream opened by fopen_readfile().
参照元 adin_file_open(), adin_file_read(), adin_stdin_read(), myread(), と rdn(). |
|
Write data.
|
|
Read one character from input stream opened by fopen_readfile().
参照元 rdn_str(). |
|
Test if reached end of file, for files opened by fopen_readfile().
参照元 adin_file_read(). |
|
Set block size and memory alignment factor. mybmalloc.c の 70 行で定義されています。 参照元 mybmalloc(), mybmalloc2(), と system_bootup(). |
|
Malloc specified size and return the pointer.
mybmalloc.c の 102 行で定義されています。 参照元 add_to_error(), calc_tied_mix_init(), cdset_new(), dens_new(), dens_read(), gms_gprune_init(), hmm_add_physical_to_logical(), hmm_add_pseudo_phones_sub(), htk_hmmdata_new(), htk_hmmdata_read(), make_hmm_basephone_list(), mybstrdup(), rd_data(), rd_dens(), rd_state(), rd_tmix(), rd_trans(), rd_var(), rdhmmlist(), rdn_str(), state_new(), state_read(), tmix_create_codebook_index(), tmix_read(), trans_new(), trans_read(), と var_read(). |
|
Free all the allocated area. mybmalloc.c の 180 行で定義されています。 |
|
String duplication using mybmalloc().
mybmalloc.c の 210 行で定義されています。 参照元 rdhmmdef(), rdhmmlist(), regist_cdset(), と tmix_read(). |
|
Another version of memory block allocation, used for tree lexicon.
mybmalloc.c の 228 行で定義されています。 参照元 add_wacc(), wchmm_add_word(), と wchmm_duplicate_state(). |
|
Free all memories allocated by mybmalloc2()
mybmalloc.c の 262 行で定義されています。 参照元 wchmm_free(). |
|
|
Re-allocate memory area, keeping the existing data, as the same as realloc.
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(). |
|
Allocate memory area and set it to zero, as the same as calloc.
mymalloc.c の 76 行で定義されています。 参照元 CMN(). |
|
Byte swapping of 16bit audio samples.
参照元 adin_file_read(), adin_mic_read(), adin_stdin_read(), adin_tcpip_read(), NA_read(), と wrsamp(). |
|
Generic byte-swapping functions for any size of unit.
参照元 myread(), mywrite(), rdn(), read_param(), と wrt(). |
|
Setup charset conversion.
charconv.c の 46 行で定義されています。 参照元 main(). |
|
Apply charset conversion to a string.
charconv.c の 80 行で定義されています。 参照元 j_printerr(), j_printf(), と module_send(). |
|
Setup charset conversion for iconv.
charconv_iconv.c の 44 行で定義されています。 |
|
Apply charset conversion to a string using iconv.
charconv_iconv.c の 91 行で定義されています。 参照元 charconv(). |
|
Setup charset conversion for win32.
charconv_win32.c の 67 行で定義されています。 |
|
Apply charset conversion to a string using win32 functions
charconv_win32.c の 203 行で定義されています。 参照元 charconv(). |
|
Setup charset conversion for libjcode.
charconv_libjcode.c の 49 行で定義されています。 |
|
Apply charset conversion to a string using libjcode.
charconv_libjcode.c の 88 行で定義されています。 参照元 charconv(). |
|
Set the alternative output functions instead of normal tty output.
j_printf.c の 57 行で定義されています。 |
|
Output a text message to standard out. The output device can be changed by set_print_func().
j_printf.c の 76 行で定義されています。 参照元 accept_from(), adin_file_begin(), adin_mic_standby(), adin_sndfile_begin(), adin_stdin_begin(), bt_current_max_word(), build_wchmm2(), callback_list_error(), check_wchmm(), config_file_parse(), detailed_help(), disp_ptree(), do_align(), exec_exclude_vectors(), hmm_check(), list_error(), main_module_loop(), main_recognition_loop(), make_base_phone(), make_ngram_ref(), make_ptree(), mark_exclude_vector(), max_successor_prob_iw(), multigram_activate(), multigram_add(), multigram_build_append(), multigram_deactivate(), multigram_delete(), multigram_exec(), multigram_exec_activate(), multigram_exec_delete(), multigram_read_file(), new_select_param_kind(), new_str2phseq(), ngram_nextwords(), ngram_write_bin(), param_strip_zero(), print_1pass_result(), print_all_basephone_name(), print_all_gram(), print_callback_detail(), print_callback_name(), print_dfa_cp(), print_dfa_info(), print_error_callback(), print_format(), print_hmmdef_info(), print_hmminfo(), print_info(), print_ngram_info(), print_ngraminfo(), print_phone_info(), print_setting(), print_voca_info(), print_wchmm_info(), print_wchmm_s(), print_wchmm_s_arc(), print_wchmm_s_successor(), print_wchmm_w(), print_winfo_w(), put_all_in_stack(), put_atom(), put_hmm_arc(), put_hmm_outprob(), put_htk_dens(), put_htk_hmm(), put_htk_state(), put_htk_trans(), put_htk_var(), put_hypo_cmscore(), put_hypo_phoneme(), put_hypo_wname(), put_hypo_woutput(), put_logical_hmm(), put_param_head(), put_param_info(), put_vec(), put_voca(), rd_data(), rd_dens(), rd_state(), rd_tmix(), rd_trans(), rd_var(), RealTimeCMNUpdate(), RealTimeInit(), RealTimeParam(), scan_word(), select_param_vmark(), test_expand_triphone(), test_interword_triphone(), ttyout_gmm(), ttyout_pass1_current(), ttyout_pass1_end(), ttyout_pass1_final(), ttyout_pass2(), ttyout_pass2_end(), ttyout_pass2_failed(), ttyout_rejected(), wb_ok(), wchmm_check_interactive(), wchmm_fbs(), wt_data(), wt_dens(), wt_state(), wt_tmix(), wt_trans(), と wt_var(). |
|
Output a text message to standard error. The output device can be changed by set_print_func().
j_printf.c の 110 行で定義されています。 参照元 add_bigram_rl(), add_unigram(), adin_cut(), adin_cut_callback_store_buffer(), adin_file_begin(), adin_file_open(), adin_file_standby(), adin_mic_read(), adin_mic_standby(), adin_mic_start(), adin_mic_stop(), adin_netaudio_read(), adin_netaudio_start(), adin_setup_func(), adin_sndfile_begin(), adin_sndfile_end(), adin_sndfile_standby(), adin_stdin_begin(), adin_tcpip_begin(), adin_tcpip_end(), adin_tcpip_read(), adin_tcpip_send_pause(), adin_tcpip_send_resume(), adin_tcpip_send_terminate(), adin_tcpip_standby(), adin_thread_create(), adin_thread_process(), args_needed_exit(), build_state2gs(), build_wchmm2(), charconv_iconv_setup(), charconv_libjcode_setup(), charconv_win32(), charconv_win32_setup(), check_format(), check_header(), check_hmm_limit(), check_hmm_options(), check_specs(), CMN_load_from_file(), CMN_save_to_file(), codebook_add(), compaction_successor(), config_file_parse(), configure_param(), decode_output_selection(), dens_add(), dfa_symbol_lookup(), error_missing_left_triphone(), error_missing_right_triphone(), final_fusion(), finalize_1st_pass(), get_back_trellis_proceed(), get_dens_data(), get_line(), get_state_data(), get_trans_data(), get_var_data(), gms_init(), guess_abs_e_location(), guess_basenum(), guess_if_cd_hmm(), hmm_add_physical_to_logical(), hmm_add_pseudo_phones(), htk_hmm_set_pause_model(), htk_hmmdata_add(), init_dfa(), init_hmminfo(), init_ngram_arpa(), init_ngram_bin(), init_voca(), initialize_dict(), initialize_GMM(), initialize_GSHMM(), initialize_HMM(), m_errexit(), main_recognition_loop(), make_connection(), make_connection_unix(), make_costbl_hamming(), make_costbl_makemfcc(), make_dfa_voca_ref(), make_fft_table(), make_log_tbl(), make_sintbl_wcep(), make_successor_list(), make_voca_ref(), multigram_add_prefix_filelist(), mybmalloc_set_param(), NA_standby(), new_param_check_and_adjust(), new_SS_load_from_file(), new_str2wordseq(), new_wav2mfcc(), ngram_compact_bigram_context(), ngram_firstwords(), ngram_read_arpa(), ngram_read_bin(), opt_parse(), param_qualstr2code(), print_1pass_result(), put_voca_err(), rd(), rdhmmdef(), rdhmmlist(), read_binhmm(), read_global_opt(), read_param(), record_sample_close(), select_param_vmark(), select_result_output(), set_and_check_total_info(), set_bigram(), set_trigram(), set_unigram(), set_unknown_id(), setup_wav(), state_add(), state_read(), tmix_create_codebook_index(), trans_add(), trans_ok_p(), triphone_callback_normal(), triphone_callback_right(), ttyout_pass1_begin(), ttyout_status_recready(), usage(), var_add(), var_read(), viterbi_segment(), voca_load_htkdict_line(), voca_lookup_wid(), voca_mono2tri(), wchmm_add_word(), wchmm_fbs(), wchmm_index_ststart(), write_header(), wrwav_close(), wt(), と xrun_recovery(). |
|
Flush text message. The output device can be changed by set_print_func().
j_printf.c の 141 行で定義されています。 参照元 main_recognition_loop(), ttyout_pass1_current(), ttyout_pass2(), ttyout_pass2_end(), と wchmm_fbs(). |
|
Generic function to send a formatted message to client module.
j_printf.c の 162 行で定義されています。 参照元 m_errexit(), m_exit(), msock_gmm(), msock_pass1_current(), msock_pass1_final(), msock_pass2(), msock_pass2_begin(), msock_pass2_end(), msock_pass2_failed(), msock_rejected(), msock_status_param(), msock_status_process_offline(), msock_status_process_online(), msock_status_recend(), msock_status_recready(), msock_status_recstart(), msock_word_out1(), msock_word_out2(), multigram_activate(), multigram_deactivate(), multigram_delete(), と send_gram_info(). |
|
Output error message and exit the program.
j_printf.c の 212 行で定義されています。 参照元 accept_from(), add_successor(), add_unigram(), adin_initialize(), adin_mic_standby(), adin_tcpip_end(), adin_thread_create(), aptree_remove_entry(), aptree_search_data(), build_wchmm2(), charconv_iconv(), check_header(), check_specs(), checkdir(), checkpath(), config_file_parse(), cpair_append(), dfa_pause_word_append(), extract_cpair(), final_fusion(), first_token(), get_back_trellis_proceed(), getl_fd(), getl_sd(), hmm_add_pseudo_phones_sub(), init_dfa(), init_hmminfo(), init_ngram_arpa(), init_ngram_bin(), InitFBank(), initialize_dict(), initialize_HMM(), lookup_word(), main(), main_module_loop(), main_recognition_loop(), make_dfa_voca_ref(), make_record_filename(), mark_exclude_vector(), mark_word_edge(), match_successor(), max_successor_prob_iw(), mfcfilelist_nextfile(), multigram_read_file(), mycalloc(), mymalloc(), myrealloc(), new_make_word_hmm_with_lm(), new_wav2mfcc(), newnode(), next_token(), ngram_compact_bigram_context(), ngram_nextwords(), ngram_read_arpa(), ngram_read_bin(), opt_parse(), opt_terminate(), outprob_cd(), outprob_style(), print_info(), ptree_search_data(), rderr(), rdhmmdef(), rdhmmlist(), rdn(), rdn_str(), RealTimeInit(), RealTimePipeLinePrepare(), record_sample_close(), record_sample_open(), record_sample_write(), regist_cdset(), rest_token(), scan_word(), set_bigram(), set_trigram(), set_unigram(), setup_result_msock(), totalstatelen(), trace_backptr(), trans_ok_p(), Wav2MFCC(), wchmm_add_word(), wchmm_fbs(), wchmm_link_hmm(), WeightCepstrum(), winfo_expand(), WMP_init(), wrt(), wt_data(), wt_dens(), wt_state(), と wt_tmix(). |
|
Register a function that should be executed just before application error exit.
j_printf.c の 200 行で定義されています。 参照元 system_bootup(). |
|
Exit the program. j_printf.c の 245 行で定義されています。 参照元 detailed_help(), gmm_init(), main_recognition_loop(), opt_parse(), と usage(). |
|
Register a function that should be executed just before application ends.
j_printf.c の 235 行で定義されています。 参照元 system_bootup(). |
|
Generic function to extract tokens from strings, with quotation handling. The usage is as the same as strtok.
mystrtok.c の 50 行で定義されています。 参照元 mystrtok(), mystrtok_movetonext(), mystrtok_quote(), と voca_load_htkdict_line(). |
|
Extract tokens considering quotation by double quotation mark.
mystrtok.c の 104 行で定義されています。 参照元 read_token(). |
|
Extract tokens, not considering quotation, just as the same as strtok.
mystrtok.c の 118 行で定義されています。 |
|
Just move to the beginning of the next token, without modifying the str.
mystrtok.c の 132 行で定義されています。 |