#include <julius.h>
Include dependency graph for m_jconf.c:

Go to the source code of this file.
Defines | |
| #define | ISTOKEN(A) (A == ' ' || A == '\t' || A == '\n') |
| Determine token characters. | |
Functions | |
| static char * | fgets_jconf (char *buf, int size, FILE *fp) |
| line reading function for jconf file. | |
| void | get_dirname (char *path) |
| Get directory name from a path name of a file. | |
| void | config_file_parse (char *conffile) |
Definition in file m_jconf.c.
| static char* fgets_jconf | ( | char * | buf, | |
| int | size, | |||
| FILE * | fp | |||
| ) | [static] |
line reading function for jconf file.
This function has capability of character escaping and newline codes on Win/Mac. Blank line will be skipped and newline characters will be stripped.
| buf | [out] buffer to store the read text per line | |
| size | [in] size of buf in bytes | |
| fp | [in] file pointer |
Definition at line 61 of file m_jconf.c.
Referenced by config_file_parse().
| void get_dirname | ( | char * | path | ) |
Get directory name from a path name of a file.
The trailing slash will be left, and the given buffer will be modified.
| path | [i/o] file path name, will be modified to directory name |
Definition at line 127 of file m_jconf.c.
Referenced by config_file_parse().
| void config_file_parse | ( | char * | conffile | ) |
Read and parse a jconf file, and set the specified option values.
| conffile | [in] jconf file path name |
Definition at line 159 of file m_jconf.c.
Referenced by opt_parse().
1.5.0