X_mngr.c File Reference

#include "sxversion.h"
#include "sxcommon.h"
#include "X.h"
Include dependency graph for X_mngr.c:

Go to the source code of this file.

Defines

#define WRITE(p, l)   if ((bytes = (l)) > 0 && ((size_t)write (F_X, p, bytes) != bytes)) return SXFALSE
#define READ(p, l)   if ((bytes = (l)) > 0 && ((size_t)read (F_X, p, bytes) != bytes)) return SXFALSE

Functions

void sxtrap (char *caller, char *message)
static void X_cpy (struct X_elem *old, struct X_elem *new, SXINT old_size)
static void X_system_oflw (SXINT old_top)
static SXINT X_cmp (SXINT x)
static SXUINT X_scrmbl (SXINT x)
static SXINT X_assign (SXINT x)
void X_alloc (X_header *header, char *name, SXINT init_elem_nb, SXINT average_list_nb_per_bucket, void(*user_oflw)(SXINT, SXINT), FILE *stat_file)
void X_clear (X_header *header)
void X_stat (FILE *stat_file, X_header *header)
void X_free (X_header *header)
SXINT X_is_set (X_header *header, SXINT X)
void X_gc (X_header *header)
SXBOOLEAN X_set (X_header *header, SXINT X, SXINT *ref)
void X_lock (X_header *header)
SXBOOLEAN X_write (X_header *header, sxfiledesc_t F_X)
SXBOOLEAN X_read (X_header *header, sxfiledesc_t F_X, char *name, void(*user_oflw)(SXINT, SXINT), FILE *stat_file)
void X_array_to_c (X_header *header, FILE *F_X, char *name)
void X_header_to_c (X_header *header, FILE *F_X, char *name)
void X_to_c (X_header *header, FILE *F_X, char *name, SXBOOLEAN is_static)
void X_reuse (X_header *header, char *name, void(*user_oflw)(SXINT, SXINT), FILE *stat_file)

Variables

char WHAT_X_MNGR [] = "@(#)SYNTAX - $Id: X_mngr.c 1416 2008-06-25 14:42:55Z rlacroix $" WHAT_DEBUG
static SXINT X_
static X_header * HEADER_

Define Documentation

#define READ ( p,
 )     if ((bytes = (l)) > 0 && ((size_t)read (F_X, p, bytes) != bytes)) return SXFALSE
#define WRITE ( p,
 )     if ((bytes = (l)) > 0 && ((size_t)write (F_X, p, bytes) != bytes)) return SXFALSE

Function Documentation

void sxtrap ( char caller,
char message 
)

Definition at line 33 of file sxtrap.c.

void X_alloc ( X_header *  header,
char name,
SXINT  init_elem_nb,
SXINT  average_list_nb_per_bucket,
void(*)(SXINT, SXINT)  user_oflw,
FILE *  stat_file 
)
void X_array_to_c ( X_header *  header,
FILE *  F_X,
char name 
)

Definition at line 255 of file X_mngr.c.

References X_root_array_to_c().

Referenced by sxlist_array_to_c(), and X_to_c().

static SXINT X_assign ( SXINT  x  )  [static]

Definition at line 96 of file X_mngr.c.

References HEADER_, and X_.

Referenced by X_alloc(), X_read(), and X_reuse().

void X_clear ( X_header *  header  ) 
static SXINT X_cmp ( SXINT  x  )  [static]

Definition at line 71 of file X_mngr.c.

References HEADER_, and X_.

Referenced by X_alloc(), X_read(), and X_reuse().

static void X_cpy ( struct X_elem *  old,
struct X_elem *  new,
SXINT  old_size 
) [static]

Definition at line 41 of file X_mngr.c.

Referenced by X_system_oflw().

void X_free ( X_header *  header  ) 
void X_gc ( X_header *  header  ) 

Definition at line 168 of file X_mngr.c.

References HEADER_, and X_root_gc().

void X_header_to_c ( X_header *  header,
FILE *  F_X,
char name 
)

Definition at line 274 of file X_mngr.c.

References X_root_header_to_c().

Referenced by sxlist_header_to_c(), and X_to_c().

SXINT X_is_set ( X_header *  header,
SXINT  X 
)
void X_lock ( X_header *  header  ) 

Definition at line 202 of file X_mngr.c.

References HEADER_, and X_root_lock().

Referenced by XxY_lock(), and XxYxZ_lock().

SXBOOLEAN X_read ( X_header *  header,
sxfiledesc_t  F_X,
char name,
void(*)(SXINT, SXINT)  user_oflw,
FILE *  stat_file 
)

Definition at line 231 of file X_mngr.c.

References bytes, READ, SXFALSE, SXTRUE, X_assign(), X_cmp(), X_root_read(), X_scrmbl(), and X_system_oflw().

Referenced by sxlist_read(), XxY_read(), and XxYxZ_read().

void X_reuse ( X_header *  header,
char name,
void(*)(SXINT, SXINT)  user_oflw,
FILE *  stat_file 
)

Definition at line 294 of file X_mngr.c.

References X_assign(), X_cmp(), X_root_reuse(), X_scrmbl(), and X_system_oflw().

Referenced by sxlist_reuse(), XxY_reuse(), and XxYxZ_reuse().

static SXUINT X_scrmbl ( SXINT  x  )  [static]

Definition at line 89 of file X_mngr.c.

References HEADER_, and X_.

Referenced by X_alloc(), X_read(), and X_reuse().

SXBOOLEAN X_set ( X_header *  header,
SXINT  X,
SXINT *  ref 
)
void X_stat ( FILE *  stat_file,
X_header *  header 
)

Definition at line 132 of file X_mngr.c.

References X_root_stat().

Referenced by XxY_stat(), and XxYxZ_stat().

static void X_system_oflw ( SXINT  old_top  )  [static]

Definition at line 50 of file X_mngr.c.

References HEADER_, and X_cpy().

Referenced by X_alloc(), X_read(), and X_reuse().

void X_to_c ( X_header *  header,
FILE *  F_X,
char name,
SXBOOLEAN  is_static 
)

Definition at line 284 of file X_mngr.c.

References X_array_to_c(), and X_header_to_c().

Referenced by XxY_array_to_c(), and XxYxZ_array_to_c().

SXBOOLEAN X_write ( X_header *  header,
sxfiledesc_t  F_X 
)

Definition at line 215 of file X_mngr.c.

References bytes, SXFALSE, SXTRUE, WRITE, and X_root_write().

Referenced by sxlist_write(), XxY_write(), and XxYxZ_write().


Variable Documentation

X_header* HEADER_ [static]

Definition at line 38 of file X_mngr.c.

Referenced by X_assign(), X_cmp(), X_gc(), X_is_set(), X_lock(), X_scrmbl(), X_set(), and X_system_oflw().

char WHAT_X_MNGR[] = "@(#)SYNTAX - $Id: X_mngr.c 1416 2008-06-25 14:42:55Z rlacroix $" WHAT_DEBUG

Definition at line 33 of file X_mngr.c.

SXINT X_ [static]

Definition at line 37 of file X_mngr.c.

Referenced by X_assign(), X_cmp(), X_is_set(), X_scrmbl(), and X_set().


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