Debian Codegraph @

src/lib/libdwarf/dwarf_alloc.h

raw
1 /*
2 Copyright (C) 2000,2005 Silicon Graphics, Inc. All Rights Reserved.
3 Portions Copyright (C) 2008-2023 David Anderson. All Rights Reserved.
4
5 This program is free software; you can redistribute it
6 and/or modify it under the terms of version 2.1 of the
7 GNU Lesser General Public License as published by the Free
8 Software Foundation.
9
10 This program is distributed in the hope that it would be
11 useful, but WITHOUT ANY WARRANTY; without even the implied
12 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE.
14
15 Further, this software is distributed without any warranty
16 that it is free of the rightful claim of any third person
17 regarding infringement or the like. Any license provided
18 herein, whether implied or otherwise, applies only to this
19 software file. Patent licenses, if any, provided herein
20 do not apply to combinations of this program with other
21 software, or any other product whatsoever.
22
23 You should have received a copy of the GNU Lesser General
24 Public License along with this program; if not, write
25 the Free Software Foundation, Inc., 51 Franklin Street -
26 Fifth Floor, Boston MA 02110-1301, USA.
27 */
28
29 #ifndef DWARF_ALLOC_H
30 #define DWARF_ALLOC_H
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35
36 /* #define DWARF_SIMPLE_MALLOC 1 */
37
38 char * _dwarf_get_alloc(Dwarf_Debug, Dwarf_Small, Dwarf_Unsigned);
39 Dwarf_Debug _dwarf_get_debug(Dwarf_Unsigned filesize);
40 int _dwarf_free_all_of_one_debug(Dwarf_Debug);
41 struct Dwarf_Error_s * _dwarf_special_no_dbg_error_malloc(void);
42
43 void _dwarf_error_destructor(void *);
44
45 /* ALLOC_AREA_INDEX_TABLE_MAX is the size of the
46 struct ial_s index_into_allocated array in dwarf_alloc.c
47 */
48 #define ALLOC_AREA_INDEX_TABLE_MAX 66
49
50 void _dwarf_add_to_static_err_list(Dwarf_Error err);
51 void _dwarf_flush_static_error_list(void);
52 void _dwarf_free_static_errlist(void);
53
54 #ifdef __cplusplus
55 }
56 #endif /* __cplusplus */
57
58 #endif /* DWARF_ALLOC_H */