[geany/geany-plugins] ad50d3: Use stdbool.h istead of redefining bool

Alexander F. Rødseth git-noreply at xxxxx
Tue Jan 5 11:57:27 UTC 2021

Branch:      refs/heads/master
Author:      Alexander F. Rødseth <rodseth at gmail.com>
Committer:   Alexander F. Rødseth <rodseth at gmail.com>
Date:        Tue, 05 Jan 2021 11:57:27 UTC
Commit:      ad50d3ed2ddfe11cd07954786b96725602fb4ddd

Log Message:
Use stdbool.h istead of redefining bool

Redefining bool causes errors when used together with ie. GCC 10.2.0

Modified Paths:

Modified: pretty-printer/src/PrettyPrinter.h
5 lines changed, 2 insertions(+), 3 deletions(-)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
+#include <stdbool.h>
 #ifdef HAVE_GLIB
 #include <glib.h>
@@ -52,15 +53,13 @@
 #define TRUE !(FALSE)
-typedef unsigned int bool;
 /*========================================== STRUCTURES =======================================================*/
  * The PrettyPrintingOptions struct allows the programmer to tell the
  * PrettyPrinter how it must format the XML output.
-typedef struct 
+typedef struct
       const char* newLineChars;                                                             /* char used to generate a new line (generally \r\n) */
       char indentChar;                                                                      /* char used for indentation */

This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).

More information about the Plugins-Commits mailing list