sxindex_mngr.c File Reference

#include "sxversion.h"
#include "sxcommon.h"
#include "sxindex.h"
#include <stdio.h>
#include <unistd.h>
Include dependency graph for sxindex_mngr.c:

Go to the source code of this file.

Defines

#define WRITE(p, l)   ((bytes=(l))>0&&(write(file_descr, p, (size_t) bytes) == bytes))
#define READ(p, l)   ((bytes=(l))>0&&(read (file_descr, p, (size_t) bytes) == bytes))

Functions

void sxindex_alloc (sxindex_header *header, SXINT line_nb, SXINT column_nb, void(*user_oflw)(sxindex_header *header, SXINT old_line_nb, SXINT old_size))
SXINT sxindex_seek (sxindex_header *header)
SXBOOLEAN sxindex_write (sxindex_header *header, sxfiledesc_t file_descr)
SXBOOLEAN sxindex_read (sxindex_header *header, sxfiledesc_t file_descr, void(*user_oflw)(sxindex_header *header, SXINT old_line_nb, SXINT old_size))
static void sxindex_out_tab_int (FILE *file, char *name1, char *name2, SXINT *tab, SXINT size, SXINT top)
void sxindex_array_to_c (sxindex_header *header, FILE *file, char *name)
void sxindex_header_to_c (sxindex_header *header, FILE *file, char *name)
void sxindex_to_c (sxindex_header *header, FILE *file, char *name, SXBOOLEAN is_static)
void sxindex_reuse (sxindex_header *header, void(*user_oflw)(sxindex_header *header, SXINT old_line_nb, SXINT old_size))

Variables

char WHAT_SXINDEX_MNGR [] = "@(#)SYNTAX - $Id: sxindex_mngr.c 1416 2008-06-25 14:42:55Z rlacroix $" WHAT_DEBUG
static SXINT bytes

Define Documentation

#define READ ( p,
 )     ((bytes=(l))>0&&(read (file_descr, p, (size_t) bytes) == bytes))

Definition at line 115 of file sxindex_mngr.c.

#define WRITE ( p,
 )     ((bytes=(l))>0&&(write(file_descr, p, (size_t) bytes) == bytes))

Definition at line 114 of file sxindex_mngr.c.


Function Documentation

void sxindex_alloc ( sxindex_header *  header,
SXINT  line_nb,
SXINT  column_nb,
void(*)(sxindex_header *header, SXINT old_line_nb, SXINT old_size)  user_oflw 
)

Definition at line 47 of file sxindex_mngr.c.

Referenced by nodes_alloc(), sxlist_alloc(), sxmilstn_alloc(), sxndscanner(), and sxsubset_alloc().

void sxindex_array_to_c ( sxindex_header *  header,
FILE *  file,
char name 
)

Definition at line 171 of file sxindex_mngr.c.

References sxindex_out_tab_int().

Referenced by sxindex_to_c(), sxlist_array_to_c(), and sxsubset_array_to_c().

void sxindex_header_to_c ( sxindex_header *  header,
FILE *  file,
char name 
)

Definition at line 177 of file sxindex_mngr.c.

Referenced by sxindex_to_c(), sxlist_header_to_c(), and sxsubset_header_to_c().

static void sxindex_out_tab_int ( FILE *  file,
char name1,
char name2,
SXINT *  tab,
SXINT  size,
SXINT  top 
) [static]

Definition at line 154 of file sxindex_mngr.c.

Referenced by sxindex_array_to_c().

SXBOOLEAN sxindex_read ( sxindex_header *  header,
sxfiledesc_t  file_descr,
void(*)(sxindex_header *header, SXINT old_line_nb, SXINT old_size)  user_oflw 
)

Definition at line 133 of file sxindex_mngr.c.

References READ, and SXBOOLEAN.

Referenced by sxlist_read(), and sxsubset_read().

void sxindex_reuse ( sxindex_header *  header,
void(*)(sxindex_header *header, SXINT old_line_nb, SXINT old_size)  user_oflw 
)

Definition at line 201 of file sxindex_mngr.c.

Referenced by sxlist_reuse().

SXINT sxindex_seek ( sxindex_header *  header  ) 
void sxindex_to_c ( sxindex_header *  header,
FILE *  file,
char name,
SXBOOLEAN  is_static 
)

Definition at line 191 of file sxindex_mngr.c.

References sxindex_array_to_c(), and sxindex_header_to_c().

SXBOOLEAN sxindex_write ( sxindex_header *  header,
sxfiledesc_t  file_descr 
)

Definition at line 119 of file sxindex_mngr.c.

References WRITE.

Referenced by sxlist_write(), and sxsubset_write().


Variable Documentation

SXINT bytes [static]
char WHAT_SXINDEX_MNGR[] = "@(#)SYNTAX - $Id: sxindex_mngr.c 1416 2008-06-25 14:42:55Z rlacroix $" WHAT_DEBUG

Definition at line 45 of file sxindex_mngr.c.


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