From 6ecce1d710f13e1afcf5e854435df01036837043 Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Tue, 30 Apr 2024 22:19:36 +0300 Subject: Add missing types --- bindings/types/libc/types.ha | 5 +++++ cmd/hare-gi/ctype.ha | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/bindings/types/libc/types.ha b/bindings/types/libc/types.ha index e6b83b7..94959b7 100644 --- a/bindings/types/libc/types.ha +++ b/bindings/types/libc/types.ha @@ -2,6 +2,11 @@ use types::c; export type time_t = i64; +export type utimbuf = struct { + actime: time_t, + modtime: time_t, +}; + export type tm = struct { tm_sec: int, tm_min: int, diff --git a/cmd/hare-gi/ctype.ha b/cmd/hare-gi/ctype.ha index c687703..c970b49 100644 --- a/cmd/hare-gi/ctype.ha +++ b/cmd/hare-gi/ctype.ha @@ -139,6 +139,7 @@ let map: [](str, ctype) = [ ("grefcount", cbuiltin::UINT), ("gatomicrefcount", cbuiltin::UINT), ("guintptr", cbuiltin::UINTPTR), + ("gintptr", cbuiltin::UINTPTR), // ? ("gint8", cbuiltin::I8), ("guint8", cbuiltin::U8), ("gint16", cbuiltin::I16), ("guint16", cbuiltin::U16), @@ -162,6 +163,9 @@ let map: [](str, ctype) = [ ("time_t", (cmodule::LIBC, "time_t")), ("tm", (cmodule::LIBC, "tm")), + // + ("utimbuf", (cmodule::LIBC, "utimbuf")), + // ("FILE", (cmodule::LIBC, "FILE")), -- cgit 1.3.0-6-gf8a5