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

emit.h File Reference

#include "types.h"

Include dependency graph for emit.h:

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

Go to the source code of this file.

Data Structures

struct  fcode_header_t

Defines

#define STRING_LEN_MAX   255
#define GET_BUF_MAX   1024

Functions

void emit_fcode (u16 tok)
void user_emit_byte (u8 data)
void emit_offset (s16 offs)
void emit_string (u8 *string, signed int cnt)
void emit_fcodehdr (const char *starter_name)
void finish_fcodehdr (void)
void emit_pcihdr (void)
void finish_pcihdr (void)
void finish_headers (void)
void emit_end0 (void)
void emit_literal (u32 num)


Define Documentation

#define GET_BUF_MAX   1024
 

Definition at line 94 of file emit.h.

Referenced by add_byte_to_string(), expand_pathname(), get_string(), get_until(), get_word(), and init_scanner().

#define STRING_LEN_MAX   255
 

Definition at line 75 of file emit.h.

Referenced by emit_string(), encode_file(), and get_string().


Function Documentation

void emit_end0 void   ) 
 

void emit_fcode u16  tok  ) 
 

Definition at line 156 of file emit.c.

References emit_byte(), and fcode_written.

Referenced by create_word(), emit_fc_token(), handle_internal(), and tokz_emit_fcode().

Here is the call graph for this function:

void emit_fcodehdr const char *  starter_name  ) 
 

Definition at line 219 of file emit.c.

References EMIT_STRUCT, emit_token(), fcode_body_ob_off, fcode_hdr_ob_off, fcode_start_ob_off, fcode_written, fcode_header_t::format, noerrors, opc, ostart, TKERROR, and tokenization_error().

Referenced by fcode_starter().

Here is the call graph for this function:

void emit_literal u32  num  ) 
 

Definition at line 197 of file emit.c.

References emit_num32(), and emit_token().

Referenced by abort_quote(), base_change(), deliver_number(), and handle_internal().

Here is the call graph for this function:

void emit_offset s16  offs  ) 
 

Definition at line 189 of file emit.c.

References emit_byte(), and offs16.

Referenced by emit_fc_offset(), mark_forward_branch(), and resolve_loop().

Here is the call graph for this function:

void emit_pcihdr void   ) 
 

Definition at line 480 of file emit.c.

References emit_pci_data_block(), emit_pci_rom_hdr(), fcode_start_ob_off, fcode_written, noerrors, TKERROR, and tokenization_error().

Referenced by handle_internal().

Here is the call graph for this function:

void emit_string u8 *  string,
signed int  cnt
 

Definition at line 203 of file emit.c.

References emit_byte(), STRING_LEN_MAX, TKERROR, and tokenization_error().

Referenced by abort_quote(), create_word(), encode_file(), and handle_internal().

Here is the call graph for this function:

void finish_fcodehdr void   ) 
 

Definition at line 268 of file emit.c.

References fcode_header_t::checksum, emit_token(), fcode_body_ob_off, fcode_ender(), fcode_hdr_ob_off, fcode_start_ob_off, fcode_written, haveend, fcode_header_t::length, list_fcode_ranges(), opc, ostart, TKERROR, tokenization_error(), verbose, and WARNING.

Referenced by fcode_ender(), and finish_headers().

Here is the call graph for this function:

void finish_headers void   ) 
 

Definition at line 566 of file emit.c.

References fcode_hdr_ob_off, finish_fcodehdr(), finish_pcihdr(), and pci_hdr_ob_off.

Referenced by main().

Here is the call graph for this function:

void finish_pcihdr void   ) 
 

Definition at line 509 of file emit.c.

References big_end_pci_image_rev, emit_byte(), opc, ostart, pci_data_blk_ob_off, pci_hdr_ob_off, pci_image_rev, pci_is_last_image, pci_vpd, statbuf, TKERROR, and tokenization_error().

Referenced by finish_headers(), and handle_internal().

Here is the call graph for this function:

void user_emit_byte u8  data  ) 
 

Definition at line 183 of file emit.c.

References emit_byte(), and fcode_written.

Referenced by tokz_esc_emit_byte().

Here is the call graph for this function:


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