[gnome-builder] c-pack: enable formating with struct and enum keyword



commit 8d9399e2a826a9bd749dc72781d76cb51e90dcc5
Author: Günther Wagner <info gunibert de>
Date:   Sat May 25 12:55:12 2019 +0000

    c-pack: enable formating with struct and enum keyword

 src/plugins/c-pack/hdr-format.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/c-pack/hdr-format.c b/src/plugins/c-pack/hdr-format.c
index 397e930ff..6ce09ecef 100644
--- a/src/plugins/c-pack/hdr-format.c
+++ b/src/plugins/c-pack/hdr-format.c
@@ -161,7 +161,11 @@ read_return_type (const gchar  *str,
       if (!(word = getword (str, &tmp)))
         return NULL;
 
-      if (g_str_equal (word, "static") || g_str_equal (word, "const") || *word == '*')
+      if (g_str_equal (word, "static") ||
+          g_str_equal (word, "const") ||
+          g_str_equal (word, "struct") ||
+          g_str_equal (word, "enum") ||
+          *word == '*')
         {
           if (gstr->len)
             g_string_append_c (gstr, ' ');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]