osprey/cygnus/bfd/doc/chew.c File Reference

#include "ansidecl.h"
#include "sysdep.h"
#include <assert.h>
#include <stdio.h>
#include <ctype.h>

Include dependency graph for chew.c:

Go to the source code of this file.

Data Types

type  buffer
type  dict_struct

Defines

#define DEF_SIZE   5000
#define STACK   50
#define NO_PARAMS   1

Typedefs

typedef struct buffer string_type
typedef void(* stinst_type )()
typedef int * word_type
typedef struct dict_struct dict_type

Functions/Subroutines

static void init_string_with_size (string_type *buffer, unsigned int size)
static void init_string (string_type *buffer)
static int find (string_type *str, char *what)
static void write_buffer (string_type *buffer, FILE *f)
static void delete_string (string_type *buffer)
static char * addr (string_type *buffer, unsigned int idx)
static char at (string_type *buffer, unsigned int pos)
static void catchar (string_type *buffer, int ch)
static void overwrite_string (string_type *dst, string_type *src)
static void catbuf (string_type *buffer, char *buf, unsigned int len)
static void cattext (string_type *buffer, char *string)
static void catstr (string_type *dst, string_type *src)
static unsigned int skip_white_and_stars (string_type *src, unsigned int idx)
static void die (char *msg)
static void check_range ()
static void icheck_range ()
static void exec (dict_type *word)
static void call ()
static void remchar ()
static void strip_trailing_newlines ()
static void push_number ()
static void push_text ()
static void remove_noncomments (string_type *src, string_type *dst)
static void print_stack_level ()
static void paramstuff ()
static void translatecomments ()
static void outputdots ()
static void courierize ()
static void bulletize ()
static void do_fancy_stuff ()
static int iscommand (string_type *ptr, unsigned int idx)
static int copy_past_newline (string_type *ptr, unsigned int idx, string_type *dst)
static void icopy_past_newline ()
static void kill_bogus_lines ()
static void indent ()
static void get_stuff_in_command ()
static void swap ()
static void other_dup ()
static void drop ()
static void idrop ()
static void icatstr ()
static void skip_past_newline ()
static void internalmode ()
static void maybecatstr ()
char * nextword (char *string, char **word)
dict_typelookup_word (char *word)
static void perform ()
dict_typenewentry (char *word)
unsigned int add_to_definition (dict_type *entry, stinst_type word)
void add_intrinsic (char *name, void(*)() func)
void add_var (char *name)
void compile (char *string)
static void bang ()
static void atsign ()
static void hello ()
static void stdout_ ()
static void stderr_ ()
static void print ()
static void read_in (string_type *str, FILE *file)
static void usage ()
static void chew_exit ()
int main (int ac, av)

Variables

int internal_wanted
int internal_mode
int warning
string_type stack [STACK]
string_typetos
unsigned int idx = 0
string_typeptr
stinst_typepc
stinst_type sstack [STACK]
stinst_typessp = &sstack[0]
long istack [STACK]
longisp = &istack[0]
dict_typeroot


Define Documentation

#define DEF_SIZE   5000

Definition at line 95 of file chew.c.

Referenced by init_string().

#define NO_PARAMS   1

Referenced by paramstuff().

#define STACK   50

Definition at line 96 of file chew.c.


Typedef Documentation

Definition at line 295 of file chew.c.

typedef void(* stinst_type)()

Definition at line 276 of file chew.c.

typedef int* word_type

Definition at line 283 of file chew.c.


Function Documentation

void add_intrinsic ( char *  name,
void (*) ()  func 
)

Definition at line 1297 of file chew.c.

References add_to_definition(), and newentry().

Referenced by main().

unsigned int add_to_definition ( dict_type entry,
stinst_type  word 
)

Definition at line 1280 of file chew.c.

References realloc.

Referenced by add_intrinsic(), add_var(), and compile().

void add_var ( char *  name  ) 

Definition at line 1307 of file chew.c.

References add_to_definition(), newentry(), and push_number().

Referenced by compile().

static char* addr ( string_type buffer,
unsigned int  idx 
) [static]

Definition at line 178 of file chew.c.

Referenced by __gnu_unwind_pr_common(), _bfd_coff_generic_relocate_section(), _bfd_dwarf1_find_nearest_line(), _bfd_dwarf2_find_nearest_line(), _bfd_elf_get_synthetic_symtab(), _bfd_vms_write_tir(), _cntig_chk(), _dwarf_frame_address_offsets(), _nl_stride_dv(), _stride_dv(), _strip_mine(), _unpack_arry(), a29k_reloc(), adjust_address_1(), adjust_stack_reference(), allocate_reg_info(), alpha_expand_compare_and_swap_12(), alpha_expand_lock_test_and_set_12(), alpha_expand_unaligned_load(), alpha_expand_unaligned_store(), alpha_gimplify_va_arg_1(), alpha_initialize_trampoline(), alpha_va_arg(), altivec_expand_lv_builtin(), altivec_expand_stv_builtin(), Analyze_one_address(), annotate_constant_pool_refs(), HOIST_SUMMARY::Anticipated_at_CD(), aoutarm_fix_pcrel_26(), ar_reshape(), ar_transfer(), arc_va_arg(), arm_emit_base_file_entry(), arm_gen_load_multiple(), arm_gen_store_multiple(), arm_no_early_store_addr_dep(), arm_reorg(), arm_set_return_address(), assign_parms(), assign_stack_local_1(), avoid_constant_pool_reference(), bfd_elf_d30v_reloc(), bfd_elf_d30v_reloc_21(), bfd_get_bits(), bfd_getb16(), bfd_getb32(), bfd_getb64(), bfd_getb_signed_16(), bfd_getb_signed_32(), bfd_getb_signed_64(), bfd_getl16(), bfd_getl32(), bfd_getl64(), bfd_getl_signed_16(), bfd_getl_signed_32(), bfd_getl_signed_64(), bfd_getp32(), bfd_getp_signed_32(), bfd_put_bits(), bfd_putb16(), bfd_putb32(), bfd_putb64(), bfd_putl16(), bfd_putl32(), bfd_putl64(), bfd_putp32(), bfin_expand_call(), bfin_expand_prologue(), bfin_load_pic_reg(), build_addr_func(), build_address(), build_unary_op(), build_vbase_delete(), c_finish_omp_atomic(), clipper_builtin_saveregs(), clipper_va_arg(), cmp_operand(), coff_arm_reloc(), coff_i386_reloc(), coff_i860_reloc(), coff_mips_reloc(), coff_ppc_relocate_section(), coff_thumb_pcrel_common(), coff_tic80_relocate_section(), combine_bnp(), compute_alignment(), compute_argument_addresses(), compute_fill_extra_space(), compute_mov_length(), cond_move_dest_operand(), cond_move_operand(), condexec_memory_operand(), convert_nontype_argument(), cris_expand_builtin_va_arg(), cris_print_operand(), cris_split_movdx(), crx_expand_movmem_single(), cse_insn(), cselib_invalidate_mem(), cselib_invalidate_mem_1(), cselib_lookup_mem(), cwh_io_analyse_arr(), cwh_io_no_desc(), d30v_expand_prologue(), dbl_memory_one_insn_operand(), decodeInstr(), decompose(), default_gt_pch_use_address(), deps_may_trap_p(), disassemble(), do_ns32k_reloc(), double_memory_operand(), double_reg_from_memory(), double_reg_to_memory(), duplicate_call(), emit_frame_save(), emit_frame_store_1(), emit_library_call_value_1(), emit_push_insn(), ep_memory_operand(), expand_builtin_extend_pointer(), expand_builtin_extract_return_addr(), expand_builtin_frob_return_addr(), expand_builtin_va_arg(), expand_call(), expand_decl(), expand_epilogue(), expand_epilogue_reg_restore(), expand_expr(), expand_increment(), expand_prologue(), extend_operand(), extract_archive_member(), extract_reladdr(), fei_close(), fei_cvtop(), fei_dv_ptr_asg(), fei_inquire(), fei_length(), fei_open(), fei_ranget(), fei_select(), fei_static_simple_reloc_init(), fei_unit(), ffecom_char_args_x_(), ffecom_expr_(), ffecom_ptr_to_expr(), ffecom_sym_transform_(), find_best_addr(), find_inc_amount(), find_remembered_hi16s_reloc(), find_stack_direction(), first_phase(), fix_pcrel_26(), fixup_memory_subreg(), fold_rtx(), fold_rtx_mem_1(), force_expr_to_var_cost(), force_var_cost(), forwarding_offset(), fr30_move_double(), frv_expand_fdpic_call(), frv_expand_voidbinop_builtin(), frv_ifcvt_rewrite_mem(), gen_call(), gen_call_value(), gen_indexed_expr(), gen_reload_indi(), gen_reload_outdi(), gen_tablejump(), get_address_cost(), get_attr_value(), get_builtin_sync_mem(), get_callee_fndecl(), get_global_symtab(), get_memory_rtx(), gimplify_decl_expr(), gimplify_omp_atomic(), gimplify_parameters(), gpr_or_memory_operand_with_scratch(), h8300_adjust_insn_length(), h8300_eightbit_constant_address_p(), h8300_short_move_mem_p(), h8300_tiny_constant_address_p(), handle_attr_addr(), handle_istore(), handle_kid_of_istore(), AEQUIV::Handle_Store(), hppa_expand_prologue(), hppa_profile_hook(), hpux_gt_pch_get_address(), hpux_gt_pch_use_address(), i860_howto_highadj_reloc(), i860_howto_pc16_reloc(), i860_howto_pc26_reloc(), i860_howto_splitn_reloc(), ia64_adjust_cost(), ia64_gimplify_va_arg(), ia64_print_operand(), ia64_va_arg(), ihex_read_section(), ihex_scan(), ihex_write_object_contents(), init_alignment_context(), init_set_costs(), initialize_trampoline(), instantiate_decl(), instantiate_virtual_regs_in_insn(), invalidate(), ip2k_relax_switch_table_128(), ip2k_relax_switch_table_256(), IPO_Modify_WN_for_field_reorder(), iq2000_count_memory_refs(), issue_prefetch_ref(), ix86_agi_dependant(), ix86_agi_dependent(), ix86_expand_call(), ix86_expand_strlen(), ix86_gimplify_va_arg(), legitimize_address(), legitimize_pic_address(), linux_gt_pch_get_address(), linux_gt_pch_use_address(), lower_base_reference(), lower_bit_field_id(), lower_complex_expr(), lower_dereference(), lower_quad_expr(), lower_reduction_clauses(), m32c_pushm_popm(), m32c_rtx_costs(), m32r_elf_finish_dynamic_sections(), m32r_print_operand(), m68hc11_va_arg(), m88k_builtin_saveregs(), m88k_special_reloc(), machine_dependent_reorg(), machopic_legitimize_pic_address(), mcore_emit_base_file_entry(), mcore_output_call(), mdx_call(), mdx_call_value(), mem_min_alignment(), mf_xform_derefs_1(), mips32_64bit_reloc(), mips_count_memory_refs(), mips_elf64_write_relocs(), mips_elf_perform_relocation(), mips_emit_loadgp(), mips_gimplify_va_arg_expr(), mips_output_mi_thunk(), mmix_elf_reloc(), mmix_expand_builtin_va_arg(), mmix_final_link_relocate(), mmo_get_symbols(), mode_dependent_address_p(), mode_independent_operand(), move_block_to_fn(), move_section_contents(), msp430_branchinstr(), multiplier_allowed_in_address_p(), New_Gather_References(), noce_mem_write_may_trap_or_fault_p(), offset_address(), or32_elf_16_reloc(), or32_elf_32_reloc(), or32_elf_8_reloc(), or32_elf_const_reloc(), or32_elf_jumptarg_reloc(), or32_reloc(), output_153(), output_154(), output_155(), output_156(), output_move_double(), pa_gt_pch_get_address(), pa_gt_pch_use_address(), pe_print_edata(), pe_print_idata(), perform(), pj_elf_reloc(), pj_expand_builtin_va_arg(), ppc64_elf_next_toc_section(), print_data_statement(), print_input_section(), print_insn(), print_insn_cris_generic(), print_insn_ns32k(), print_instruction(), print_operand(), print_output_section_statement(), print_padding_statement(), print_reloc_statement(), probe_stack_range(), SUMMARIZE< program >::Process_callsite(), Promote_Pointer(), Read_PU_Infos(), reload(), ESSA::Rename(), replace_constant_pool_ref(), resolve_offset_ref(), restore_fpr(), restore_gprs(), romp_initialize_trampoline(), rs6000_emit_epilogue(), rs6000_emit_prologue(), rs6000_expand_builtin(), rs6000_gimplify_va_arg(), rs6000_output_function_epilogue(), rs6000_output_function_prologue(), s390_chunkify_finish(), s390_chunkify_pool(), s390_emit_epilogue(), s390_emit_prologue(), s390_find_pool(), s390_gimplify_va_arg(), s390_mainpool_finish(), s390_return_addr_rtx(), ESSA::Same_e_version_phi_result(), save_fpr(), save_gprs(), set_bb_for_stmt(), sh_elf64_reloc(), sh_elf_reloc(), sh_reloc(), simple_memory_operand(), simplify_aggr_init_expr(), single_reg_memory_operand(), smalloffset_mem_p(), sol_gt_pch_use_address(), sparc64_elf_write_relocs(), sparc_expand_compare_and_swap_12(), sparc_gimplify_va_arg(), sparc_va_arg(), split_branches(), split_quadword_operands(), std_expand_builtin_va_arg(), std_gimplify_va_arg_expr(), store_field(), substitute_ep_register(), tekhex_write_object_contents(), th_output_mi_thunk(), thumb_load_double_from_address(), thumb_set_return_address(), tic54x_getl32(), tic54x_getl_signed_32(), tic54x_putl32(), traverse_wn_tree(), tree_nrv(), tst_operand(), unw_access_gr(), unwind_frame(), unwind_get_obj_phdr(), uw_update_reg_address(), v850_elf_relax_section(), v850_reorg(), v850_va_arg(), verify_stmt(), verify_stmts(), WFE_Expand_Computed_Goto(), WFE_Expand_Expr(), WFE_Expand_Top_Level_Decl(), WFE_Lhs_Of_Modify_Expr(), WGEN_Expand_Computed_Goto(), WGEN_Expand_Expr(), WGEN_Lhs_Of_Modify_Expr(), WN_Annotate(), WN_get_global_symtab(), WN_get_symtab(), word_offset_memref_operand(), Write_PU_Infos(), xstormy16_expand_builtin_va_arg(), xtensa_emit_block_move(), xtensa_gimplify_va_arg_expr(), xtensa_return_addr(), and xtensa_va_arg().

static char at ( string_type buffer,
unsigned int  pos 
) [static]

static void atsign (  )  [static]

Definition at line 1392 of file chew.c.

References isp, and pc.

Referenced by main().

static void bang (  )  [static]

Definition at line 1383 of file chew.c.

References icheck_range(), isp, and pc.

static void bulletize (  )  [static]

Definition at line 729 of file chew.c.

References at(), catchar(), cattext(), delete_string(), idx, init_string(), isspace(), out, and pc.

Referenced by main().

static void call (  )  [static]

Definition at line 369 of file chew.c.

References exec(), and pc.

Referenced by IPAA_DF_SOLVER::Accumulate_ref_info(), add_call_clobber_ops(), bfin_expand_call(), OPT_PU_POINTS_TO_SUMMARIZER::Bind_callee_points_to_summary(), build_binary_op(), build_java_athrow(), build_java_binop(), build_java_soft_divmod(), build_jni_stub(), build_new_method_call(), can_value_number_call(), cgraph_create_edges(), IPAA_DF_SOLVER::Check_and_accumulate_ref_info(), compile(), compute_object_sizes(), Connect_indirect_call(), copy_bb(), copy_insn_1(), copy_rtx(), cwh_stmt_insert_conformance_check(), Delete_Call(), eliminate_tail_call(), eliminate_unnecessary_stmts(), execute_fixup_cfg(), execute_fold_all_builtins(), execute_optimize_stdarg(), execute_return_slot_opt(), expand_builtin_fork_or_exec(), expand_gimple_basic_block(), expand_invoke(), F90_Lower_Alloc_Dealloc(), F90_Lower_Create_Temp(), fei_allocate(), fei_length(), fei_malloc(), fei_mfree(), fei_ranget(), fei_ranset(), fei_rtc(), fei_unit(), ffecom_do_entry_(), find_tail_calls(), fold_builtin_fprintf(), fold_builtin_printf(), fold_builtin_sprintf(), Gen_Call(), EDGE_PROFILE::Gen_Call_BB(), Gen_Call_ref3(), Gen_Call_ref35(), Get_Expansion_Space(), handle_function_call(), handle_function_return(), Inline_callees_into_caller(), Instrument_Address(), Intra_PU_Formal_Cprop(), intrinsic_runtime(), ip2k_gen_signed_comp_branch(), ip2k_gen_unsigned_comp_branch(), IPO_Process_edge(), is_ctrl_altering_stmt(), is_escape_site(), OPT_STAB::Its_ret_val_of_malloc(), ix86_expand_call(), libcall_dead_p(), loop_only_exit_p(), lower_bit_field_id(), Lower_Master(), lower_return_ldid(), main(), IPAA_DF_SOLVER::Map_actuals(), Mark_readonly_param(), Mark_use_kill_param(), Merge_Section(), need_fake_edge_p(), nonpure_call_p(), noreturn_call_p(), print_rtx(), SUMMARIZE< program >::Process_chi_jump_function(), rebuild_cgraph_edges(), Rename_Call_To_Cloned_PU(), Replace_Icall(), Reset_param_list(), s390_emit_call(), sh_adjust_cost(), single_reachable_address(), sra_walk_modify_expr(), tree_gen_interval_profiler(), tree_gen_one_value_profiler(), tree_gen_pow2_profiler(), verify_cgraph_node(), vho_lower_comma(), WGEN_Expand_Expr(), WN_Create_Intrinsic(), WN_generic_call(), WN_Icall(), and xstormy16_expand_call().

static void catbuf ( string_type buffer,
char *  buf,
unsigned int  len 
) [static]

Definition at line 221 of file chew.c.

References memcpy, and realloc.

Referenced by catstr(), cattext(), and read_in().

static void catchar ( string_type buffer,
int  ch 
) [static]

static void catstr ( string_type dst,
string_type src 
) [static]

Definition at line 245 of file chew.c.

References catbuf(), buffer::ptr, and buffer::write_idx.

Referenced by icatstr(), maybecatstr(), other_dup(), and paramstuff().

static void cattext ( string_type buffer,
char *  string 
) [static]

static void check_range (  )  [static]

Definition at line 306 of file chew.c.

References die().

Referenced by drop(), get_stuff_in_command(), icatstr(), icopy_past_newline(), maybecatstr(), other_dup(), print(), and push_text().

static void chew_exit (  )  [static]

Definition at line 1470 of file chew.c.

References exit().

Referenced by main().

void compile ( char *  string  ) 

static int copy_past_newline ( string_type ptr,
unsigned int  idx,
string_type dst 
) [static]

Definition at line 849 of file chew.c.

References at(), and catchar().

Referenced by get_stuff_in_command(), and icopy_past_newline().

static void courierize (  )  [static]

Definition at line 642 of file chew.c.

References at(), catchar(), cattext(), idx, init_string(), islower(), out, overwrite_string(), and pc.

Referenced by main().

static void delete_string ( string_type buffer  )  [static]

Definition at line 171 of file chew.c.

References free().

Referenced by bulletize(), do_fancy_stuff(), icatstr(), indent(), kill_bogus_lines(), and maybecatstr().

static void die ( char *  msg  )  [static]

static void do_fancy_stuff (  )  [static]

Definition at line 784 of file chew.c.

References at(), catchar(), cattext(), delete_string(), idx, init_string(), isspace(), out, and pc.

Referenced by main().

static void drop (  )  [static]

Definition at line 1069 of file chew.c.

References check_range(), and pc.

Referenced by decDivideOp(), main(), and ppc64_elf_edit_toc().

static void exec ( dict_type word  )  [static]

Definition at line 360 of file chew.c.

References pc.

Referenced by call(), and perform().

static int find ( string_type str,
char *  what 
) [static]

Definition at line 145 of file chew.c.

References i, and p.

static void get_stuff_in_command (  )  [static]

Definition at line 1032 of file chew.c.

References at(), check_range(), copy_past_newline(), idx, init_string(), iscommand(), and pc.

Referenced by main().

static void hello (  )  [static]

Definition at line 1399 of file chew.c.

References pc, and printf().

Referenced by main().

static void icatstr (  )  [static]

Definition at line 1085 of file chew.c.

References catstr(), check_range(), delete_string(), and pc.

Referenced by main().

static void icheck_range (  )  [static]

Definition at line 315 of file chew.c.

References die(), isp, and istack.

Referenced by bang(), idrop(), internalmode(), print(), push_number(), stderr_(), and stdout_().

static void icopy_past_newline (  )  [static]

Definition at line 881 of file chew.c.

References check_range(), copy_past_newline(), idx, init_string(), and pc.

Referenced by main().

static void idrop (  )  [static]

Definition at line 1077 of file chew.c.

References icheck_range(), isp, and pc.

Referenced by main().

static void indent (  )  [static]

Definition at line 981 of file chew.c.

References at(), catchar(), cattext(), delete_string(), idx, init_string(), out, pc, and tab.

static void init_string ( string_type buffer  )  [static]

static void init_string_with_size ( string_type buffer,
unsigned int  size 
) [static]

Definition at line 128 of file chew.c.

References malloc.

Referenced by init_string().

static void internalmode (  )  [static]

Definition at line 1105 of file chew.c.

References icheck_range(), internal_mode, isp, and pc.

Referenced by main().

static int iscommand ( string_type ptr,
unsigned int  idx 
) [static]

Definition at line 823 of file chew.c.

References at(), isupper(), and len.

Referenced by get_stuff_in_command(), and perform().

static void kill_bogus_lines (  )  [static]

Definition at line 894 of file chew.c.

References at(), c, catchar(), delete_string(), dot, idx, init_string(), isspace(), out, pc, and sl.

Referenced by main().

dict_type* lookup_word ( char *  word  ) 

Definition at line 1216 of file chew.c.

References fprintf(), dict_struct::next, strcmp(), warning, and dict_struct::word.

Referenced by compile(), and perform().

int main ( int  ac,
av   
)

static void maybecatstr (  )  [static]

Definition at line 1114 of file chew.c.

References catstr(), check_range(), delete_string(), internal_mode, internal_wanted, and pc.

Referenced by main().

dict_type* newentry ( char *  word  ) 

Definition at line 1266 of file chew.c.

References dict_struct::code, and malloc.

Referenced by add_intrinsic(), add_var(), and compile().

char* nextword ( char *  string,
char **  word 
)

Definition at line 1127 of file chew.c.

References dst, idx, isspace(), length, malloc, and src.

Referenced by compile(), and perform().

static void other_dup (  )  [static]

Definition at line 1059 of file chew.c.

References catstr(), check_range(), init_string(), and pc.

Referenced by main().

static void outputdots (  )  [static]

Definition at line 597 of file chew.c.

References at(), c, catchar(), cattext(), idx, init_string(), out, overwrite_string(), and pc.

Referenced by main().

static void overwrite_string ( string_type dst,
string_type src 
) [static]

Definition at line 210 of file chew.c.

References free(), buffer::ptr, buffer::size, and buffer::write_idx.

Referenced by courierize(), outputdots(), paramstuff(), and translatecomments().

static void paramstuff (  )  [static]

Definition at line 492 of file chew.c.

References at(), catchar(), catstr(), cattext(), find(), idx, init_string(), isspace(), len, NO_PARAMS, out, overwrite_string(), and pc.

Referenced by main().

static void perform (  )  [static]

static void print (  )  [static]

Definition at line 1424 of file chew.c.

References check_range(), fprintf(), icheck_range(), isp, pc, and write_buffer.

static void print_stack_level (  )  [static]

Definition at line 476 of file chew.c.

References fprintf(), isp, istack, and pc.

Referenced by main().

static void push_number (  )  [static]

Definition at line 397 of file chew.c.

References icheck_range(), isp, long, and pc.

Referenced by add_var(), and compile().

static void push_text (  )  [static]

Definition at line 407 of file chew.c.

References cattext(), check_range(), init_string(), and pc.

Referenced by compile(), and main().

static void read_in ( string_type str,
FILE file 
) [static]

Definition at line 1440 of file chew.c.

References catbuf(), fread, and r.

Referenced by main().

static void remchar (  )  [static]

Definition at line 379 of file chew.c.

References pc, and buffer::write_idx.

Referenced by main().

static void remove_noncomments ( string_type src,
string_type dst 
) [static]

Definition at line 423 of file chew.c.

References at(), catchar(), cattext(), idx, and skip_white_and_stars().

Referenced by main().

static void skip_past_newline (  )  [static]

Definition at line 1095 of file chew.c.

References at(), idx, and pc.

Referenced by main(), and perform().

static unsigned int skip_white_and_stars ( string_type src,
unsigned int  idx 
) [static]

Definition at line 253 of file chew.c.

References at(), c, and isspace().

Referenced by remove_noncomments().

static void stderr_ (  )  [static]

Definition at line 1415 of file chew.c.

References icheck_range(), isp, and pc.

Referenced by main().

static void stdout_ (  )  [static]

Definition at line 1406 of file chew.c.

References icheck_range(), isp, and pc.

Referenced by main().

static void strip_trailing_newlines (  )  [static]

Definition at line 387 of file chew.c.

References at(), isspace(), pc, and buffer::write_idx.

Referenced by main().

static void swap (  )  [static]

static void translatecomments (  )  [static]

Definition at line 565 of file chew.c.

References at(), catchar(), cattext(), idx, init_string(), out, overwrite_string(), and pc.

Referenced by main().

static void usage ( void   )  [static]

static void write_buffer ( string_type buffer,
FILE f 
) [static]

Definition at line 163 of file chew.c.

References fwrite.


Variable Documentation

unsigned int idx = 0

Definition at line 274 of file chew.c.

Definition at line 99 of file chew.c.

Referenced by internalmode(), and maybecatstr().

Definition at line 98 of file chew.c.

Referenced by main(), and maybecatstr().

long* isp = &istack[0]

Definition at line 280 of file chew.c.

Referenced by icheck_range(), and print_stack_level().

Definition at line 275 of file chew.c.

Definition at line 279 of file chew.c.

Definition at line 278 of file chew.c.

Definition at line 271 of file chew.c.

int warning

Definition at line 101 of file chew.c.

Referenced by add_category(), add_friend(), add_implicitly_declared_members(), add_presence_absence(), add_special_options(), add_to_renaming_pragma_list(), align_variable(), altivec_resolve_overloaded_builtin(), arc_handle_interrupt_attribute(), arm_debugger_arg_offset(), arm_handle_fndecl_attribute(), arm_handle_isr_attribute(), arm_override_options(), assemble_alias(), assemble_noswitch_variable(), assemble_variable(), avoid_dollar_number(), avr_handle_fndecl_attribute(), avr_handle_progmem_attribute(), avr_section_type_flags(), bfin_handle_longcall_attribute(), build_array_declarator(), build_array_ref(), build_asm_stmt(), build_base_field(), build_binary_op(), build_c_cast(), build_class_member_access_expr(), build_compound_expr(), build_conditional_expr(), build_delete(), build_dynamic_cast_1(), build_expr_type_conversion(), build_external_ref(), build_function_call(), build_indirect_ref(), build_ivar_reference(), build_new(), build_new_method_call(), build_new_op(), build_reinterpret_cast_1(), build_static_cast_1(), build_temp(), build_throw(), build_x_compound_expr(), build_x_unary_op(), build_x_va_arg(), c4x_handle_fntype_attribute(), c4x_override_options(), c4x_parse_pragma(), c_add_case_label(), c_build_bitfield_integer_type(), c_cannot_inline_tree_fn(), c_common_decode_option(), c_common_handle_option(), c_common_parse_file(), c_common_post_options(), c_common_truthvalue_conversion(), c_do_switch_warnings(), c_expand_return(), c_finish_if_stmt(), c_finish_incomplete_decl(), c_finish_omp_for(), c_finish_return(), c_parser_asm_statement(), c_parser_omp_clause_num_threads(), c_parser_unary_expression(), c_start_case(), c_strlen(), c_warn_unused_result(), cb_def_pragma(), cb_dir_change(), cb_file_change(), change_decl_assembler_name(), check_automata_insn_issues(), check_automaton_usage(), check_bases(), check_bitfield_decl(), check_bitfield_type_and_width(), check_case_bounds(), check_duplicates(), check_existence_of_phases(), check_field_decls(), check_final_overrider(), check_for_full_enumeration_handling(), check_for_out_of_scope_variable(), check_format_info(), check_format_info_main(), check_format_types(), check_function_format(), check_function_return_warnings(), check_function_sentinel(), check_global_declaration_1(), check_handlers_1(), check_initializer(), check_methods(), check_methods_accessible(), check_nonnull_arg(), check_old_CC_options(), check_omp_nesting_restrictions(), check_output_name(), check_protocol(), check_return_expr(), Check_Target(), check_usage(), combine_strings(), common_handle_option(), complain_wrong_lang(), constrain_class_visibility(), convert_and_check(), convert_arg_to_ellipsis(), convert_arguments(), convert_for_arg_passing(), convert_for_assignment(), convert_for_initialization(), convert_like_real(), convert_to_reference(), convert_to_void(), coverage_end_function(), cp_convert_to_pointer(), cp_finish_decl(), cp_finish_file(), cp_parser_cast_expression(), cp_parser_elaborated_type_specifier(), cp_parser_init_declarator(), cp_parser_parameter_declaration(), cp_parser_template_declaration(), cp_parser_warn_min_max(), cris_expand_prologue(), cris_override_options(), cris_target_asm_function_prologue(), cxx_incomplete_type_diagnostic(), cxx_mark_addressable(), darwin_assemble_visibility(), darwin_handle_kext_attribute(), darwin_handle_weak_import_attribute(), darwin_override_options(), darwin_pragma_options(), darwin_pragma_unused(), decl_attributes(), declare_weak(), declspecs_add_scspec(), decode_d_option(), decode_f_option(), decode_format_attr(), decode_g_option(), decode_options(), decode_W_option(), default_assemble_visibility(), define_label(), DEFUN(), delete_sanity(), diagnose_mismatched_decls(), do_assert(), do_define(), do_friend(), do_undef(), do_warn_unused_parameter(), do_warning(), dubious_conversion_warnings(), dump_switch_p(), dump_switch_p_1(), duplicate_decls(), emit_mem_initializers(), emit_side_effect_warnings(), empty_body_warning(), execute_warn_function_noreturn(), execute_warn_function_return(), expand_asm_operands(), expand_builtin_frame_address(), expand_builtin_memory_chk(), expand_builtin_next_arg(), expand_builtin_prefetch(), expand_builtin_va_arg(), expand_byte_code(), expand_call(), expand_call_inline(), expand_end_case_type(), fe_file_change(), ffe_decode_option(), ffecom_init_0(), ffelex_cfebackslash_(), ffelex_hash_(), finalize_record_size(), find_subframework_file(), finish_anon_union(), finish_asm_stmt(), finish_decl(), finish_declspecs(), finish_dollar_format_checking(), finish_enum(), finish_function(), finish_mangling(), finish_message_expr(), finish_objc(), finish_struct(), finish_struct_1(), fix_range(), fix_register(), fold_builtin_inf(), fold_builtin_next_arg(), fold_overflow_warning(), fold_truthop(), fold_undefer_overflow_warnings(), for(), format_type_warning(), function_arg(), gcse_main(), genrtl_asm_stmt(), genrtl_case_label(), get_base_filename(), get_coverage_counts(), get_default_cpu_name(), get_delta_difference(), get_object_reference(), get_parm_info(), get_simple_loop_desc(), ghs_pragma_endsda(), ghs_pragma_endtda(), ghs_pragma_endzda(), ghs_pragma_interrupt(), ghs_pragma_section(), ghs_pragma_startsda(), ghs_pragma_starttda(), ghs_pragma_startzda(), gimplify_expr_stmt(), gimplify_va_arg_expr(), give_name_to_locals(), globalize_reg(), grok_op_properties(), grokdeclarator(), grokfield(), grokparms(), grokvardecl(), GTY(), h8300_handle_eightbit_data_attribute(), h8300_handle_fndecl_attribute(), h8300_handle_tiny_data_attribute(), handle_alias_attribute(), handle_always_inline_attribute(), handle_cleanup_attribute(), handle_com_interface_attribute(), handle_common_attribute(), handle_const_attribute(), handle_constructor_attribute(), handle_deprecated_attribute(), handle_destructor_attribute(), handle_externally_visible_attribute(), handle_flatten_attribute(), handle_gnu_inline_attribute(), handle_init_priority_attribute(), handle_int_attribute(), handle_malloc_attribute(), handle_mode_attribute(), handle_nocommon_attribute(), handle_noinline_attribute(), handle_noreturn_attribute(), handle_nothrow_attribute(), handle_packed_attribute(), handle_pragma(), handle_pragma_freq_hint(), handle_pragma_implementation(), handle_pragma_java_exceptions(), handle_pragma_visibility(), handle_pragma_weak(), handle_pure_attribute(), handle_returns_twice_attribute(), handle_sentinel_attribute(), handle_tls_model_attribute(), handle_transparent_union_attribute(), handle_unused_attribute(), handle_used_attribute(), handle_vector_size_attribute(), handle_visibility_attribute(), handle_warn_unused_result_attribute(), handle_weak_attribute(), handle_weakref_attribute(), i386_pe_encode_section_info(), i386_pe_type_dllimport_p(), i960_output_function_prologue(), i960_pr_align(), i960_pr_noalign(), ia64_handle_model_attribute(), ia64_hpux_handle_builtin_pragma(), ia64_override_options(), if(), implicit_decl_warning(), implicitly_declare(), init_branch_prob(), init_function_start(), inlinable_function_p(), internal_build_compound_expr(), interpret_float(), interpret_integer(), ip2k_handle_fndecl_attribute(), ip2k_handle_progmem_attribute(), is_public(), is_too_expensive(), ix86_handle_cconv_attribute(), ix86_handle_cdecl_attribute(), ix86_handle_dll_attribute(), ix86_handle_regparm_attribute(), ix86_handle_shared_attribute(), ix86_handle_struct_attribute(), ix86_internal_arg_pointer(), ix86_return_in_memory(), ix86_struct_value_rtx(), joust(), layout_class_type(), layout_decl(), layout_empty_base(), layout_virtual_bases(), lazily_declare_fn(), lex_string(), lookup_word(), m32c_pragma_memregs(), m32r_handle_model_attribute(), m68hc11_encode_section_info(), m68hc11_handle_fntype_attribute(), m68hc11_handle_page0_attribute(), m68hc11_override_options(), m68k_handle_fndecl_attribute(), m68k_output_function_prologue(), m88k_debugger_offset(), m88k_function_arg(), main(), make_decl_rtl(), make_friend_class(), make_insn_raw(), mark_current_function_as_interrupt(), match_case_to_enum_1(), maybe_apply_renaming_pragma(), maybe_commonize_var(), maybe_emit_chk_warning(), maybe_emit_sprintf_chk_warning(), maybe_read_dollar_number(), maybe_warn_about_overly_private_class(), maybe_warn_about_returning_address_of_local(), mcore_handle_naked_attribute(), merge_weak(), mf_xform_derefs_1(), mips_output_filename(), mips_parse_cpu(), mmix_override_options(), mt_handle_interrupt_attribute(), mudflap_finish_file(), mx_register_decls(), ns32k_handle_fntype_attribute(), number_of_iterations_exit(), objc_comptypes(), objc_declare_alias(), ocp_convert(), optimize_bit_field_compare(), out_adj_frame_ptr(), output_call(), output_function_profiler(), overflow_warning(), override_options(), pa_asm_output_aligned_common(), parmlist_tags_warning(), parse_input_constraint(), parse_options_and_default_flags(), parse_output_constraint(), parse_strconst_pragma(), parse_using_directive(), parse_W_option(), parser_build_binary_op(), perform(), perform_member_init(), place_field(), pop_data_area(), pop_label(), pop_scope(), poplevel(), prescan_options(), PRINTMSG(), process_command(), process_decls(), process_function_and_variable_attributes(), process_include(), process_init_constructor(), process_init_element(), Process_Opt_Group(), process_options(), push_namespace_with_attribs(), push_overloaded_decl(), pushdecl(), pushdecl_maybe_friend(), read_counts_file(), read_process_identifier(), reload(), remove_bb(), remove_useless_stmts_warn_notreached(), reparse_absdcl_as_casts(), rescan(), reshape_init(), reshape_init_r(), rest_of_handle_branch_target_load_optimize(), rs6000_emit_allocate_stack(), rs6000_handle_altivec_attribute(), rs6000_handle_longcall_attribute(), rs6000_handle_option(), rs6000_handle_struct_attribute(), rs6000_override_options(), rs6000_parse_abi_options(), rs6000_parse_alignment_option(), rs6000_pass_by_reference(), rs6000_pragma_longcall(), rs6000_return_in_memory(), run_pixie(), run_prof(), s390_emit_prologue(), score_override_options(), set_constant_value(), set_cpu(), set_debug_level(), setjmp_args_warning(), setjmp_vars_warning(), sh_handle_interrupt_handler_attribute(), sh_handle_sp_switch_attribute(), sh_handle_trap_exit_attribute(), sh_insert_attributes(), sh_symbian_dllimport_p(), sh_symbian_encode_section_info(), sh_symbian_handle_dll_attribute(), shadow_tag(), shadow_tag_warned(), shadow_warning(), shorten_compare(), simplify_abs_using_ranges(), simplify_const_relational_operation(), simplify_div_or_mod_using_ranges(), skip_to_end_of_comment(), solaris_insert_attributes(), solaris_pragma_align(), solaris_pragma_fini(), solaris_pragma_init(), sort_mem_initializers(), spec_reg_info(), start_class(), start_decl(), start_function(), start_preparsed_function(), start_protocol(), store_init_value(), store_parm_decls(), store_parm_decls_newstyle(), store_parm_decls_oldstyle(), strict_aliasing_warning(), string_conv_p(), strip_attrs(), synthesize_method(), toggle(), toggle_inline_off(), toggle_inline_on(), tree_expand_cfg(), tree_rest_of_compilation(), truthvalue_conversion(), try_to_integrate(), turn_down_opt_level(), turn_off_ipa(), unsigned_conversion_warning(), v850_handle_interrupt_attribute(), validate_proto_after_old_defn(), vrp_evaluate_conditional(), want_directory(), warn_about_ambiguous_bases(), warn_about_implicit_typename_lookup(), warn_array_subscript_with_type_char(), warn_deprecated_use(), warn_for_collisions_1(), warn_hidden(), warn_if_shadowing(), warn_if_unknown_interface(), warn_if_unused_value(), warn_ignored(), warn_no_longer_needed(), warn_no_longer_supported(), warn_no_longer_supported2(), warn_nyi(), warn_uninit(), warning_init(), weak_finish(), weak_finish_1(), WFE_Expand_Expr(), WFE_Weak_Finish(), xref_tag(), xstormy16_handle_below100_attribute(), xstormy16_handle_interrupt_attribute(), and xtensa_multibss_section_type_flags().


Generated on Wed Apr 8 14:47:43 2009 for Open64 by  doxygen 1.5.6