sxsem_mngr.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include "earley.h"
#include "sxspf.h"
#include "varstr.h"
#include <setjmp.h>
Include dependency graph for sxsem_mngr.c:

Go to the source code of this file.

Defines

#define DEFAULT_MAP   "l"
#define OPTION(opt)   (1 << (opt - 1))
#define noOPTION(opt)   (~OPTION (opt))
#define OPT_NB   ((sizeof(option_tbl)/sizeof(*option_tbl))-1)
#define UNKNOWN_ARG   0
#define MAP   1

Functions

void sxexit_timeout ()
static SXINT option_get_kind (char *arg)
static charoption_get_text (SXINT kind)
static SXBOOLEAN call_sem_pass (struct for_semact *call_sem_pass_for_semact)
static SXBOOLEAN call_sem_final (struct for_semact *call_sem_final_for_semact)
static SXBOOLEAN call_sem_close (struct for_semact *call_sem_close_for_semact)
static SXBOOLEAN call_sem_open (struct for_semact *call_sem_open_for_semact)
static charsxsem_mngr_ME (void)
static charsxsem_mngr_args_usage (void)
static SXBOOLEAN sxsem_mngr_args_decode (int *pargnum, int argc, char *argv[])
static SXINT sxsem_mngr_sem_pass (void)
static void sxsem_mngr_init (void)
static void sxsem_mngr_final (void)
static void sxsem_mngr_close (void)
static void raz_for_semact (void)
static charget_cur_sem_name (void)
static void memoflw_mngr (void)
static void sxtrap_mngr (void)
static void jump_to_next_sentence_because_of_timeout (int signal_val)
static void timeout_mngr (int sigid)
static void sxsem_mngr_open (void)
void sxsem_mngr_semact (void)

Variables

static char ME [] = "sxsem_mngr"
char WHAT_SXSEM_MNGR [] = "@(#)SYNTAX - $Id: sxsem_mngr.c 1796 2009-12-10 10:45:17Z sagot $" WHAT_DEBUG
static struct for_semact
weights_for_semact
structure_for_semact 
chunker_for_semact
static struct for_semact
proper_for_semact
nbest_for_semact 
exact_nbest_for_semact
static struct for_semact
lfg_for_semact
output_for_semact 
usersem_for_semact
static VARSTR vstr_usage
static VARSTR vstr_ME
static charmap_spec
static charcur_map_spec
static char cur_spec = '\1'
static SXBA * status_stack
static SXINT status_stack_size
static char map_spec_default [] = DEFAULT_MAP
static char Usage []
SXBOOLEAN weights_sem_pass_arg
SXBOOLEAN structure_sem_pass_arg
SXBOOLEAN chunker_sem_pass_arg
SXBOOLEAN proper_sem_pass_arg
char output_sem_pass_arg
static charoption_tbl []
static SXINT option_kind []
void(* free_after_long_jmp )(void)
jmp_buf environment_before_current_sentence

Define Documentation

#define DEFAULT_MAP   "l"

Definition at line 89 of file sxsem_mngr.c.

#define MAP   1

Definition at line 103 of file sxsem_mngr.c.

Referenced by sxsem_mngr_args_decode().

#define noOPTION ( opt   )     (~OPTION (opt))

Definition at line 98 of file sxsem_mngr.c.

#define OPT_NB   ((sizeof(option_tbl)/sizeof(*option_tbl))-1)

Definition at line 100 of file sxsem_mngr.c.

#define OPTION ( opt   )     (1 << (opt - 1))

Definition at line 97 of file sxsem_mngr.c.

#define UNKNOWN_ARG   0

Definition at line 102 of file sxsem_mngr.c.


Function Documentation

static SXBOOLEAN call_sem_close ( struct for_semact *  call_sem_close_for_semact  )  [static]

Definition at line 201 of file sxsem_mngr.c.

References SXFALSE, sxmem_signatures_free(), and SXTRUE.

Referenced by sxsem_mngr_close().

static SXBOOLEAN call_sem_final ( struct for_semact *  call_sem_final_for_semact  )  [static]

Definition at line 183 of file sxsem_mngr.c.

References SXFALSE, sxmem_signatures_raz(), and SXTRUE.

Referenced by sxsem_mngr_final().

static SXBOOLEAN call_sem_open ( struct for_semact *  call_sem_open_for_semact  )  [static]

Definition at line 221 of file sxsem_mngr.c.

References SXFALSE, sxmem_signatures_allocate(), and SXTRUE.

Referenced by sxsem_mngr_open().

static SXBOOLEAN call_sem_pass ( struct for_semact *  call_sem_pass_for_semact  )  [static]

Definition at line 153 of file sxsem_mngr.c.

References SXBOOLEAN, SXFALSE, and sxmem_signatures_raz().

Referenced by sxsem_mngr_sem_pass().

static char* get_cur_sem_name ( void   )  [static]

Definition at line 547 of file sxsem_mngr.c.

References cur_spec, and sxstderr.

Referenced by memoflw_mngr(), sxtrap_mngr(), and timeout_mngr().

static void jump_to_next_sentence_because_of_timeout ( int  signal_val  )  [static]

Definition at line 712 of file sxsem_mngr.c.

References environment_before_current_sentence.

Referenced by timeout_mngr().

static void memoflw_mngr ( void   )  [static]

Definition at line 614 of file sxsem_mngr.c.

References get_cur_sem_name(), is_print_time, SXFALSE, and sxtime().

static SXINT option_get_kind ( char arg  )  [static]

Definition at line 121 of file sxsem_mngr.c.

References OPT_NB, option_kind, option_tbl, and UNKNOWN_ARG.

Referenced by sxsem_mngr_args_decode().

static char* option_get_text ( SXINT  kind  )  [static]

Definition at line 141 of file sxsem_mngr.c.

References OPT_NB, option_kind, and option_tbl.

Referenced by sxsem_mngr_args_decode().

static void raz_for_semact ( void   )  [static]

Definition at line 525 of file sxsem_mngr.c.

References sxexit_timeout().

Referenced by sxsem_mngr_semact().

void sxexit_timeout (  ) 
static SXBOOLEAN sxsem_mngr_args_decode ( int *  pargnum,
int  argc,
char argv[] 
) [static]
static char* sxsem_mngr_args_usage ( void   )  [static]
static void sxsem_mngr_close ( void   )  [static]
static void sxsem_mngr_final ( void   )  [static]
static void sxsem_mngr_init ( void   )  [static]
static char* sxsem_mngr_ME ( void   )  [static]
static void sxsem_mngr_open ( void   )  [static]
static SXINT sxsem_mngr_sem_pass ( void   )  [static]
void sxsem_mngr_semact ( void   ) 
static void sxtrap_mngr ( void   )  [static]

Definition at line 627 of file sxsem_mngr.c.

References get_cur_sem_name(), is_print_time, SXFALSE, and sxtime().

static void timeout_mngr ( int  sigid  )  [static]

Variable Documentation

struct for_semact weights_for_semact structure_for_semact chunker_for_semact [static]

Definition at line 107 of file sxsem_mngr.c.

Referenced by sxsem_mngr_sem_pass().

char * cur_map_spec [static]

Definition at line 45 of file sxsem_mngr.c.

Referenced by sxsem_mngr_init(), sxsem_mngr_sem_pass(), and timeout_mngr().

char cur_spec = '\1' [static]
struct for_semact proper_for_semact nbest_for_semact exact_nbest_for_semact [static]
void(* free_after_long_jmp)(void)
char* map_spec [static]

Definition at line 45 of file sxsem_mngr.c.

Referenced by sxsem_mngr_args_decode(), sxsem_mngr_init(), and sxsem_mngr_semact().

char map_spec_default[] = DEFAULT_MAP [static]

Definition at line 91 of file sxsem_mngr.c.

Referenced by sxsem_mngr_semact().

char ME[] = "sxsem_mngr" [static]

Definition at line 26 of file sxsem_mngr.c.

Referenced by sxsem_mngr_args_decode(), sxsem_mngr_sem_pass(), and timeout_mngr().

SXINT option_kind[] [static]
Initial value:
 {
    UNKNOWN_ARG,
    MAP, MAP,
}

Definition at line 116 of file sxsem_mngr.c.

Referenced by option_get_kind(), and option_get_text().

char* option_tbl[] [static]
Initial value:
 {
    "",
    "m", "map",
}

Definition at line 111 of file sxsem_mngr.c.

Referenced by option_get_kind(), and option_get_text().

Definition at line 109 of file sxsem_mngr.c.

Referenced by output_sem_pass(), and sxsem_mngr_sem_pass().

Definition at line 108 of file sxsem_mngr.c.

Referenced by sxsem_mngr_sem_pass().

SXBA* status_stack [static]

Definition at line 48 of file sxsem_mngr.c.

Referenced by sxsem_mngr_init(), sxsem_mngr_sem_pass(), and timeout_mngr().

SXINT status_stack_size [static]

Definition at line 49 of file sxsem_mngr.c.

Referenced by sxsem_mngr_init(), and sxsem_mngr_sem_pass().

Definition at line 106 of file sxsem_mngr.c.

Referenced by sxsem_mngr_sem_pass().

char Usage[] [static]
Initial value:
 "\
\t\t-m spec, -map spec (default -map " DEFAULT_MAP ")\n\
"

Definition at line 93 of file sxsem_mngr.c.

Referenced by sxsem_mngr_args_usage().

struct for_semact lfg_for_semact output_for_semact usersem_for_semact [static]
VARSTR vstr_ME [static]

Definition at line 44 of file sxsem_mngr.c.

Referenced by sxsem_mngr_ME(), and sxsem_mngr_sem_pass().

VARSTR vstr_usage [static]

Definition at line 44 of file sxsem_mngr.c.

Referenced by sxsem_mngr_args_usage(), and sxsem_mngr_sem_pass().

Definition at line 105 of file sxsem_mngr.c.

Referenced by sxsem_mngr_sem_pass().

char WHAT_SXSEM_MNGR[] = "@(#)SYNTAX - $Id: sxsem_mngr.c 1796 2009-12-10 10:45:17Z sagot $" WHAT_DEBUG

Definition at line 39 of file sxsem_mngr.c.


Generated on Wed Apr 21 16:39:39 2010 for syntax-6.0b7 by  doxygen 1.6.1