diff options
author | Alexey Yerin <yyp@disroot.org> | 2024-04-30 22:19:36 +0300 |
---|---|---|
committer | Alexey Yerin <yyp@disroot.org> | 2024-04-30 22:19:36 +0300 |
commit | 6ecce1d710f13e1afcf5e854435df01036837043 (patch) | |
tree | 40daa4c330f7e98f3eb6b177071684d237c2e282 | |
parent | f08701d84804bd989e114991b006813127ee3586 (diff) |
Add missing types
-rw-r--r-- | bindings/types/libc/types.ha | 5 | ||||
-rw-r--r-- | cmd/hare-gi/ctype.ha | 4 |
2 files changed, 9 insertions, 0 deletions
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")), + // <utime.h> + ("utimbuf", (cmodule::LIBC, "utimbuf")), + // <stdio.h> ("FILE", (cmodule::LIBC, "FILE")), |