XH_mngr.c File Reference

#include "sxversion.h"
#include <stdio.h>
#include "XH.h"
#include "sxcommon.h"
Include dependency graph for XH_mngr.c:

Go to the source code of this file.

Defines

#define min(x, y)   ((x)<=(y) ? (x) : (y))
#define max(x, y)   ((x)>=(y) ? (x) : (y))

Functions

void sxtrap (char *caller, char *message)
SXINT sxnext_prime (SXINT germe)
static void XH_sat_mess (FILE *stat_file, char *header_name, char *field_name, SXINT old_size, SXINT new_size)
void XH_alloc (XH_header *header, char *name, SXINT init_elem_nb, SXINT average_list_nb_per_bucket, SXINT average_list_size, void(*oflw)(SXINT, SXINT), FILE *stat_file)
static void XH_oflw_copy (XH_header *header)
SXBOOLEAN XH_oflw (XH_header *header)
void XH_clear (XH_header *header)
void XH_stat (FILE *stat_file, XH_header *header)
void XH_free (XH_header *header)
SXINT XH_is_set (XH_header *header)
SXBOOLEAN XH_set (XH_header *header, SXINT *result)
void XH_lock (XH_header *header)
void XH_pack (XH_header *header, SXINT n, void(*swap_ft)(SXINT, SXINT))
void XH2c (XH_header *header, FILE *F_XH, char *name, SXBOOLEAN is_static)

Variables

static char ME [] = "XH_mngr"
char WHAT_XH_MNGR [] = "@(#)SYNTAX - $Id: XH_mngr.c 1672 2008-12-05 12:18:19Z sagot $" WHAT_DEBUG

Define Documentation

#define max ( x,
 )     ((x)>=(y) ? (x) : (y))
#define min ( x,
 )     ((x)<=(y) ? (x) : (y))

Function Documentation

SXINT sxnext_prime ( SXINT  germe  ) 
void sxtrap ( char caller,
char message 
)

Definition at line 33 of file sxtrap.c.

void XH2c ( XH_header *  header,
FILE *  F_XH,
char name,
SXBOOLEAN  is_static 
)

Definition at line 517 of file XH_mngr.c.

References top.

Referenced by process_weights().

void XH_alloc ( XH_header *  header,
char name,
SXINT  init_elem_nb,
SXINT  average_list_nb_per_bucket,
SXINT  average_list_size,
void(*)(SXINT, SXINT)  oflw,
FILE *  stat_file 
)
void XH_clear ( XH_header *  header  ) 

Definition at line 128 of file XH_mngr.c.

References SXFALSE, and top.

Referenced by bottom_upG_optimization(), factorize_OR(), nbest_allocate(), remake_structures(), and sxspell_do_it().

void XH_free ( XH_header *  header  ) 
SXINT XH_is_set ( XH_header *  header  ) 

Definition at line 215 of file XH_mngr.c.

void XH_lock ( XH_header *  header  ) 

Definition at line 425 of file XH_mngr.c.

References SXTRUE.

Referenced by sxindparser().

SXBOOLEAN XH_oflw ( XH_header *  header  ) 

Definition at line 101 of file XH_mngr.c.

References sxtrap(), SXTRUE, XH_oflw_copy(), and XH_sat_mess().

static void XH_oflw_copy ( XH_header *  header  )  [static]

Definition at line 75 of file XH_mngr.c.

Referenced by XH_oflw(), and XH_set().

void XH_pack ( XH_header *  header,
SXINT  n,
void(*)(SXINT, SXINT)  swap_ft 
)

Definition at line 447 of file XH_mngr.c.

References p, and top.

static void XH_sat_mess ( FILE *  stat_file,
char header_name,
char field_name,
SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 42 of file XH_mngr.c.

References ME.

Referenced by XH_oflw(), and XH_set().

SXBOOLEAN XH_set ( XH_header *  header,
SXINT *  result 
)
void XH_stat ( FILE *  stat_file,
XH_header *  header 
)

Definition at line 147 of file XH_mngr.c.

References max, min, n, and top.

Referenced by XH_free().


Variable Documentation

char ME[] = "XH_mngr" [static]

Definition at line 29 of file XH_mngr.c.

Referenced by XH_sat_mess().

char WHAT_XH_MNGR[] = "@(#)SYNTAX - $Id: XH_mngr.c 1672 2008-12-05 12:18:19Z sagot $" WHAT_DEBUG

Definition at line 36 of file XH_mngr.c.


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