[vala/wip/valadoc-code-context] vala: Add Profile.LIBC as synonym for POSIX and accept "libc" profile



commit d98f11a534fb341c9d0d187087d8841a3751a8bb
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Jan 3 13:30:26 2019 +0100

    vala: Add Profile.LIBC as synonym for POSIX and accept "libc" profile

 vala/valacodecontext.vala | 2 +-
 vala/valaprofile.vala     | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index b388add56..8aed63c1b 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -561,7 +561,7 @@ public class Vala.CodeContext {
                                add_external_package ("glib-2.0");
                                add_external_package ("gobject-2.0");
                        }
-               } else if (profile == "posix") {
+               } else if (profile == "posix" || profile == "libc") {
                        this.profile = Profile.POSIX;
                        add_define ("POSIX");
 
diff --git a/vala/valaprofile.vala b/vala/valaprofile.vala
index 1ef0bd516..50350a85f 100644
--- a/vala/valaprofile.vala
+++ b/vala/valaprofile.vala
@@ -22,5 +22,6 @@
 
 public enum Vala.Profile {
        GOBJECT,
-       POSIX
+       LIBC,
+       POSIX = LIBC
 }


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