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



commit 2f0ff61f7332e5af7ed5e08c86d6505fea3f6849
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]