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

devnode.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "devnode.h"
#include "errhandler.h"
#include "scanner.h"
#include "vocabfuncts.h"
#include "flowcontrol.h"
#include "stream.h"
#include "ticvocab.h"

Include dependency graph for devnode.c:

Go to the source code of this file.

Defines

#define NEW_DEV_MSG_START   "Encountered %s. Starting new device-node."

Functions

static void dev_vocab_control_struct_check (void)
void new_device_vocab (void)
void delete_device_vocab (void)
void finish_device_vocab (void)
char * in_what_node (device_node_t *the_node)
void show_node_start (void)
bool exists_in_ancestor (char *m_name)

Variables

char default_top_dev_ifile_name [] = "Start of tokenization"
static device_node_t top_level_dev_node
device_node_tcurrent_device_node = &top_level_dev_node
tic_hdr_t ** current_definitions = &(top_level_dev_node.tokens_vocab)
static char in_what_buffr [50]
static bool show_where = FALSE
static bool show_which
static int in_what_line
static char * in_what_file


Define Documentation

#define NEW_DEV_MSG_START   "Encountered %s. Starting new device-node."
 

Referenced by new_device_vocab().


Function Documentation

void delete_device_vocab void   ) 
 

Definition at line 298 of file devnode.c.

References device_node::ifile_name, device_node::parent_node, reset_tic_vocab(), and device_node::tokens_vocab.

Referenced by finish_device_vocab(), and reset_normal_vocabs().

Here is the call graph for this function:

static void dev_vocab_control_struct_check void   )  [static]
 

Definition at line 176 of file devnode.c.

References announce_control_structs(), safe_malloc(), statbuf, and WARNING.

Referenced by finish_device_vocab(), and new_device_vocab().

Here is the call graph for this function:

bool exists_in_ancestor char *  m_name  ) 
 

Definition at line 562 of file devnode.c.

References as_a_what(), tic_hdr::fword_defr, in_what_node(), INFO, lookup_tic_entry(), device_node::parent_node, scope_is_global, show_node_start(), tokenization_error(), and device_node::tokens_vocab.

Referenced by tokenized_word_error().

Here is the call graph for this function:

void finish_device_vocab void   ) 
 

Definition at line 349 of file devnode.c.

References delete_device_vocab(), dev_vocab_control_struct_check(), device_node::ifile_name, INFO, device_node::line_no, started_at(), statbuf, TKERROR, and tokenization_error().

Referenced by finish_or_new_device().

Here is the call graph for this function:

char* in_what_node device_node_t the_node  ) 
 

Definition at line 457 of file devnode.c.

References device_node::ifile_name, in_what_buffr, in_what_file, in_what_line, device_node::line_no, show_where, and show_which.

Referenced by create_current_alias(), exists_in_ancestor(), lookup_word(), and trace_creation().

void new_device_vocab void   ) 
 

Definition at line 232 of file devnode.c.

References dev_vocab_control_struct_check(), device_node::ifile_name, iname, INFO, device_node::line_no, lineno, NEW_DEV_MSG_START, device_node::parent_node, safe_malloc(), started_at(), statbuf, tokenization_error(), and device_node::tokens_vocab.

Referenced by finish_or_new_device().

Here is the call graph for this function:

void show_node_start void   ) 
 

Definition at line 513 of file devnode.c.

References in_what_file, in_what_line, just_started_at(), just_where_started(), show_where, and show_which.

Referenced by create_current_alias(), exists_in_ancestor(), gather_locals(), tokenized_word_error(), trace_creation(), and warn_if_duplicate().

Here is the call graph for this function:


Variable Documentation

tic_hdr_t** current_definitions = &(top_level_dev_node.tokens_vocab)
 

Definition at line 124 of file devnode.c.

Referenced by add_to_current(), add_user_macro(), create_current_alias(), enter_global_scope(), handle_current(), hide_last_colon(), lookup_current(), lookup_in_dev_node(), resume_device_scope(), and reveal_last_colon().

device_node_t* current_device_node = &top_level_dev_node
 

Definition at line 123 of file devnode.c.

Referenced by create_current_alias(), fcode_ender(), fcode_starter(), lookup_word(), reset_normal_vocabs(), and trace_creation().

char default_top_dev_ifile_name[] = "Start of tokenization"
 

Definition at line 103 of file devnode.c.

Referenced by fcode_ender().

char in_what_buffr[50] [static]
 

Definition at line 143 of file devnode.c.

Referenced by in_what_node().

char* in_what_file [static]
 

Definition at line 147 of file devnode.c.

Referenced by in_what_node(), and show_node_start().

int in_what_line [static]
 

Definition at line 146 of file devnode.c.

Referenced by in_what_node(), and show_node_start().

bool show_where = FALSE [static]
 

Definition at line 144 of file devnode.c.

Referenced by in_what_node(), and show_node_start().

bool show_which [static]
 

Definition at line 145 of file devnode.c.

Referenced by in_what_node(), and show_node_start().

device_node_t top_level_dev_node [static]
 

Initial value:

 {
        NULL ,                          
        default_top_dev_ifile_name ,    
        0 ,                             
        NULL ,                          
}

Definition at line 105 of file devnode.c.


Generated on Fri Aug 18 14:03:53 2006 for Toke1.0 by  doxygen 1.4.4