Debian Codegraph @

src/bin/dwarfdump/dd_tag_common.h

raw
1 /*
2 Copyright (C) 2000-2010 Silicon Graphics, Inc. All Rights Reserved.
3 Portions Copyright (C) 2009-2010 SN Systems Ltd. All Rights Reserved.
4 Portions Copyright (C) 2009-2020 David Anderson. All Rights Reserved.
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of version 2 of the GNU General
8 Public License as published by the Free 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 General Public
24 License along with this program; if not, write the Free
25 Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
26 Boston MA 02110-1301, USA.
27 */
28
29 #ifndef tag_common_INCLUDED
30 #define tag_common_INCLUDED
31
32 /* The following is the magic token used to
33 distinguish real tags/attrs from group-delimiters.
34 Blank lines have been eliminated by an awk script.
35 */
36 #define MAGIC_TOKEN_VALUE 0xffffffff
37
38 /* TAG_TREE.LIST Expected input format
39
40 0xffffffff
41 value of a tag
42 value of a standard tag that may be a child of that tag
43 ...
44 0xffffffff
45 value of a tag
46 value of a standard tag that may be a child of that tag
47 ...
48 0xffffffff
49 ...
50
51 No blank lines or commentary allowed, no symbols, just numbers.
52
53 */
54
55 /* TAG_ATTR.LIST Expected input format
56
57 0xffffffff
58 value of a tag
59 value of a standard attribute that follows that tag
60 ...
61 0xffffffff
62 value of a tag
63 value of a standard attribute that follows that tag
64 ...
65 0xffffffff
66 ...
67
68 No blank lines or commentary allowed, no symbols, just numbers.
69
70 */
71
72 /* We don't need really long lines: the input file is simple. */
73 #define MAX_LINE_SIZE 1000
74 #define IS_EOF 1
75 #define NOT_EOF 0
76
77 extern void bad_line_input(char *format,...);
78 extern void trim_newline(char *line, int max);
79 extern Dwarf_Bool is_blank_line(char *pLine);
80 extern int read_value(unsigned int *outval,FILE *f);
81
82 #endif /* tag_common_INCLUDED */