Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
token_buffer.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum Format_Kind FORMAT_KIND
typedef struct Token_BufferTOKEN_BUFFER

Enumerations

enum  Format_Kind { FREE_FORMAT = 0, F77_TAB_FORMAT = 1, F77_ANSI_FORMAT = 2, NUM_FORMAT_KINDS = F77_ANSI_FORMAT }

Functions

void Initialize_Token_Buffer (FORMAT_KIND output_format, BOOL prompf_srcmap_format)
void Terminate_Token_Buffer (FILE *srcpos_map_file)
void Set_Maximum_Linelength (UINT32 max_linelength)
BOOL Has_Maximum_Linelength (void)
UINT32 Get_Maximum_Linelength (void)
TOKEN_BUFFER New_Token_Buffer (void)
void Reclaim_Token_Buffer (TOKEN_BUFFER *tokens)
BOOL Is_Empty_Token_Buffer (TOKEN_BUFFER tokens)
BOOL Identical_Token_Lists (TOKEN_BUFFER tokens1, TOKEN_BUFFER tokens2)
void Free_Token_Buffer_Memory (void)
UINT Current_Indentation (void)
void Set_Current_Indentation (UINT ident)
void Set_Indentation_Step (UINT num_spaces)
void Increment_Indentation (void)
void Decrement_Indentation (void)
void Zero_Indentation (void)
void Append_Indented_Newline (TOKEN_BUFFER tokens, UINT num_lines)
void Append_Token_String (TOKEN_BUFFER tokens, const char *string)
void Append_Token_Special (TOKEN_BUFFER tokens, char special)
void Append_And_Copy_Token_List (TOKEN_BUFFER result_tokens, TOKEN_BUFFER copy_tokens)
void Append_And_Reclaim_Token_List (TOKEN_BUFFER result_tokens, TOKEN_BUFFER *reclaim_tokens)
void Prepend_Indented_Newline (TOKEN_BUFFER tokens, UINT num_lines)
void Prepend_Token_String (TOKEN_BUFFER tokens, const char *string)
void Prepend_Token_Special (TOKEN_BUFFER tokens, char special)
void Prepend_And_Copy_Token_List (TOKEN_BUFFER result_tokens, TOKEN_BUFFER copy_tokens)
void Prepend_And_Reclaim_Token_List (TOKEN_BUFFER result_tokens, TOKEN_BUFFER *reclaim_tokens)
void Append_F77_Indented_Newline (TOKEN_BUFFER tokens, UINT num_lines, const char *label)
void Prepend_F77_Indented_Newline (TOKEN_BUFFER tokens, UINT num_lines, const char *label)
void Append_F77_Indented_Continuation (TOKEN_BUFFER tokens)
void Prepend_F77_Indented_Continuation (TOKEN_BUFFER tokens)
void Append_F77_Comment_Newline (TOKEN_BUFFER tokens, UINT num_lines, BOOL indent_last_line)
void Prepend_F77_Comment_Newline (TOKEN_BUFFER tokens, UINT num_lines, BOOL indent_last_line)
void Append_F77_Directive_Newline (TOKEN_BUFFER tokens, const char *directive_prefix)
void Prepend_F77_Directive_Newline (TOKEN_BUFFER tokens, const char *directive_prefix)
void Append_F77_Sequence_No (TOKEN_BUFFER tokens, const char *seq_no)
void Prepend_F77_Sequence_No (TOKEN_BUFFER tokens, const char *seq_no)
void Append_Srcpos_Map (TOKEN_BUFFER tokens, SRCPOS srcpos)
void Append_Srcpos_Directive (TOKEN_BUFFER tokens, SRCPOS srcpos)
void Prepend_Srcpos_Map (TOKEN_BUFFER tokens, SRCPOS srcpos)
void Prepend_Srcpos_Directive (TOKEN_BUFFER tokens, SRCPOS srcpos)
void Write_And_Reclaim_Tokens (FILE *ofile, FILE *srcpos_map_file, TOKEN_BUFFER *tokens)
void Str_Write_And_Reclaim_Tokens (char *strbuf, UINT32 buflen, TOKEN_BUFFER *tokens)
void Write_String (FILE *ofile, FILE *srcpos_map_file, const char *str)

Typedef Documentation

typedef enum Format_Kind FORMAT_KIND
typedef struct Token_Buffer* TOKEN_BUFFER

Definition at line 148 of file token_buffer.h.


Enumeration Type Documentation

Enumerator:
FREE_FORMAT 
F77_TAB_FORMAT 
F77_ANSI_FORMAT 
NUM_FORMAT_KINDS 

Definition at line 127 of file token_buffer.h.


Function Documentation

void Append_And_Copy_Token_List ( TOKEN_BUFFER  result_tokens,
TOKEN_BUFFER  copy_tokens 
)

Definition at line 1645 of file token_buffer.cxx.

References append_token_list(), copy_token_list(), Token_Sequence::first, Is_True, NO_TOKEN_IDX, and NULL.

Referenced by Append_And_Reclaim_Token_List(), and INIT2F_Translate_Array_Ref().

Here is the call graph for this function:

void Append_And_Reclaim_Token_List ( TOKEN_BUFFER  result_tokens,
TOKEN_BUFFER reclaim_tokens 
)

Definition at line 1659 of file token_buffer.cxx.

References Append_And_Copy_Token_List(), and Reclaim_Token_Buffer().

Referenced by Append_A_Clause_Symbol(), Append_Clause_Expressions(), Append_Nest_Clauses(), INIT2F_Append_Initializer(), INIT2F_Implied_DoLoop(), INITO2F_translate(), INITV2C_symoff(), INITV2C_val(), PARAMETER2F_translate(), ST2C_basic_decl(), ST2C_Declare_Tempvar(), ST2C_Define_A_Common_Block(), ST2C_Define_Preg(), ST2C_formal_ref_decl(), ST2C_func_header(), ST2F_decl_parameter(), ST2F_decl_type(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_func_header(), TY2C_prototype_params(), TY2C_Translate_Structure(), TY2F_Declare_Common_Flds(), TY2F_Translate_ArrayElt(), TY2F_Translate_Common(), TY2F_Translate_EquivCommon_PtrFld(), TY2F_Translate_Structure(), WN2C_address_add(), WN2C_append_addr_plus_expr(), WN2C_Append_Assignment(), WN2C_append_cast(), WN2C_Append_Preg(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2C_array(), WN2C_based_lvalue(), WN2C_block(), WN2C_bnor(), WN2C_call(), WN2C_cvt(), WN2C_cvtl(), WN2C_Declare_Return_Variable(), WN2C_funcall_op(), WN2C_Function_Return_Value(), WN2C_iload(), WN2C_infix_op(), WN2C_intrinsic_op(), WN2C_lda(), WN2C_ldid(), WN2C_Load_From_PregIdx(), WN2C_Load_Return_Reg(), WN2C_madd(), WN2C_mload(), WN2C_msub(), WN2C_nmadd(), WN2C_nmsub(), WN2C_parm(), WN2C_Store_Return_Reg(), WN2C_tas(), WN2C_translate_purple_main(), WN2C_Value_Reference(), WN2F_Append_Block_Data(), WN2F_Append_IO_CtrlList(), WN2F_block(), WN2F_call(), WN2F_cvt(), WN2F_cvtl(), WN2F_Denormalize_Array_Idx(), WN2F_Exit_PU_Block(), WN2F_interface_blk(), WN2F_io(), WN2F_ios_inqlength(), WN2F_istore(), WN2F_Load_Return_Reg(), WN2F_mstore(), WN2F_OLD_Den_Arr_Idx(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), WN2F_tempvar_rhs(), WN2F_Translate_DoLoop_Bound(), and WN2F_translate_purple_main().

Here is the call graph for this function:

void Append_F77_Comment_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines,
BOOL  indent_last_line 
)
void Append_F77_Sequence_No ( TOKEN_BUFFER  tokens,
const char *  seq_no 
)

Definition at line 1864 of file token_buffer.cxx.

References append_token_list(), f77_seqno_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and Output_Format.

Here is the call graph for this function:

void Append_Srcpos_Directive ( TOKEN_BUFFER  tokens,
SRCPOS  srcpos 
)

Definition at line 1911 of file token_buffer.cxx.

References append_token_list(), Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and Srcpos_Directive_Token().

Referenced by WN2C_Stmt_Newline(), and WN2F_Stmt_Newline().

Here is the call graph for this function:

void Append_Srcpos_Map ( TOKEN_BUFFER  tokens,
SRCPOS  srcpos 
)

Definition at line 1898 of file token_buffer.cxx.

References append_token_list(), Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and Srcpos_Map_Token().

Referenced by WN2C_Stmt_Newline(), WN2F_Directive_Newline(), and WN2F_Stmt_Newline().

Here is the call graph for this function:

void Append_Token_Special ( TOKEN_BUFFER  tokens,
char  special 
)

Definition at line 1632 of file token_buffer.cxx.

References append_token_list(), Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and special_char_token().

Referenced by Append_Arg_Numbers(), Append_Array_Segment(), Append_Clause_Expressions(), Append_Clause_Symbols(), Append_Distribution(), Append_Implicit_Locals(), Append_Nest_Clauses(), Append_Pragma_Clauses(), Append_Prefetch_Attributes(), Append_Reduction_Clause(), Append_Reduction_Operator(), INIT2F_Append_Initializer(), INIT2F_Implied_DoLoop(), INIT2F_Translate_Char_Ref(), INITO2C_translate(), INITO2F_translate(), INITV2C_array_dimension(), INITV2C_block_array(), INITV2C_block_struct(), INITV2C_block_union(), INITV2C_struct_fill(), INITV2C_symoff(), INITV2C_symoff_help(), INITV2C_val(), INITVKIND_val(), PARAMETER2F_translate(), ST2C_decl_const(), ST2C_decl_var(), ST2C_Declare_Tempvar(), ST2C_Define_A_Common_Block(), ST2C_Define_Preg(), ST2C_func_header(), ST2C_Get_Common_Ty2c_List(), ST2C_weakext_translate(), ST2F_decl_parameter(), ST2F_decl_var(), ST2F_func_header(), ST2F_use_var(), TCON2C_translate(), TCON2F_translate(), TY2C_array(), TY2C_function(), TY2C_Output_Struct_Type(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), TY2C_prototype_params(), TY2C_scalar(), TY2C_Translate_Structure(), TY2F_Append_ARB(), TY2F_Append_Assumed_Single_Dim(), TY2F_array(), TY2F_array_for_pointer(), TY2F_Equivalence(), TY2F_Fld_Separator(), TY2F_List_Common_Flds(), TY2F_pointer(), TY2F_Purple_Assumed_Sized_Array(), TY2F_Purple_Ptr_As_Array(), TY2F_Translate_ArrayElt(), TY2F_Translate_EquivCommon_PtrFld(), W2F_Outfile_Translate_Pu(), WHIRL2C_parenthesize(), WHIRL2F_Parenthesize(), WN2C_address_add(), WN2C_alloca(), WN2C_altentry(), WN2C_append_addr_plus_const(), WN2C_append_addr_plus_expr(), WN2C_Append_Assignment(), WN2C_Append_Purple_Funcinfo(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2C_array(), WN2C_Assign_Complex_Const(), WN2C_based_lvalue(), WN2C_block(), WN2C_bnor(), WN2C_call(), WN2C_Callsite_Directives(), WN2C_comma(), WN2C_compgoto(), WN2C_complex(), WN2C_compose_bits(), WN2C_condbr(), WN2C_const(), WN2C_dealloca(), WN2C_Declare_Return_Parameter(), WN2C_Declare_Return_Variable(), WN2C_do_loop(), WN2C_do_while(), WN2C_extract_bits(), WN2C_func_entry(), WN2C_funcall_op(), WN2C_Function_Call_Lhs(), WN2C_generate_cast(), WN2C_if(), WN2C_imagpart(), WN2C_infix_op(), WN2C_intrinsic_op(), WN2C_label(), WN2C_lda(), WN2C_ldid(), WN2C_Load_Return_Reg(), WN2C_madd(), WN2C_mstore(), WN2C_msub(), WN2C_nmadd(), WN2C_nmsub(), WN2C_Normalize_Idx_To_Onedim(), WN2C_paren(), WN2C_pragma_list_end(), WN2C_prefetch(), WN2C_process_pragma(), WN2C_rcomma(), WN2C_realpart(), WN2C_return_val(), WN2C_select(), WN2C_Store_Return_Reg(), WN2C_switch(), WN2C_Translate_Comma_Sequence(), WN2C_translate_purple_main(), WN2C_Translate_Stmt_Sequence(), WN2C_while_do(), WN2F_Address_Of(), WN2F_alloca(), WN2F_Append_Block_Data(), WN2F_Append_IO_CtrlList(), WN2F_Append_IO_List(), WN2F_Append_Purple_Funcinfo(), WN2F_Append_Purple_Xsym(), WN2F_ar_construct(), WN2F_array(), WN2F_array_bounds(), WN2F_Array_Slots(), WN2F_arrsection(), WN2F_arrsection_bounds(), WN2F_Arrsection_Slots(), WN2F_ashr(), WN2F_Binary_Substr_Op(), WN2F_Block(), WN2F_bnor(), WN2F_call(), WN2F_Callsite_Directives(), WN2F_casegoto(), WN2F_compgoto(), WN2F_complex(), WN2F_condbr(), WN2F_const(), WN2F_Convert(), WN2F_dealloca(), WN2F_Denormalize_Array_Idx(), WN2F_do_loop(), WN2F_do_while(), WN2F_emit_ctrl(), WN2F_Emit_End_Stmt(), WN2F_End_Routine_Strings(), WN2F_eq(), WN2F_eval(), WN2F_Expr_Plus_Literal(), WN2F_Funcall_Op(), WN2F_if(), WN2F_iload(), WN2F_imagpart(), WN2F_implicit_bnd(), WN2F_implied_do(), WN2F_Infix_Op(), WN2F_intconst(), WN2F_interface_blk(), WN2F_Intr_Funcall(), WN2F_Intr_Infix(), WN2F_intrinsic_call(), WN2F_io_control(), WN2F_io_format(), WN2F_io_list(), WN2F_io_unit(), WN2F_ios_accept(), WN2F_ios_decode(), WN2F_ios_definefile(), WN2F_ios_encode(), WN2F_ios_inqlength(), WN2F_ios_namelist(), WN2F_ios_print(), WN2F_ios_read(), WN2F_ios_type(), WN2F_istore(), WN2F_Load_Return_Reg(), WN2F_lshr(), WN2F_madd(), WN2F_mstore(), WN2F_msub(), WN2F_nmadd(), WN2F_nmsub(), WN2F_noio_implied_do(), WN2F_Normalize_Idx_To_Onedim(), WN2F_nullify_stmt(), WN2F_Offset_Memref(), WN2F_Offset_Symref(), WN2F_OLD_Den_Arr_Idx(), WN2F_paren(), WN2F_parm(), WN2F_prefetch(), WN2F_process_pragma(), WN2F_pstid(), WN2F_pstore(), WN2F_realpart(), WN2F_recip(), WN2F_return(), WN2F_rsqrt(), WN2F_select(), WN2F_src_triplet(), WN2F_stid(), WN2F_strctfld(), WN2F_String_Argument(), WN2F_Substring(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), WN2F_Translate_StringLEN(), WN2F_triplet(), WN2F_where(), WN2F_while_do(), Write_Scalar_Typedef(), and Write_Typedef().

Here is the call graph for this function:

void Append_Token_String ( TOKEN_BUFFER  tokens,
const char *  string 
)

Definition at line 1616 of file token_buffer.cxx.

References append_token_list(), Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and string_token().

Referenced by Append_Arg_Numbers(), Append_Cplus_Initialization(), Append_Distribution(), Append_Implicit_Locals(), Append_MP_Schedtype(), Append_Nest_Clauses(), Append_Pragma_Clauses(), Append_Prefetch_Attributes(), Append_Reduction_Clause(), Append_Reduction_Operator(), Append_ST_String(), Emit_To_PUinfo_Pragmas(), INIT2F_Implied_DoLoop(), INIT2F_Translate_Char_Ref(), INITO2F_translate(), INITV2C_block_array(), INITV2C_block_struct(), INITV2C_struct_fill(), INITV2C_symoff(), INITVKIND_const(), PARAMETER2F_translate(), ST2C_basic_decl(), ST2C_Declare_Tempvar(), ST2C_Define_Preg(), ST2C_formal_ref_decl(), ST2C_func_header(), ST2C_Get_Common_Ty2c_List(), ST2C_use_const(), ST2C_use_func(), ST2C_Use_Preg(), ST2C_use_var(), ST2C_weakext_translate(), ST2F_decl_func(), ST2F_decl_parameter(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_deref_translate(), ST2F_func_header(), ST2F_output_keyword(), ST2F_use_block(), ST2F_use_func(), ST2F_Use_Preg(), ST2F_use_var(), TCON2C_Append_String_Const(), TCON2C_translate(), TCON2F_Append_String_Const(), TCON2F_hollerith(), TCON2F_translate(), TY2C_function(), TY2C_get_field_info(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), TY2C_prototype_params(), TY2C_Translate_Structure(), TY2F_Append_Array_Bnd_Ph(), TY2F_Append_Assumed_Single_Dim(), TY2F_Declare_Common_Flds(), TY2F_Equivalence(), TY2F_List_Common_Flds(), TY2F_Purple_Assumed_Sized_Array(), TY2F_Purple_Ptr_As_Array(), TY2F_Translate_ArrayElt(), TY2F_Translate_Common(), TY2F_Translate_EquivCommon_PtrFld(), TY2F_Translate_Fld_Path(), TY2F_Translate_Structure(), WHIRL2F_Append_Comment(), WN2C_alloca(), WN2C_altentry(), WN2C_Append_Assignment(), WN2C_append_label_name(), WN2C_Append_Pragma_Newline(), WN2C_Append_Purple_Funcinfo(), WN2C_Assign_Complex_Const(), WN2C_based_lvalue(), WN2C_block(), WN2C_call(), WN2C_Callsite_Directives(), WN2C_comment(), WN2C_compgoto(), WN2C_complex(), WN2C_compose_bits(), WN2C_condbr(), WN2C_const(), WN2C_dealloca(), WN2C_Declare_Return_Parameter(), WN2C_Declare_Return_Variable(), WN2C_do_loop(), WN2C_do_while(), WN2C_End_Prompf_Construct(), WN2C_exc_scope_begin(), WN2C_exc_scope_end(), WN2C_extract_bits(), WN2C_func_entry(), WN2C_funcall_op(), WN2C_Function_Call_Lhs(), WN2C_Function_Return_Value(), WN2C_goto(), WN2C_if(), WN2C_iload(), WN2C_imagpart(), WN2C_intrinsic_op(), WN2C_lda(), WN2C_ldid(), WN2C_Load_Return_Reg(), WN2C_lvalue_st(), WN2C_mload(), WN2C_mstore(), WN2C_Normalize_Idx_To_Onedim(), WN2C_pragma(), WN2C_prefetch(), WN2C_Prefetch_Map(), WN2C_process_pragma(), WN2C_Prompf_Construct_End(), WN2C_Prompf_Construct_Start(), WN2C_rcomma(), WN2C_realpart(), WN2C_region(), WN2C_return(), WN2C_return_val(), WN2C_Start_Prompf_Construct(), WN2C_Store_Return_Reg(), WN2C_switch(), WN2C_translate_purple_main(), WN2C_Translate_Stmt_Sequence(), WN2C_unsupported(), WN2C_while_do(), WN2F_agoto(), WN2F_alloca(), WN2F_Append_Block_Data(), WN2F_Append_Pragma_Preamble(), WN2F_Append_Prefetch_Map(), WN2F_Append_Purple_Funcinfo(), WN2F_Append_Purple_Xsym(), WN2F_array(), WN2F_array_bounds(), WN2F_arrsection(), WN2F_arrsection_bounds(), WN2F_ashr(), WN2F_Begin_Prompf_Transformed_Func(), WN2F_Binary_Substr_Op(), WN2F_block(), WN2F_Block(), WN2F_bnor(), WN2F_call(), WN2F_Callsite_Directives(), WN2F_casegoto(), WN2F_compgoto(), WN2F_complex(), WN2F_condbr(), WN2F_dealloca(), WN2F_do_loop(), WN2F_do_while(), WN2F_emit_ctrl(), WN2F_Emit_End_Stmt(), WN2F_End_Prompf_Construct(), WN2F_End_Prompf_Transformed_Func(), WN2F_End_Routine_Strings(), WN2F_eq(), WN2F_eval(), WN2F_Exit_PU_Block(), WN2F_Funcall_Op(), WN2F_Function_Call_Lhs(), WN2F_goto(), WN2F_idname(), WN2F_if(), WN2F_iload(), WN2F_iloadx(), WN2F_imagpart(), WN2F_Infix_Op(), WN2F_interface_blk(), WN2F_Intr_Funcall(), WN2F_Intr_Infix(), WN2F_intrinsic_call(), WN2F_io(), WN2F_io_control(), WN2F_io_format(), WN2F_io_list(), WN2F_io_unit(), WN2F_ios_accept(), WN2F_ios_backspace(), WN2F_ios_close(), WN2F_ios_cr(), WN2F_ios_decode(), WN2F_ios_definefile(), WN2F_ios_delete(), WN2F_ios_encode(), WN2F_ios_endfile(), WN2F_ios_find(), WN2F_ios_inqlength(), WN2F_ios_inquire(), WN2F_ios_namelist(), WN2F_ios_open(), WN2F_ios_print(), WN2F_ios_read(), WN2F_ios_rewind(), WN2F_ios_rewrite(), WN2F_ios_type(), WN2F_ios_unlock(), WN2F_ios_write(), WN2F_istorex(), WN2F_label(), WN2F_ldid(), WN2F_Load_Return_Reg(), WN2F_lshr(), WN2F_mload(), WN2F_namelist_stmt(), WN2F_nullify_stmt(), WN2F_Offset_Memref(), WN2F_Offset_Symref(), WN2F_pragma(), WN2F_pragma_list_end(), WN2F_prefetch(), WN2F_process_pragma(), WN2F_Prompf_Construct_End(), WN2F_Prompf_Construct_Start(), WN2F_pstid(), WN2F_pstore(), WN2F_realpart(), WN2F_recip(), WN2F_return(), WN2F_return_val(), WN2F_rsqrt(), WN2F_select(), WN2F_Start_Prompf_Construct(), WN2F_stid(), WN2F_strctfld(), WN2F_String_Argument(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), WN2F_Translate_StringLEN(), WN2F_unsupported(), WN2F_where(), WN2F_while_do(), Write_Scalar_Typedef(), and Write_Typedef().

Here is the call graph for this function:

void Free_Token_Buffer_Memory ( void  )

Definition at line 1427 of file token_buffer.cxx.

References free_buffer_list().

Here is the call graph for this function:

Definition at line 1420 of file token_buffer.cxx.

References Max_Line_Length.

Referenced by TCON2C_translate(), and TCON2F_translate().

Definition at line 1434 of file token_buffer.cxx.

References buffer_free_list, Token_Buffer::chars_allocated, Token_Buffer::chars_used, Token_Sequence::first, INIT_STRING_BUFFER_SIZE, INIT_TOKEN_BUFFER_SIZE, Token_Sequence::last, Token_Buffer::next, NO_TOKEN_IDX, NULL, Token_Buffer::strings, TB_TYPE_ALLOC_N, Token_Buffer::token_list, Token_Buffer::tokens, Token_Buffer::tokens_allocated, and Token_Buffer::tokens_used.

Referenced by Append_A_Clause_Symbol(), Append_Clause_Expressions(), Append_Nest_Clauses(), Emit_To_PUinfo_Pragmas(), INIT2F_Implied_DoLoop(), INIT2F_ptr_or_scalar(), INIT2F_substring(), INIT2F_Translate_Array_Ref(), INITO2F_translate(), INITV2C_symoff(), INITV2C_val(), INITVKIND_const(), INITVKIND_symoff(), INITVKIND_val(), write_st::operator()(), PARAMETER2F_translate(), PUinfo_init_pu(), ST2C_basic_decl(), ST2C_Declare_Tempvar(), ST2C_Define_A_Common_Block(), ST2C_Define_Preg(), ST2C_formal_ref_decl(), ST2C_func_header(), ST2C_Get_Common_Ty2c_List(), ST2F_decl_parameter(), ST2F_decl_type(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_func_header(), TY2C_get_field_info(), TY2C_Output_Struct_Type(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), TY2C_prototype_params(), TY2C_Translate_Structure(), TY2F_Declare_Common_Flds(), TY2F_Purple_Assumed_Sized_Array(), TY2F_Purple_Ptr_As_Array(), TY2F_Translate_ArrayElt(), TY2F_Translate_Common(), TY2F_Translate_EquivCommon_PtrFld(), TY2F_Translate_Structure(), W2C_def_TY(), W2C_Outfile_Fini(), W2C_Outfile_Translate_Pu(), W2C_Translate_Istore_Lhs(), W2C_Translate_Purple_Main(), W2C_Translate_Stid_Lhs(), W2C_Translate_Wn(), W2C_Translate_Wn_Str(), W2F_def_ST(), W2F_Outfile_Fini(), W2F_Outfile_Translate_Pu(), W2F_Translate_Istore_Lhs(), W2F_Translate_Purple_Main(), W2F_Translate_Stid_Lhs(), W2F_Translate_Wn(), W2F_Translate_Wn_Str(), WN2C_Append_Assignment(), WN2C_Append_Preg(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2C_array(), WN2C_block(), WN2C_call(), WN2C_cvt(), WN2C_cvtl(), WN2C_Declare_Return_Variable(), WN2C_Function_Call_Lhs(), WN2C_Function_Return_Value(), WN2C_generate_cast(), WN2C_iload(), WN2C_intrinsic_op(), WN2C_istore(), WN2C_istorex(), WN2C_lda(), WN2C_ldid(), WN2C_Load_From_PregIdx(), WN2C_Load_Return_Reg(), WN2C_mload(), WN2C_mstore(), WN2C_parm(), WN2C_stid(), WN2C_Store_Return_Reg(), WN2C_tas(), WN2C_Translate_Arithmetic_Operand(), WN2C_translate_purple_main(), WN2C_Value_Reference(), WN2F_Append_Block_Data(), WN2F_Append_IO_CtrlList(), WN2F_Append_Symtab_Consts(), WN2F_block(), WN2F_call(), WN2F_cvt(), WN2F_cvtl(), WN2F_Denormalize_Array_Idx(), WN2F_Enter_PU_Block(), WN2F_Exit_PU_Block(), WN2F_Function_Call_Lhs(), WN2F_interface_blk(), WN2F_io(), WN2F_io_control(), WN2F_ios_inqlength(), WN2F_istore(), WN2F_Load_Return_Reg(), WN2F_mstore(), WN2F_OLD_Den_Arr_Idx(), WN2F_Prepend_Value_Reference(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), WN2F_tempvar_rhs(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), Write_Scalar_Typedef(), and Write_Typedef().

void Prepend_And_Copy_Token_List ( TOKEN_BUFFER  result_tokens,
TOKEN_BUFFER  copy_tokens 
)

Definition at line 1710 of file token_buffer.cxx.

References copy_token_list(), Token_Sequence::first, Is_True, NO_TOKEN_IDX, NULL, and prepend_token_list().

Referenced by INIT2F_Prepend_Equivalence(), and Prepend_And_Reclaim_Token_List().

Here is the call graph for this function:

void Prepend_F77_Comment_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines,
BOOL  indent_last_line 
)

Definition at line 1814 of file token_buffer.cxx.

References F77_ANSI_FORMAT, F77_comment_line_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, Output_Format, and prepend_token_list().

Here is the call graph for this function:

void Prepend_F77_Directive_Newline ( TOKEN_BUFFER  tokens,
const char *  directive_prefix 
)
void Prepend_F77_Indented_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines,
const char *  label 
)
void Prepend_F77_Sequence_No ( TOKEN_BUFFER  tokens,
const char *  seq_no 
)

Definition at line 1881 of file token_buffer.cxx.

References f77_seqno_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, Output_Format, and prepend_token_list().

Here is the call graph for this function:

void Prepend_Srcpos_Directive ( TOKEN_BUFFER  tokens,
SRCPOS  srcpos 
)

Definition at line 1937 of file token_buffer.cxx.

References Token_Sequence::first, Is_True, Token_Sequence::last, NULL, prepend_token_list(), and Srcpos_Directive_Token().

Here is the call graph for this function:

void Prepend_Srcpos_Map ( TOKEN_BUFFER  tokens,
SRCPOS  srcpos 
)

Definition at line 1924 of file token_buffer.cxx.

References Token_Sequence::first, Is_True, Token_Sequence::last, NULL, prepend_token_list(), and Srcpos_Map_Token().

Here is the call graph for this function:

void Set_Indentation_Step ( UINT  num_spaces)

Definition at line 1561 of file token_buffer.cxx.

References indentation_increment, and MAX_INDENTATION_STEP.

void Set_Maximum_Linelength ( UINT32  max_linelength)

Definition at line 1403 of file token_buffer.cxx.

References Default_Max_Line_Length, Max_Line_Length, and Output_Format.

Referenced by W2C_Init(), and W2F_Init().

void Terminate_Token_Buffer ( FILE *  srcpos_map_file)

Definition at line 1390 of file token_buffer.cxx.

References free_buffer_list(), Max_Srcpos_Map_Filenum, and Write_Srcpos_File_Map_Table().

Referenced by End_Locations_File(), W2C_Fini(), and W2F_Fini().

Here is the call graph for this function:

void Write_String ( FILE *  ofile,
FILE *  srcpos_map_file,
const char *  str 
)
void Zero_Indentation ( void  )

Definition at line 1596 of file token_buffer.cxx.

References current_indentation, and requested_indentation.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines