#include "config_readline.h"#include <stdio.h>#include "ansi_stdlib.h"#include "xmalloc.h"Include dependency graph for xmalloc.c:

Go to the source code of this file.
Defines | |
| #define | READLINE_LIBRARY |
Functions | |
| static void | memory_error_and_abort (char *fname) |
| PTR_T | xmalloc (size_t bytes) |
| PTR_T | xrealloc (PTR_T pointer, size_t bytes) |
| void | xfree (PTR_T string) |
| static void memory_error_and_abort | ( | char * | fname | ) | [static] |
| void xfree | ( | PTR_T | string | ) |
| PTR_T xmalloc | ( | size_t | bytes | ) |
Definition at line 53 of file xmalloc.c.
References malloc, memory_error_and_abort(), and PTR_T.
Referenced by _rl_add_macro_char(), _rl_copy_to_kill_ring(), _rl_get_keyname(), _rl_init_terminal_io(), _rl_insert_char(), _rl_insert_typein(), _rl_macro_dumper_internal(), _rl_make_prompt_for_search(), _rl_push_executing_macro(), _rl_read_file(), _rl_savestring(), _rl_untranslate_macro_value(), add_history(), compute_lcd_of_matches(), debug_add_to_namespace(), debug_init(), debug_make_array_type(), debug_make_baseclass(), debug_make_enum_type(), debug_make_field(), debug_make_function_type(), debug_make_indirect_type(), debug_make_method(), debug_make_method_type(), debug_make_method_variant(), debug_make_object_type(), debug_make_offset_type(), debug_make_range_type(), debug_make_set_type(), debug_make_static_member(), debug_make_static_method_variant(), debug_make_struct_type(), debug_make_type(), debug_name_type(), debug_record_function(), debug_record_parameter(), debug_record_typed_const(), debug_record_variable(), debug_set_class_id(), debug_set_filename(), debug_start_block(), debug_start_source(), debug_tag_type(), expand_prompt(), get_history_event(), get_subst_pattern(), glue_prefix_and_suffix(), hist_error(), history_arg_extract(), history_expand(), history_expand_internal(), history_filename(), history_get_history_state(), history_substring(), ieee_alloc_type(), ieee_array_type(), ieee_change_buffer(), ieee_class_baseclass(), ieee_function_parameter(), ieee_function_type(), ieee_push_type(), ieee_read_cxx_class(), ieee_real_write_byte(), ieee_start_class_type(), ieee_start_range(), ieee_start_struct_type(), ieee_tag_type(), ieee_typdef(), init_line_structures(), isolate_tilde_prefix(), make_tempname(), parse_ieee_atn(), parse_ieee_bb(), parse_ieee_be(), parse_ieee_ty(), parse_stab(), parse_stab_argtypes(), parse_stab_baseclasses(), parse_stab_enum_type(), parse_stab_members(), parse_stab_struct_fields(), parse_stab_type(), parser_if(), postproc_subst_rhs(), pr_class_baseclass(), pr_function_parameter(), pr_function_type(), pr_lineno(), pr_method_type(), pr_start_block(), prepend_type(), print_filename(), pstack_install_segv_action(), push_bincl(), push_type(), quote_breaks(), read_ieee_debugging_info(), read_section_stabs_debugging_info(), readline_initialize_everything(), remove_duplicate_matches(), replace_history_entry(), rl_add_funmap_entry(), rl_add_undo(), rl_completion_matches(), rl_copy_text(), rl_display_search(), rl_filename_completion_function(), rl_generic_bind(), rl_invoking_keyseqs_in_map(), rl_macro_bind(), rl_make_bare_keymap(), rl_maybe_save_line(), rl_parse_and_bind(), rl_quote_filename(), rl_search_history(), rl_tilde_expand(), rl_transpose_chars(), rl_username_completion_function(), savestring(), set_default_bfd_target(), sh_set_lines_and_columns(), sh_single_quote(), stab_demangle_args(), stab_demangle_argtypes(), stab_find_slot(), stab_find_tagged_type(), stab_record_variable(), start_stab(), substitute_type(), sv_isrchterm(), and tilde_expand().
00055 { 00056 PTR_T temp; 00057 00058 temp = malloc (bytes); 00059 if (temp == 0) 00060 memory_error_and_abort ("xmalloc"); 00061 return (temp); 00062 }
Here is the call graph for this function:

Here is the caller graph for this function:

| PTR_T xrealloc | ( | PTR_T | pointer, | |
| size_t | bytes | |||
| ) |
Definition at line 65 of file xmalloc.c.
References malloc, memory_error_and_abort(), PTR_T, and realloc.
Referenced by _rl_add_macro_char(), _rl_copy_to_kill_ring(), _rl_vi_save_insert(), add_history(), append_type(), find_excl(), history_expand_internal(), history_tokenize_internal(), ieee_alloc_type(), ieee_get_modified_info(), ieee_read_cxx_class(), init_line_structures(), parse_ieee_atn(), parse_ieee_nn(), parse_ieee_ty(), parse_stab_enum_type(), parse_stab_members(), parse_stab_struct_fields(), parse_stab_type(), parser_if(), postproc_subst_rhs(), pr_lineno(), pr_start_block(), pr_start_function(), push_bincl(), rl_add_funmap_entry(), rl_completion_matches(), rl_extend_line_buffer(), rl_funmap_names(), rl_history_search_reinit(), rl_invoking_keyseqs_in_map(), rl_redisplay(), stab_demangle_arg(), stab_demangle_remember_type(), and tilde_expand().
00068 { 00069 PTR_T temp; 00070 00071 temp = pointer ? realloc (pointer, bytes) : malloc (bytes); 00072 00073 if (temp == 0) 00074 memory_error_and_abort ("xrealloc"); 00075 return (temp); 00076 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

