[vala/0.42] codegen: Fix regex literal compile flags



commit 83889a87cf4f39f2b014d1f8a05a5631ffa1df05
Author: Ali Sabil <ali sabil gmail com>
Date:   Thu Nov 1 14:06:52 2018 +0100

    codegen: Fix regex literal compile flags
    
    The GRegex GRegexCompileFlags were declared as GRegexMatchFlags, leading
    to a C compiler warning.

 codegen/valaccodebasemodule.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index e37042044..adafcaa4e 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -4077,7 +4077,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        fun.modifiers = CCodeModifiers.STATIC | CCodeModifiers.INLINE;
                        fun.add_parameter (new CCodeParameter ("re", "GRegex**"));
                        fun.add_parameter (new CCodeParameter ("pattern", "const gchar *"));
-                       fun.add_parameter (new CCodeParameter ("match_options", "GRegexMatchFlags"));
+                       fun.add_parameter (new CCodeParameter ("compile_flags", "GRegexCompileFlags"));
 
                        push_function (fun);
 
@@ -4087,7 +4087,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
 
                        var regex_new_call = new CCodeFunctionCall (new CCodeIdentifier ("g_regex_new"));
                        regex_new_call.add_argument (new CCodeConstant ("pattern"));
-                       regex_new_call.add_argument (new CCodeConstant ("match_options"));
+                       regex_new_call.add_argument (new CCodeConstant ("compile_flags"));
                        regex_new_call.add_argument (new CCodeConstant ("0"));
                        regex_new_call.add_argument (new CCodeConstant ("NULL"));
                        ccode.add_assignment (new CCodeIdentifier ("GRegex* val"), regex_new_call);


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