wip on intellisense (again)

This commit is contained in:
Alexander Nicholi 2021-02-02 11:14:45 -05:00
parent 9841e2186a
commit 7642710155
No known key found for this signature in database
GPG key ID: B75B2EB05540F74C
18 changed files with 242 additions and 52 deletions

View file

@ -20,6 +20,7 @@
#include "libc/calls/struct/metastat.internal.h"
#include "libc/dce.h"
#ifndef SWITCHEROO
#define SWITCHEROO(S1, S2, A, B, C, D, E, F, G, H, I, J, K, L, M) \
do { \
autotype((S2).A) a = (typeof((S2).A))(S1).A; \
@ -49,6 +50,7 @@
(S2).L = l; \
(S2).M = m; \
} while (0);
#endif
forceinline void stat2linux_xnu(union metastat *ms) {
SWITCHEROO(ms->xnu, ms->linux, st_dev, st_ino, st_nlink, st_mode, st_uid,