sxndscanner.c File Reference

#include "sxversion.h"
#include "sxcommon.h"
#include <ctype.h>
#include <memory.h>
#include "sxsstmt.h"
#include "sxnd.h"
Include dependency graph for sxndscanner.c:

Go to the source code of this file.

Defines

#define ts_put(c)
#define ts_null()   (sxndsvar.current_ndlv->token_string [sxndsvar.current_ndlv->ts_lgth] = SXNUL)
#define char_to_class(c)   (sxndsvar.SXS_tables.S_char_to_simple_class[c])

Functions

static void push_include (SXINT include_action)
static SXINT pop_include (void)
static SXVOID comments_put (char *str, SXINT lgth)
SXVOID ndlv_clear (struct sxndlv *ndlv, SXBOOLEAN keep_comments)
static void hashreduce (SXSTMI stmt)
static void ndlv_oflw (sxindex_header *index_hd_ptr, SXINT old_line_nb_parameter, SXINT old_size_parameter)
static void seek_active_scanner (void)
SXINT clone_active_scanner (SXSTMI stmt)
SXSTMI predicate_processing (struct SXS_action_or_prdct_code *action_or_prdct_code)
SXSTMI action_processing (struct SXS_action_or_prdct_code *action_or_prdct_code)
SXVOID sxndscan_it (void)
SXINT sxndscanner (SXINT what_to_do, struct sxtables *arg)

Variables

char WHAT_SXNDSCANNER32 [] = "@(#)SYNTAX - $Id: sxndscanner.c 1416 2008-06-25 14:42:55Z rlacroix $ SXNDSCANNER_32" WHAT_DEBUG
static char ME [] = "NDSCANNER"

Define Documentation

#define char_to_class (  )     (sxndsvar.SXS_tables.S_char_to_simple_class[c])

Definition at line 133 of file sxndscanner.c.

 
#define ts_null (  )     (sxndsvar.current_ndlv->token_string [sxndsvar.current_ndlv->ts_lgth] = SXNUL)

Definition at line 131 of file sxndscanner.c.

#define ts_put (  ) 
Value:
(    (sxndsvar.current_ndlv->ts_lgth+2 == sxndsvar.current_ndlv->ts_lgth_use)       \
    ? sxndsvar.current_ndlv->token_string = (char *) sxrealloc (sxndsvar.current_ndlv-> \
        token_string, sxndsvar.current_ndlv->ts_lgth_use *= 2, sizeof (char))       \
    : NULL,                                     \
     sxndsvar.current_ndlv->token_string [sxndsvar.current_ndlv->ts_lgth ++] = (char)c      \
)

Definition at line 122 of file sxndscanner.c.


Function Documentation

SXSTMI action_processing ( struct SXS_action_or_prdct_code action_or_prdct_code  ) 

Definition at line 369 of file sxndscanner.c.

References ME, ndlv_clear(), push_include(), SXFALSE, sxsrcpush(), sxsvar, sxtrap(), SXVOID, ts_null, and ts_put.

Referenced by ndrcvr_one_scan(), and sxndscan_it().

SXINT clone_active_scanner ( SXSTMI  stmt  ) 
static SXVOID comments_put ( char str,
SXINT  lgth 
) [static]

Definition at line 107 of file sxndscanner.c.

Referenced by sxndscan_it().

static void hashreduce ( SXSTMI  stmt  )  [static]

Definition at line 152 of file sxndscanner.c.

References sxstr2save().

Referenced by sxndscan_it().

SXVOID ndlv_clear ( struct sxndlv *  ndlv,
SXBOOLEAN  keep_comments 
)

Definition at line 136 of file sxndscanner.c.

Referenced by action_processing(), seek_active_scanner(), and sxndtkn_put().

static void ndlv_oflw ( sxindex_header *  index_hd_ptr,
SXINT  old_line_nb_parameter,
SXINT  old_size_parameter 
) [static]

Definition at line 169 of file sxndscanner.c.

References sxba_resize(), SXVOID, and top.

Referenced by sxndscanner().

static SXINT pop_include ( void   )  [static]

Definition at line 84 of file sxndscanner.c.

References sxba_copy(), and top.

Referenced by sxndscan_it().

SXSTMI predicate_processing ( struct SXS_action_or_prdct_code action_or_prdct_code  ) 

Definition at line 286 of file sxndscanner.c.

References SXBOOLEAN, SXFALSE, sxlaback(), sxlafirst_char(), sxlanext_char(), SXTRUE, and ts_null.

Referenced by ndrcvr_one_scan(), and sxndscan_it().

static void push_include ( SXINT  include_action  )  [static]

Definition at line 67 of file sxndscanner.c.

References sxba_calloc(), sxba_copy(), sxba_empty(), and top.

Referenced by action_processing().

static void seek_active_scanner ( void   )  [static]

Definition at line 212 of file sxndscanner.c.

References ndlv_clear(), SXFALSE, and sxindex_seek().

Referenced by sxndscanner().

SXVOID sxndscan_it ( void   ) 
SXINT sxndscanner ( SXINT  what_to_do,
struct sxtables arg 
)

Variable Documentation

char ME[] = "NDSCANNER" [static]

Definition at line 52 of file sxndscanner.c.

Referenced by action_processing(), sxndscan_it(), and sxndscanner().

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

Definition at line 30 of file sxndscanner.c.


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