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

nextfcode.c File Reference

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "toke.h"
#include "nextfcode.h"
#include "errhandler.h"
#include "stream.h"
#include "scanner.h"

Include dependency graph for nextfcode.c:

Go to the source code of this file.

Data Structures

struct  fcode_range

Typedefs

typedef fcode_range fcode_range_t

Functions

void reset_fcode_ranges (void)
void list_fcode_ranges (bool final_tally)
void set_next_fcode (u16 new_fcode)
static fcode_range_tfind_overlap (u16 test_fcode)
void assigning_fcode (void)
void bump_fcode (void)

Variables

u16 nextfcode
static bool ranges_exist = FALSE
static bool changes_listed = FALSE
static u16 range_start = FCODE_START
static u16 range_end = 0
static char * first_fcr_infile = NULL
static int first_fcr_linenum = 0
static fcode_range_tfirst_fc_range = NULL
static fcode_range_tcurrent_fc_range = NULL


Typedef Documentation

typedef struct fcode_range fcode_range_t
 


Function Documentation

void assigning_fcode void   ) 
 

Definition at line 636 of file nextfcode.c.

References changes_listed, FATAL, FCODE_LIMIT, fcode_range::fcr_end, fcode_range::fcr_infile, fcode_range::fcr_linenum, fcode_range::fcr_not_lapped, find_overlap(), INFO, list_fcode_ranges(), nextfcode, range_end, ranges_exist, started_at(), TKERROR, and tokenization_error().

Referenced by create_word().

Here is the call graph for this function:

void bump_fcode void   ) 
 

Definition at line 705 of file nextfcode.c.

References nextfcode.

Referenced by create_word().

static fcode_range_t* find_overlap u16  test_fcode  )  [static]
 

Definition at line 581 of file nextfcode.c.

References fcode_range::fcr_end, fcode_range::fcr_next, fcode_range::fcr_start, and ranges_exist.

Referenced by assigning_fcode().

void list_fcode_ranges bool  final_tally  ) 
 

Definition at line 341 of file nextfcode.c.

References changes_listed, ERRMSG_DESTINATION, FCODE_START, fcode_range::fcr_end, fcode_range::fcr_infile, fcode_range::fcr_linenum, fcode_range::fcr_next, fcode_range::fcr_not_lapped, fcode_range::fcr_start, message_dest, print_started_at(), range_end, range_start, ranges_exist, started_at(), and verbose.

Referenced by assigning_fcode(), finish_fcodehdr(), and handle_internal().

Here is the call graph for this function:

void reset_fcode_ranges void   ) 
 

Definition at line 261 of file nextfcode.c.

References changes_listed, FCODE_START, fcode_range::fcr_infile, fcode_range::fcr_next, first_fcr_infile, first_fcr_linenum, iname, lineno, nextfcode, range_end, range_start, and ranges_exist.

Referenced by fcode_starter(), handle_internal(), init_scan_state(), and set_next_fcode().

void set_next_fcode u16  new_fcode  ) 
 

Definition at line 488 of file nextfcode.c.

References changes_listed, FCODE_START, fcode_range::fcr_end, fcode_range::fcr_infile, fcode_range::fcr_linenum, fcode_range::fcr_next, fcode_range::fcr_not_lapped, fcode_range::fcr_start, first_fcr_infile, first_fcr_linenum, iname, lineno, nextfcode, range_end, range_start, ranges_exist, reset_fcode_ranges(), and safe_malloc().

Referenced by fcode_starter(), and tokz_esc_next_fcode().

Here is the call graph for this function:


Variable Documentation

bool changes_listed = FALSE [static]
 

Definition at line 198 of file nextfcode.c.

Referenced by assigning_fcode(), list_fcode_ranges(), reset_fcode_ranges(), and set_next_fcode().

fcode_range_t* current_fc_range = NULL [static]
 

Definition at line 206 of file nextfcode.c.

fcode_range_t* first_fc_range = NULL [static]
 

Definition at line 205 of file nextfcode.c.

char* first_fcr_infile = NULL [static]
 

Definition at line 202 of file nextfcode.c.

Referenced by reset_fcode_ranges(), and set_next_fcode().

int first_fcr_linenum = 0 [static]
 

Definition at line 203 of file nextfcode.c.

Referenced by reset_fcode_ranges(), and set_next_fcode().

u16 nextfcode
 

Definition at line 130 of file nextfcode.c.

Referenced by assigning_fcode(), bump_fcode(), create_word(), fcode_starter(), handle_internal(), reset_fcode_ranges(), set_next_fcode(), and tokz_esc_next_fcode().

u16 range_end = 0 [static]
 

Definition at line 201 of file nextfcode.c.

Referenced by assigning_fcode(), list_fcode_ranges(), reset_fcode_ranges(), and set_next_fcode().

u16 range_start = FCODE_START [static]
 

Definition at line 200 of file nextfcode.c.

Referenced by list_fcode_ranges(), reset_fcode_ranges(), and set_next_fcode().

bool ranges_exist = FALSE [static]
 

Definition at line 197 of file nextfcode.c.

Referenced by assigning_fcode(), find_overlap(), list_fcode_ranges(), reset_fcode_ranges(), and set_next_fcode().


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