libsent/src/voca/voca_malloc.c File Reference

Memory allocation of word dictionary information. More...

#include <sent/stddefs.h>
#include <sent/vocabulary.h>

Include dependency graph for voca_malloc.c:

Go to the source code of this file.

Functions

WORD_INFOword_info_new ()
void word_info_free (WORD_INFO *winfo)
void winfo_init (WORD_INFO *winfo)
void winfo_expand (WORD_INFO *winfo)


Detailed Description

Memory allocation of word dictionary information.

Author:
Akinobu LEE
Date:
Fri Feb 18 21:33:29 2005
Revision
1.4

Definition in file voca_malloc.c.


Function Documentation

WORD_INFO* word_info_new (  ) 

Allocate a new word dictionary structure.

Returns:
pointer to the newly allocated WORD_INFO.

Definition at line 34 of file voca_malloc.c.

Referenced by initialize_dict(), msock_read_grammar(), and multigram_read_file().

void word_info_free ( WORD_INFO winfo  ) 

Free all informations in the WORD_INFO.

Parameters:
winfo [i/o] word dictionary data to be freed.

Definition at line 50 of file voca_malloc.c.

Referenced by multigram_exec_delete().

void winfo_init ( WORD_INFO winfo  ) 

Initialize a new word dictionary structure.

Parameters:
winfo [i/o] word dictionary to be initialized.

Definition at line 75 of file voca_malloc.c.

Referenced by voca_load_htkdict(), voca_load_htkdict_fd(), and voca_load_htkdict_sd().

void winfo_expand ( WORD_INFO winfo  ) 

Expand the word dictionary.

Parameters:
winfo [i/o] word dictionary to be expanded.

Definition at line 105 of file voca_malloc.c.

Referenced by voca_append(), voca_append_htkdict(), voca_load_htkdict(), voca_load_htkdict_fd(), and voca_load_htkdict_sd().


Generated on Tue Dec 26 12:55:14 2006 for Julian by  doxygen 1.5.0