summaryrefslogtreecommitdiff
path: root/src/web/libc/include/endian.h
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 11:40:11 -0300
committerGabriel Schneider <[email protected]>2026-11-05 12:41:36 -0300
commit3f1533813b6692a736251e4d467a7f108229ddee (patch)
tree37a32c5ebbf9d3af08923856fd6fa516f3b33a39 /src/web/libc/include/endian.h
parentcfd2b993feda1b3f7474225bb32db8cac8edc5ae (diff)
downloadpardes-3f1533813b6692a736251e4d467a7f108229ddee.tar.gz
pardes-3f1533813b6692a736251e4d467a7f108229ddee.zip
targets: the DOM web shell goes (src/web.zig and src/web/, its harnesses web_harness, web_snapshot, web_driver_test and web-snapshots/, tools/web_fixture.py, -Dplatform=web, -Ddump, and the web, web-harness, web-snap, web-e2e and web-driver-test steps), and with it what only a freestanding build needed: `hosted` and every guard on it (every build has a host now), memory's stack-fallback arenas and reduced_target sizes, the emscripten main, the tree-sitter libc shim and the stb stub, lsp's has_client, the web arms of the platform switches (-Dplatform is tui, gui or macos); the macOS files pass zig ast-check; docs/web.md is a paragraph on what it was
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/web/libc/include/endian.h')
-rw-r--r--src/web/libc/include/endian.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/web/libc/include/endian.h b/src/web/libc/include/endian.h
deleted file mode 100644
index a047c88f..00000000
--- a/src/web/libc/include/endian.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#ifndef PARDES_WEB_ENDIAN_H
-#define PARDES_WEB_ENDIAN_H
-
-#define __LITTLE_ENDIAN 1234
-#define __BIG_ENDIAN 4321
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
-#define htole16(value) (value)
-#define le16toh(value) (value)
-#define htole32(value) (value)
-#define le32toh(value) (value)
-#define htole64(value) (value)
-#define le64toh(value) (value)
-#define htobe16(value) __builtin_bswap16(value)
-#define be16toh(value) __builtin_bswap16(value)
-#define htobe32(value) __builtin_bswap32(value)
-#define be32toh(value) __builtin_bswap32(value)
-#define htobe64(value) __builtin_bswap64(value)
-#define be64toh(value) __builtin_bswap64(value)
-
-#endif