output.c File Reference

#include "defs.h"

Include dependency graph for output.c:

Go to the source code of this file.

Functions

 output ()
 output_prefix ()
 output_rule_data ()
 output_yydefred ()
 output_actions ()
 token_actions ()
 goto_actions ()
int default_goto (int symbol)
 save_column (int symbol, int default_state)
 sort_actions ()
 pack_table ()
int matching_vector (int vector)
int pack_vector (int vector)
 output_base ()
 output_table ()
 output_check ()
int is_C_identifier (char *name)
 output_defines ()
 output_stored_text ()
 output_debug ()
 output_stype ()
 output_trailing_text ()
 output_semantic_actions ()
 free_itemsets ()
 free_shifts ()
 free_reductions ()

Variables

static int nvectors
static int nentries
static short ** froms
static short ** tos
static short * tally
static short * width
static short * state_count
static short * order
static short * base
static short * pos
static int maxtable
static short * table
static short * check
static int lowzero
static int high


Function Documentation

int default_goto int  symbol  ) 
 

Definition at line 322 of file output.c.

References goto_map, i, m, max, n, nstates, state_count, and to_state.

Referenced by goto_actions().

free_itemsets  ) 
 

Definition at line 1173 of file output.c.

References cp, first_state, FREE, next, and state_table.

Referenced by output().

free_reductions  ) 
 

Definition at line 1200 of file output.c.

References first_reduction, FREE, reductions::next, next, and reduction_table.

Referenced by output().

free_shifts  ) 
 

Definition at line 1186 of file output.c.

References first_shift, FREE, next, shift_table, and sp.

Referenced by output().

goto_actions  ) 
 

Definition at line 289 of file output.c.

References default_goto(), fprintf(), i, j, k, NEW2, nstates, nsyms, outline, output_file, putc, rflag, save_column(), start_symbol, state_count, and symbol_prefix.

Referenced by output_actions().

int is_C_identifier char *  name  ) 
 

Definition at line 744 of file output.c.

References c, isalnum, isalpha, and s.

Referenced by output_defines().

int matching_vector int  vector  ) 
 

Definition at line 498 of file output.c.

References froms, j, k, nstates, order, t, tally, tos, and width.

Referenced by pack_table().

output  ) 
 

Definition at line 20 of file output.c.

References body, free_itemsets(), free_parser(), free_reductions(), free_shifts(), header, output_actions(), output_debug(), output_defines(), output_prefix(), output_rule_data(), output_semantic_actions(), output_stored_text(), output_stype(), output_trailing_text(), output_yydefred(), rflag, tables, trailer, and write_section().

output_actions  ) 
 

Definition at line 177 of file output.c.

References accessing_symbol, FREE, from_state, froms, goto_actions(), goto_map, LA, LAruleno, lookaheads, NEW2, nstates, ntokens, nvars, nvectors, output_base(), output_check(), output_table(), pack_table(), sort_actions(), tally, to_state, token_actions(), tos, and width.

Referenced by output().

output_base  ) 
 

Definition at line 616 of file output.c.

References base, fprintf(), j, nstates, outline, output_file, putc, rflag, and symbol_prefix.

Referenced by output_actions().

output_check  ) 
 

Definition at line 714 of file output.c.

References check, fprintf(), high, j, outline, output_file, putc, rflag, and symbol_prefix.

Referenced by output_actions().

output_debug  ) 
 

Definition at line 855 of file output.c.

References code_file, final_state, fprintf(), j, k, MALLOC, max, no_space(), ntokens, outline, output_file, rflag, s, symbol_name, symbol_prefix, symbol_value, and tflag.

Referenced by output().

output_defines  ) 
 

Definition at line 776 of file output.c.

References c, code_file, defines_file, dflag, fprintf(), is_C_identifier(), ntokens, putc, s, and symbol_name.

Referenced by output().

output_prefix  ) 
 

Definition at line 43 of file output.c.

References code_file, fprintf(), NULL, outline, and symbol_prefix.

Referenced by output().

output_rule_data  ) 
 

Definition at line 103 of file output.c.

References fprintf(), i, j, nrules, outline, output_file, putc, rflag, start_symbol, symbol_prefix, and symbol_value.

Referenced by output().

output_semantic_actions  ) 
 

Definition at line 1136 of file output.c.

References action_file, action_file_name, c, code_file, code_file_name, EOF, fclose(), fopen(), fprintf(), getc, lflag, line_format, NULL, open_error(), out, outline, and putc.

Referenced by output().

output_stored_text  ) 
 

Definition at line 828 of file output.c.

References c, code_file, code_file_name, EOF, fclose(), fopen(), fprintf(), getc, in, lflag, line_format, NULL, open_error(), out, outline, putc, text_file, and text_file_name.

Referenced by output().

output_stype  ) 
 

Definition at line 1069 of file output.c.

References code_file, fprintf(), ntags, outline, and unionized.

Referenced by output().

output_table  ) 
 

Definition at line 682 of file output.c.

References code_file, fprintf(), high, j, outline, output_file, putc, rflag, and symbol_prefix.

Referenced by output_actions().

output_trailing_text  ) 
 

Definition at line 1079 of file output.c.

References c, code_file, code_file_name, cptr, EOF, fprintf(), getc, in, input_file, input_file_name, lflag, line_format, lineno, out, outline, and putc.

Referenced by output().

output_yydefred  ) 
 

Definition at line 150 of file output.c.

References defred, fprintf(), i, j, nstates, outline, output_file, putc, rflag, and symbol_prefix.

Referenced by output().

pack_table  ) 
 

Definition at line 435 of file output.c.

References base, BITS_PER_WORD, check, high, i, lowzero, matching_vector(), maxtable, nentries, NEW2, nvectors, order, pack_vector(), place(), and pos.

Referenced by output_actions().

int pack_vector int  vector  ) 
 

Definition at line 539 of file output.c.

References assert, check, fatal(), froms, j, k, lowzero, MAXTABLE, maxtable, newmax, no_space(), ok(), order, REALLOC, t, tally, and tos.

Referenced by pack_table().

save_column int  symbol,
int  default_state
 

Definition at line 358 of file output.c.

References count, goto_map, i, m, n, sp, and to_state.

Referenced by goto_actions().

sort_actions  ) 
 

Definition at line 400 of file output.c.

References i, j, k, nentries, NEW2, nvectors, order, t, tally, and width.

Referenced by output_actions().

token_actions  ) 
 

Definition at line 205 of file output.c.

References i, if(), j, max, min, NEW2, nstates, ntokens, p, parser, r, s, and SHIFT.

Referenced by output_actions().


Variable Documentation

short* base [static]
 

Definition at line 11 of file output.c.

short* check [static]
 

Definition at line 15 of file output.c.

Referenced by binary(), check(), cidr_aton(), circh(), do_open(), do_vwrite(), ec_check_ints(), equal(), ether_aton(), find(), first(), get_header(), lockcheck(), main(), option(), output_check(), pack_table(), pack_vector(), parse_cidr(), read_standards(), second(), set_min_tim(), set_mtu(), set_saved_settings(), setup_term(), test03(), test04(), test06(), test07(), test08(), test09(), test10(), test11(), and write_standards().

short** froms [static]
 

Definition at line 5 of file output.c.

Referenced by matching_vector(), output_actions(), and pack_vector().

int high [static]
 

Definition at line 17 of file output.c.

Referenced by change_partition(), decode_ioctl(), do_x86_vm(), look(), map_goto(), match(), output_check(), output_table(), pack_table(), search_mnem(), searchwindex(), and size_device().

int lowzero [static]
 

Definition at line 16 of file output.c.

Referenced by pack_table(), and pack_vector().

int maxtable [static]
 

Definition at line 13 of file output.c.

Referenced by pack_table(), and pack_vector().

int nentries [static]
 

Definition at line 4 of file output.c.

Referenced by pack_table(), and sort_actions().

int nvectors [static]
 

Definition at line 3 of file output.c.

Referenced by output_actions(), pack_table(), and sort_actions().

short* order [static]
 

Definition at line 10 of file output.c.

Referenced by add(), ask(), bail_out(), compare(), dynamic(), inflate(), inflateBack(), inflateBack9(), master(), matching_vector(), mediator(), pack_table(), pack_vector(), and sort_actions().

short* pos [static]
 

Definition at line 12 of file output.c.

Referenced by _hash_add(), _hash_lookup(), atapi_transfer(), chkfile(), cmp(), common_open(), copy_member(), copyfile(), do_line(), do_lseek(), expect_char(), file_read(), fseek(), get_next_token(), get_number(), get_rawblock(), get_string(), get_unumber(), getfile(), gzcopy(), keep_reading(), lockcheck(), lookupForInsert(), m_bsrch(), m_fsrch(), main(), make_bootable(), mtools_getline(), out_process(), p_ere_exp(), p_simp_re(), pack_table(), parse(), parse_old_device_line(), read_file(), readline(), regsub(), rw_block(), saveopts(), search_dir(), search_hist(), set_misc_flags(), skip_junk(), Sub(), test19f(), test_gzio(), v_ulcase(), and write_file().

short* state_count [static]
 

Definition at line 9 of file output.c.

Referenced by default_goto(), and goto_actions().

short* table [static]
 

Definition at line 14 of file output.c.

Referenced by add_gateway(), advertize(), boundary(), check_existing(), check_ind(), cylinderalign(), distribute(), do_autopart(), exec_bootstrap(), extpartition(), geometry(), get_master(), get_part_table(), initialize(), m_dump(), m_in(), m_out(), m_read(), m_updown(), m_write(), main(), may_kill_region(), newspell(), overlap(), parse(), partition(), print(), print_table(), recompute0(), regionize(), scribble_region(), select_disk(), show_part(), sort(), and write_table().

short* tally [static]
 

Definition at line 7 of file output.c.

Referenced by matching_vector(), output_actions(), pack_vector(), and sort_actions().

short** tos [static]
 

Definition at line 6 of file output.c.

Referenced by matching_vector(), output_actions(), and pack_vector().

short* width [static]
 

Definition at line 8 of file output.c.

Referenced by _doprnt(), _doscan(), _format(), cmd_args(), doformat(), dumpopts(), main(), matching_vector(), numwidth(), numxwidth(), output_actions(), outword(), print(), print1(), print_page(), sort_actions(), and v_overtype().


Generated on Fri Apr 14 22:59:03 2006 for minix by  doxygen 1.4.6