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

stream.h File Reference

#include "types.h"

Include dependency graph for stream.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define OUTPUT_SIZE   131072

Functions

void add_to_include_list (char *dir_compt)
void display_include_list (void)
FILE * open_expanded_file (const char *path_name, char *mode, char *for_what)
bool init_stream (const char *name)
void close_stream (_PTR dummy)
void init_output (const char *inname, const char *outname)
bool close_output (void)
void init_inbuf (char *inbuf, unsigned int buflen)

Variables

u8 * start
u8 * pc
u8 * end
char * iname
unsigned int lineno
unsigned int abs_token_no
char * oname
unsigned int opc


Define Documentation

#define OUTPUT_SIZE   131072
 

Definition at line 76 of file stream.h.

Referenced by close_output(), and init_output().


Function Documentation

void add_to_include_list char *  dir_compt  ) 
 

Definition at line 185 of file stream.c.

References incl_list::dir_path, max_dir_path_len, incl_list::next, and safe_malloc().

Referenced by get_args().

Here is the call graph for this function:

bool close_output void   ) 
 

Definition at line 1544 of file stream.c.

References depncy_file, depncy_list_name, error_summary(), FATAL, load_list_file, load_list_name, missing_list_file, missing_list_name, no_files_missing, olen, oname, opc, ostart, OUTPUT_SIZE, and tokenization_error().

Referenced by main().

Here is the call graph for this function:

void close_stream _PTR  dummy  ) 
 

Definition at line 1526 of file stream.c.

References iname, lineno, and start.

Referenced by handle_internal(), and main().

void display_include_list void   ) 
 

Definition at line 236 of file stream.c.

References incl_list::dir_path, DISPLAY_WIDTH, and incl_list::next.

Referenced by get_args().

void init_inbuf char *  inbuf,
unsigned int  buflen
 

Definition at line 575 of file stream.c.

References end, pc, and start.

Referenced by eval_mac_string(), eval_string(), and init_stream().

void init_output const char *  inname,
const char *  outname
 

Definition at line 1359 of file stream.c.

References abs_token_no, add_to_load_lists(), could_not_open(), dependency_list, depncy_file, depncy_list_name, extend_filename(), FFLUSH_STDOUT, finish_incl_list_scan(), fload_list, iname, init_emit(), load_list_file, load_list_name, missing_list_file, missing_list_name, no_files_missing, olen, oname, opc, ostart, OUTPUT_SIZE, safe_malloc(), TKERROR, and WARNING.

Referenced by main().

Here is the call graph for this function:

bool init_stream const char *  name  ) 
 

Definition at line 1064 of file stream.c.

References add_to_load_lists(), could_not_open(), expand_pathname(), expansion_error(), FFLUSH_STDOUT, file_is_missing(), finish_incl_list_scan(), ilen, iname, include_list_full_path, init_inbuf(), lineno, oname, safe_malloc(), stat_incl_list_file(), TKERROR, and tokenization_error().

Referenced by handle_internal(), and main().

Here is the call graph for this function:

FILE* open_expanded_file const char *  path_name,
char *  mode,
char *  for_what
 

Definition at line 964 of file stream.c.

References expand_pathname(), expansion_error(), finish_incl_list_scan(), open_incl_list_file(), TKERROR, and tokenization_error().

Referenced by encode_file().

Here is the call graph for this function:


Variable Documentation

unsigned int abs_token_no
 

Definition at line 79 of file stream.c.

Referenced by get_rest_of_line(), get_word(), get_word_in_line(), handle_internal(), init_output(), push_cstag(), and validate_to_target().

u8* end
 

Definition at line 76 of file stream.c.

Referenced by c_string_escape(), declare_locals(), get_sequence(), get_string(), get_word(), init_inbuf(), pop_source(), push_source(), skip_until(), and skip_ws().

char* iname
 

Definition at line 77 of file stream.c.

Referenced by c_string_escape(), close_stream(), collect_input_filename(), conditionally_tokenize(), create_word(), fcode_ender(), fcode_starter(), get_number(), get_sequence(), get_string(), get_word(), handle_internal(), init_output(), init_stream(), new_device_vocab(), parse_number(), pop_source(), print_where_started(), process_remark(), push_cstag(), push_source(), reset_fcode_ranges(), set_next_fcode(), tokenization_error(), and warn_if_multiline().

unsigned int lineno
 

Definition at line 78 of file stream.c.

Referenced by assign_local(), c_string_escape(), close_stream(), conditionally_tokenize(), create_constant(), create_word(), declare_locals(), fcode_starter(), get_number(), get_rest_of_line(), get_sequence(), get_string(), get_word(), get_word_in_line(), handle_internal(), handle_user_message(), init_stream(), new_device_vocab(), parse_number(), pop_source(), print_where_started(), process_remark(), push_cstag(), push_source(), reset_fcode_ranges(), set_next_fcode(), skip_string(), skip_until(), skip_ws(), string_remark(), tokenization_error(), validate_to_target(), warn_if_multiline(), and warn_unterm().

char* oname
 

Definition at line 88 of file stream.c.

Referenced by close_output(), handle_internal(), init_output(), and init_stream().

unsigned int opc
 

Definition at line 89 of file stream.c.

Referenced by close_output(), emit_byte(), emit_fcodehdr(), emit_pci_data_block(), emit_pci_rom_hdr(), error_check_locals(), error_summary(), finish_fcodehdr(), finish_pcihdr(), handle_internal(), init_output(), mark_backward_target(), resolve_backward(), and resolve_forward().

u8* pc
 

Definition at line 75 of file stream.c.

Referenced by assign_local(), base_val(), c_string_escape(), declare_locals(), get_rest_of_line(), get_sequence(), get_string(), get_token(), get_until(), get_word(), get_word_in_line(), handle_internal(), handle_user_message(), init_inbuf(), pop_source(), process_remark(), push_source(), skip_string(), skip_until(), skip_ws(), and validate_to_target().

u8* start
 

Definition at line 74 of file stream.c.

Referenced by close_stream(), init_inbuf(), pop_source(), and push_source().


Generated on Fri Aug 18 14:05:10 2006 for Toke1.0 by  doxygen 1.4.4