Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

m_jconf.c File Reference

Read in a jconf file and process them. More...

#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)


Detailed Description

Read in a jconf file and process them.

Author:
Akinobu Lee
Date:
Thu May 12 14:16:18 2005
Revision
1.1.1.1

Definition in file m_jconf.c.


Function Documentation

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.

Parameters:
buf [out] buffer to store the read text per line
size [in] size of buf in bytes
fp [in] file pointer
Returns:
buf on success, or NULL when encountered EOF and no further input.

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.

Parameters:
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(), and multigram_add_prefix_filelist().

void config_file_parse char *  conffile  ) 
 

Read and parse a jconf file, and set the specified option values.

Parameters:
conffile [in] jconf file path name

Definition at line 159 of file m_jconf.c.

Referenced by opt_parse().


Generated on Tue Mar 28 16:17:59 2006 for Julius by  doxygen 1.4.2