XxYxZ_mngr.c File Reference

#include "sxversion.h"
#include "sxcommon.h"
#include "XxYxZ.h"
#include <memory.h>
#include <stdlib.h>
Include dependency graph for XxYxZ_mngr.c:

Go to the source code of this file.

Defines

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

Functions

void sxperror (char *)
void sxtrap (char *caller, char *message)
SXINT sxlast_bit (SXINT nb)
static void XxYxZ_cpy (struct XxYxZ_elem *old, struct XxYxZ_elem *new, SXINT old_size)
static void XxYxZ_assoc_oflw (SXINT old_size, SXINT new_size)
static void XxYxZ_system_oflw (SXINT old_top)
static SXINT XxYxZ_cmp (SXINT x)
static SXUINT XxYxZ_scrmbl (SXINT x)
static SXINT XxYxZ_assign (SXINT x)
static SXINT XYZ_orig (SXINT x, SXINT kind)
static SXINT XxYxZ_suppress (SXINT erased_lnk_hd)
void XxYxZ_alloc (XxYxZ_header *header, char *name, SXINT init_elem_nb, SXINT average_list_nb_per_bucket, SXINT *average_XYZ_assoc, void(*user_oflw)(SXINT, SXINT), FILE *stat_file)
void XxYxZ_clear (XxYxZ_header *header)
void XxYxZ_stat (FILE *stat_file, XxYxZ_header *header)
void XxYxZ_free (XxYxZ_header *header)
SXINT XxYxZ_is_set (XxYxZ_header *header, SXINT X, SXINT Y, SXINT Z)
void XxYxZ_gc (XxYxZ_header *header)
SXBOOLEAN XxYxZ_set (XxYxZ_header *header, SXINT X, SXINT Y, SXINT Z, SXINT *ref)
void XxYxZ_lock (XxYxZ_header *header)
void XxYxZ_unlock (XxYxZ_header *header)
SXBOOLEAN XxYxZ_write (XxYxZ_header *header, sxfiledesc_t F_XxYxZ)
SXBOOLEAN XxYxZ_read (XxYxZ_header *header, sxfiledesc_t F_XxYxZ, char *name, void(*user_oflw)(SXINT, SXINT), FILE *stat_file)
void XxYxZ_array_to_c (XxYxZ_header *header, FILE *F_XxYxZ, char *name)
void XxYxZ_header_to_c (XxYxZ_header *header, FILE *F_XxYxZ, char *name)
void XxYxZ_to_c (XxYxZ_header *header, FILE *F_XxYxZ, char *name, SXBOOLEAN is_static)
void XxYxZ_reuse (XxYxZ_header *header, char *name, void(*user_oflw)(SXINT, SXINT), FILE *stat_file)

Variables

static char ME [] = "XxYxZ_mngr"
char WHAT_XXYXZ_MNGR [] = "@(#)SYNTAX - $Id: XxYxZ_mngr.c 1416 2008-06-25 14:42:55Z rlacroix $" WHAT_DEBUG
static SXINT X_
static SXINT Y_
static SXINT Z_
static XxYxZ_header * HEADER_
static SXINT KIND_

Define Documentation

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

Function Documentation

SXINT sxlast_bit ( SXINT  nb  ) 
void sxperror ( char  ) 

Definition at line 47 of file sxperror.c.

References ERRORSTRING, and sxstderr.

void sxtrap ( char caller,
char message 
)

Definition at line 33 of file sxtrap.c.

References sxexit(), and sxstderr.

void XxYxZ_alloc ( XxYxZ_header *  header,
char name,
SXINT  init_elem_nb,
SXINT  average_list_nb_per_bucket,
SXINT *  average_XYZ_assoc,
void(*)(SXINT, SXINT)  user_oflw,
FILE *  stat_file 
)
void XxYxZ_array_to_c ( XxYxZ_header *  header,
FILE *  F_XxYxZ,
char name 
)

Definition at line 796 of file XxYxZ_mngr.c.

References SXTRUE, X_root_array_to_c(), X_to_c(), and XxY_to_c().

Referenced by XxYxZ_to_c().

static SXINT XxYxZ_assign ( SXINT  x  )  [static]

Definition at line 159 of file XxYxZ_mngr.c.

References HEADER_, KIND_, ME, SXBOOLEAN, sxtrap(), X_, X_set(), XxY_set(), Y_, and Z_.

Referenced by XxYxZ_alloc(), XxYxZ_read(), and XxYxZ_reuse().

static void XxYxZ_assoc_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 58 of file XxYxZ_mngr.c.

References HEADER_, KIND_, and X_root_int_cpy().

Referenced by XxYxZ_alloc(), XxYxZ_read(), and XxYxZ_reuse().

void XxYxZ_clear ( XxYxZ_header *  header  ) 
static SXINT XxYxZ_cmp ( SXINT  x  )  [static]

Definition at line 114 of file XxYxZ_mngr.c.

References HEADER_, X_, Y_, and Z_.

Referenced by XxYxZ_alloc(), XxYxZ_read(), and XxYxZ_reuse().

static void XxYxZ_cpy ( struct XxYxZ_elem *  old,
struct XxYxZ_elem *  new,
SXINT  old_size 
) [static]

Definition at line 49 of file XxYxZ_mngr.c.

Referenced by XxYxZ_system_oflw().

void XxYxZ_free ( XxYxZ_header *  header  ) 
void XxYxZ_gc ( XxYxZ_header *  header  ) 

Definition at line 561 of file XxYxZ_mngr.c.

References HEADER_, X_root_gc(), and XxYxZ_suppress().

void XxYxZ_header_to_c ( XxYxZ_header *  header,
FILE *  F_XxYxZ,
char name 
)

Definition at line 875 of file XxYxZ_mngr.c.

References SXBOOLEAN, and X_root_header_to_c().

Referenced by XxYxZ_to_c().

SXINT XxYxZ_is_set ( XxYxZ_header *  header,
SXINT  X,
SXINT  Y,
SXINT  Z 
)

Definition at line 544 of file XxYxZ_mngr.c.

References HEADER_, X_, X_root_is_set(), Y_, and Z_.

Referenced by modify_dag().

void XxYxZ_lock ( XxYxZ_header *  header  ) 

Definition at line 599 of file XxYxZ_mngr.c.

References HEADER_, KIND_, X_lock(), X_root_lock(), and XxY_lock().

SXBOOLEAN XxYxZ_read ( XxYxZ_header *  header,
sxfiledesc_t  F_XxYxZ,
char name,
void(*)(SXINT, SXINT)  user_oflw,
FILE *  stat_file 
)
void XxYxZ_reuse ( XxYxZ_header *  header,
char name,
void(*)(SXINT, SXINT)  user_oflw,
FILE *  stat_file 
)
static SXUINT XxYxZ_scrmbl ( SXINT  x  )  [static]

Definition at line 149 of file XxYxZ_mngr.c.

References HEADER_, X_, Y_, and Z_.

Referenced by XxYxZ_alloc(), XxYxZ_read(), and XxYxZ_reuse().

SXBOOLEAN XxYxZ_set ( XxYxZ_header *  header,
SXINT  X,
SXINT  Y,
SXINT  Z,
SXINT *  ref 
)
void XxYxZ_stat ( FILE *  stat_file,
XxYxZ_header *  header 
)

Definition at line 413 of file XxYxZ_mngr.c.

References n, X_root_stat(), X_stat(), and XxY_stat().

static SXINT XxYxZ_suppress ( SXINT  erased_lnk_hd  )  [static]

Definition at line 269 of file XxYxZ_mngr.c.

References HEADER_, and XYZ_orig().

Referenced by XxYxZ_alloc(), XxYxZ_gc(), XxYxZ_read(), and XxYxZ_reuse().

static void XxYxZ_system_oflw ( SXINT  old_top  )  [static]

Definition at line 75 of file XxYxZ_mngr.c.

References HEADER_, X_root_int_cpy(), and XxYxZ_cpy().

Referenced by XxYxZ_alloc(), XxYxZ_read(), and XxYxZ_reuse().

void XxYxZ_to_c ( XxYxZ_header *  header,
FILE *  F_XxYxZ,
char name,
SXBOOLEAN  is_static 
)

Definition at line 913 of file XxYxZ_mngr.c.

References XxYxZ_array_to_c(), and XxYxZ_header_to_c().

void XxYxZ_unlock ( XxYxZ_header *  header  ) 

Definition at line 628 of file XxYxZ_mngr.c.

References SXFALSE, and XxY_unlock().

SXBOOLEAN XxYxZ_write ( XxYxZ_header *  header,
sxfiledesc_t  F_XxYxZ 
)

Definition at line 657 of file XxYxZ_mngr.c.

References bytes, SXBOOLEAN, SXFALSE, SXTRUE, WRITE, X_root_write(), X_write(), and XxY_write().

static SXINT XYZ_orig ( SXINT  x,
SXINT  kind 
) [static]

Definition at line 225 of file XxYxZ_mngr.c.

References HEADER_, ME, sxtrap(), X_is_set(), and XxY_is_set().

Referenced by XxYxZ_suppress().


Variable Documentation

XxYxZ_header* HEADER_ [static]
SXINT KIND_ [static]

Definition at line 46 of file XxYxZ_mngr.c.

Referenced by XxYxZ_assign(), XxYxZ_assoc_oflw(), and XxYxZ_lock().

char ME[] = "XxYxZ_mngr" [static]

Definition at line 29 of file XxYxZ_mngr.c.

Referenced by XxYxZ_assign(), and XYZ_orig().

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

Definition at line 37 of file XxYxZ_mngr.c.

SXINT X_ [static]

Definition at line 44 of file XxYxZ_mngr.c.

Referenced by XxYxZ_assign(), XxYxZ_cmp(), XxYxZ_is_set(), XxYxZ_scrmbl(), and XxYxZ_set().

SXINT Y_ [static]

Definition at line 44 of file XxYxZ_mngr.c.

Referenced by XxYxZ_assign(), XxYxZ_cmp(), XxYxZ_is_set(), XxYxZ_scrmbl(), and XxYxZ_set().

SXINT Z_ [static]

Definition at line 44 of file XxYxZ_mngr.c.

Referenced by XxYxZ_assign(), XxYxZ_cmp(), XxYxZ_is_set(), XxYxZ_scrmbl(), and XxYxZ_set().


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