File: 01-use-stdbool.diff

package info (click to toggle)
gputils 1.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 159,960 kB
  • sloc: pascal: 1,459,440; ansic: 319,705; sh: 4,323; makefile: 2,134; lex: 1,755; yacc: 1,595
file content (31 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/libgputils/gpcoffgen.h b/libgputils/gpcoffgen.h
index 41d3f89..8ee08b9 100644
--- a/libgputils/gpcoffgen.h
+++ b/libgputils/gpcoffgen.h
@@ -88,7 +88,7 @@ extern gp_reloc_t *gp_coffgen_add_reloc(gp_section_t *Section);
 #define RELOC_DISABLE_WARN              (1 << 0)
 #define RELOC_ENABLE_CINIT_WARN         (1 << 1)
 
-extern void gp_coffgen_check_relocations(const gp_object_t *Object, unsigned int Behavior);
+extern void gp_coffgen_check_relocations(const gp_object_t *Object, gp_boolean Behavior);
 
 extern gp_boolean gp_coffgen_del_reloc(gp_section_t *Section, gp_reloc_t *Relocation);
 extern const char *gp_coffgen_reloc_type_to_str(uint16_t Type);
diff --git a/libgputils/gptypes.h b/libgputils/gptypes.h
index 95eb609..3067bd0 100644
--- a/libgputils/gptypes.h
+++ b/libgputils/gptypes.h
@@ -26,10 +26,9 @@ Boston, MA 02111-1307, USA.  */
 
 #include "stdhdr.h"
 
-typedef enum {
-  false = (0 == 1),
-  true  = (0 == 0)
-} gp_boolean;
+#include <stdbool.h>
+
+typedef bool    gp_boolean;
 
 typedef long    gp_symvalue_t;