[geany/geany-plugins] 7c540b: Merge pull request #1053 from xyproto/no-redefine-bool

Frank Lanitz git-noreply at xxxxx
Wed Jan 6 12:27:21 UTC 2021


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   GitHub <noreply at github.com>
Date:        Wed, 06 Jan 2021 12:27:21 UTC
Commit:      7c540bf347d0f0c6f6ab5123fa8f226b2f9152ee
             https://github.com/geany/geany-plugins/commit/7c540bf347d0f0c6f6ab5123fa8f226b2f9152ee

Log Message:
-----------
Merge pull request #1053 from xyproto/no-redefine-bool

Use stdbool.h istead of redefining bool


Modified Paths:
--------------
    pretty-printer/src/PrettyPrinter.h

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)
 #endif
 
-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