Main Page | Data Structures | File List | Data Fields | Globals

parselocals.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ticvocab.h"
#include "dictionary.h"
#include "scanner.h"
#include "parselocals.h"
#include "errhandler.h"
#include "clflags.h"
#include "stream.h"
#include "devnode.h"
#include "flowcontrol.h"

Include dependency graph for parselocals.c:

Go to the source code of this file.

Functions

static char * int_to_str (int num, char *bufr)
static void invoke_local (tic_param_t pfield)
static bool locals_separator (char subj)
static void add_local (TIC_P_DEFLT_TYPE lnum, char *lname)
static bool gather_locals (bool initted, int *counter)
static void activate_locals (void)
static bool error_check_locals (void)
void declare_locals (bool ignoring)
static bool handle_local (char *lname)
tic_hdr_tlookup_local (char *lname)
bool create_local_alias (char *new_name, char *old_name)
bool exists_as_local (char *stat_name)
void assign_local (void)
void finish_locals (void)
void forget_locals (void)

Variables

static const char * push_locals = "{push-locals}"
static const char * pop_locals = "{pop-locals}"
static const char * local_addr = "_{local}"
static const char * local_op = "@"
static tic_hdr_tlocal_names = NULL
static int num_ilocals = 0
static int num_ulocals = 0
static int localno = 0
static char eval_buf [64]
static unsigned int l_d_lineno
static int last_local_colon = 0


Function Documentation

static void activate_locals void   )  [static]
 

Definition at line 513 of file parselocals.c.

References eval_buf, eval_string(), int_to_str(), num_ilocals, num_ulocals, and push_locals.

Referenced by declare_locals().

Here is the call graph for this function:

static void add_local TIC_P_DEFLT_TYPE  lnum,
char *  lname
[static]
 

Definition at line 332 of file parselocals.c.

References add_tic_entry(), invoke_local(), LOCAL_VAL, and trace_creation().

Referenced by gather_locals().

Here is the call graph for this function:

void assign_local void   ) 
 

Definition at line 816 of file parselocals.c.

References get_word(), handle_local(), lineno, local_op, pc, statbuf, TKERROR, tokenization_error(), and warn_unterm().

Referenced by handle_internal().

Here is the call graph for this function:

bool create_local_alias char *  new_name,
char *  old_name
 

Definition at line 747 of file parselocals.c.

References create_tic_alias().

Referenced by create_alias().

Here is the call graph for this function:

void declare_locals bool  ignoring  ) 
 

Definition at line 629 of file parselocals.c.

References activate_locals(), end, error_check_locals(), gather_locals(), l_d_lineno, lineno, localno, num_ilocals, num_ulocals, pc, report_multiline, skip_until(), TKERROR, warn_if_multiline(), and warn_unterm().

Referenced by handle_internal(), and skip_string().

Here is the call graph for this function:

static bool error_check_locals void   )  [static]
 

Definition at line 560 of file parselocals.c.

References announce_control_structs(), in_last_colon(), incolon, last_colon_abs_token_no, last_local_colon, lastcolon, opc, TKERROR, tokenization_error(), and WARNING.

Referenced by declare_locals().

Here is the call graph for this function:

bool exists_as_local char *  stat_name  ) 
 

Definition at line 768 of file parselocals.c.

References exists_in_tic_vocab().

Referenced by lookup_with_definer().

Here is the call graph for this function:

void finish_locals void   ) 
 

Definition at line 891 of file parselocals.c.

References eval_buf, eval_string(), get_word(), int_to_str(), localno, pop_locals, and tokenize_one_word().

Referenced by handle_internal().

Here is the call graph for this function:

void forget_locals void   ) 
 

Definition at line 933 of file parselocals.c.

References localno, num_ilocals, num_ulocals, and reset_tic_vocab().

Referenced by handle_internal().

Here is the call graph for this function:

static bool gather_locals bool  initted,
int *  counter
[static]
 

Definition at line 390 of file parselocals.c.

References add_local(), filter_comments(), get_number(), get_word(), in_last_colon(), l_d_lineno, localno, locals_separator(), show_node_start(), statbuf, TKERROR, tokenization_error(), warn_unterm(), and word_exists().

Referenced by declare_locals().

Here is the call graph for this function:

static bool handle_local char *  lname  )  [static]
 

Definition at line 692 of file parselocals.c.

References handle_tic_vocab().

Referenced by assign_local().

Here is the call graph for this function:

static char* int_to_str int  num,
char *  bufr
[static]
 

Definition at line 169 of file parselocals.c.

Referenced by activate_locals(), finish_locals(), and invoke_local().

static void invoke_local tic_param_t  pfield  )  [static]
 

Definition at line 226 of file parselocals.c.

References tic_param::deflt_elem, eval_buf, eval_string(), int_to_str(), local_addr, and local_op.

Referenced by add_local().

Here is the call graph for this function:

static bool locals_separator char  subj  )  [static]
 

Definition at line 277 of file parselocals.c.

References ibm_legacy_separator_message, ibm_locals_legacy_separator, tokenization_error(), and WARNING.

Referenced by gather_locals().

Here is the call graph for this function:

tic_hdr_t* lookup_local char *  lname  ) 
 

Definition at line 716 of file parselocals.c.

References lookup_tic_entry().

Referenced by lookup_word().

Here is the call graph for this function:


Variable Documentation

char eval_buf[64] [static]
 

Definition at line 120 of file parselocals.c.

Referenced by activate_locals(), finish_locals(), and invoke_local().

unsigned int l_d_lineno [static]
 

Definition at line 121 of file parselocals.c.

Referenced by declare_locals(), and gather_locals().

int last_local_colon = 0 [static]
 

Definition at line 558 of file parselocals.c.

Referenced by error_check_locals().

const char* local_addr = "_{local}" [static]
 

Definition at line 59 of file parselocals.c.

Referenced by invoke_local().

tic_hdr_t* local_names = NULL [static]
 

Definition at line 116 of file parselocals.c.

const char* local_op = "@" [static]
 

Definition at line 62 of file parselocals.c.

Referenced by assign_local(), and invoke_local().

int localno = 0 [static]
 

Definition at line 119 of file parselocals.c.

Referenced by declare_locals(), finish_locals(), forget_locals(), and gather_locals().

int num_ilocals = 0 [static]
 

Definition at line 117 of file parselocals.c.

Referenced by activate_locals(), declare_locals(), and forget_locals().

int num_ulocals = 0 [static]
 

Definition at line 118 of file parselocals.c.

Referenced by activate_locals(), declare_locals(), and forget_locals().

const char* pop_locals = "{pop-locals}" [static]
 

Definition at line 58 of file parselocals.c.

Referenced by finish_locals().

const char* push_locals = "{push-locals}" [static]
 

Definition at line 57 of file parselocals.c.

Referenced by activate_locals().


Generated on Fri Aug 18 14:04:36 2006 for Toke1.0 by  doxygen 1.4.4