Debian Codegraph @

src/bin/dwarfdump/dd_minimal.h

raw
1 /*
2 Copyright (C) 2020 David Anderson. All Rights Reserved.
3 Redistribution and use in source and binary forms, with
4 or without modification, are permitted provided that the
5 following conditions are met:
6
7 Redistributions of source code must retain the above
8 copyright notice, this list of conditions and the following
9 disclaimer.
10
11 Redistributions in binary form must reproduce the above
12 copyright notice, this list of conditions and the following
13 disclaimer in the documentation and/or other materials
14 provided with the distribution.
15
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
17 CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
18 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31 /* This lets dd_esb.c comminicate a note to dwarfdump
32 that there was a major error without
33 having to know all about glflags etc.
34 esb.c actually prints the error message(s),
35 though it avoids printing multiple instances
36 of any given message.
37
38 This ensures the major error
39 count dwarfdump prints is correct.
40 */
41
42 #ifndef DD_MINIMAL_H
43 #define DD_MINIMAL_H
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif /* __cplusplus */
48
49 void dd_minimal_count_global_error(void);
50
51 #ifdef __cplusplus
52 }
53 #endif /* __cplusplus */
54 #endif /* DD_MINIMAL_H */