[vala/0.18] posix: Add nl_langinfo
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.18] posix: Add nl_langinfo
- Date: Tue, 13 Nov 2012 20:25:51 +0000 (UTC)
commit 82e4b9dd5d7cc90a9eb00e5f803f2b63da85bf2c
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Nov 8 14:50:56 2012 +1300
posix: Add nl_langinfo
Fixes 685039.
vapi/posix.vapi | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 62 insertions(+), 1 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index e6a2842..ea2d025 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -2483,5 +2483,66 @@ namespace Posix {
[CCode (cname = "glob", instance_pos = -1)]
public int glob (string pattern, int flags = 0, GlobErrorFunction? errfunc = null);
}
-}
+ [CCode (cheader_filename = "langinfo.h", cprefix = "")]
+ public enum NLItem {
+ ABDAY_1,
+ ABDAY_2,
+ ABDAY_3,
+ ABDAY_4,
+ ABDAY_5,
+ ABDAY_6,
+ ABDAY_7,
+ DAY_1,
+ DAY_2,
+ DAY_3,
+ DAY_4,
+ DAY_5,
+ DAY_6,
+ DAY_7,
+ ABMON_1,
+ ABMON_2,
+ ABMON_3,
+ ABMON_4,
+ ABMON_5,
+ ABMON_6,
+ ABMON_7,
+ ABMON_8,
+ ABMON_9,
+ ABMON_10,
+ ABMON_11,
+ ABMON_12,
+ MON_1,
+ MON_2,
+ MON_3,
+ MON_4,
+ MON_5,
+ MON_6,
+ MON_7,
+ MON_8,
+ MON_9,
+ MON_10,
+ MON_11,
+ MON_12,
+ AM_STR,
+ PM_STR,
+ D_T_FMT,
+ D_FMT,
+ T_FMT,
+ T_FMT_AMPM,
+ ERA,
+ ERA_D_FMT,
+ ALT_DIGITS,
+ ERA_D_T_FMT,
+ ERA_T_FMT,
+ CODESET,
+ CRNCYSTR,
+ RADIXCHAR,
+ THOUSEP,
+ YESEXPR,
+ NOEXPR
+ }
+
+ [CCode (cheader_filename = "langinfo.h")]
+ public unowned string nl_langinfo (NLItem item);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]