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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
From: Syed-Shahrukh Hussain <syed.shahrukh@ossrevival.org>
Date: Tue, 16 Dec 2025 20:34:06 +0500
Subject: Fixes gcc-16 build failure.
--- a/doc/genparse.texi
+++ b/doc/genparse.texi
@@ -546,10 +546,7 @@
#include <stdio.h>
#ifndef bool
-typedef enum bool_t
-@{
- false = 0, true
-@} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/examples/ls_clp.h
+++ b/examples/ls_clp.h
@@ -15,10 +15,7 @@
#include "ls.h"
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/examples/mv_clp.h
+++ b/examples/mv_clp.h
@@ -14,10 +14,7 @@
#include "coreutils.h"
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/examples/mycopy3_clp.h
+++ b/examples/mycopy3_clp.h
@@ -17,10 +17,7 @@
#include <stdio.h>
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/examples/ping_clp.h
+++ b/examples/ping_clp.h
@@ -15,10 +15,7 @@
#include "ping.h"
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/examples/rm_clp.h
+++ b/examples/rm_clp.h
@@ -14,10 +14,7 @@
#include "coreutils.h"
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/examples/tail_clp.h
+++ b/examples/tail_clp.h
@@ -16,10 +16,7 @@
#include "tail.h"
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/examples/uname_clp.h
+++ b/examples/uname_clp.h
@@ -14,10 +14,7 @@
#include "coreutils.h"
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/examples/wc_clp.h
+++ b/examples/wc_clp.h
@@ -14,10 +14,7 @@
#include "coreutils.h"
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
--- a/gnulib/lib/stdbool.in.h
+++ b/gnulib/lib/stdbool.in.h
@@ -112,8 +112,6 @@
#define bool _Bool
/* The other macros must be usable in preprocessor directives. */
-#define false 0
-#define true 1
#define __bool_true_false_are_defined 1
#endif /* _GL_STDBOOL_H */
--- a/src/c_clparam_list.cc
+++ b/src/c_clparam_list.cc
@@ -329,10 +329,7 @@
// add a bool type for C
o << "#ifndef bool" << endl;
- o << "typedef enum bool_t" << endl;
- o << "{" << endl;
- o << " false = 0, true" << endl;
- o << "} bool;" << endl;
+ o << "typedef bool bool_t;" << endl;
o << "#endif" << endl
<< endl;
--- a/examples/echo_clp.h
+++ b/examples/echo_clp.h
@@ -14,10 +14,7 @@
#include "coreutils.h"
#ifndef bool
-typedef enum bool_t
-{
- false = 0, true
-} bool;
+typedef bool bool_t;
#endif
/* customized structure for command line parameters */
|