Something went wrong. Try again.
MIRROR: javascript for 🐜's, a tiny runtime with big ambitions ant.themackabu.dev
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109#ifndef TYPES_H#define TYPES_H
#include <stdint.h>#include <stddef.h>
typedef unsigned long long u64;
// TODO: prunetypedef struct ant_isolate_t ant_t;typedef struct ant_realm ant_realm_t;typedef struct ant_pool_block ant_pool_block_t;typedef struct ant_http_request_s ant_http_request_t;typedef struct ant_http_pool ant_http_pool_t;typedef struct ant_intern_table ant_intern_table_t;typedef struct ant_process_state ant_process_state_t;typedef struct ant_event_list ant_event_list_t;typedef struct ant_esm_state ant_esm_state_t;typedef struct ant_regex_state ant_regex_state_t;typedef struct ant_string_builder ant_string_builder_t;typedef struct ant_promise_state ant_promise_state_t;
typedef struct iterator iterator_t;typedef struct coroutine coroutine_t;typedef struct headers_data headers_data_t;typedef struct microtask_entry microtask_entry_t;typedef struct gc_card_table gc_card_table_t;
typedef struct ant_object ant_object_t;typedef struct ant_shape ant_shape_t;
typedef struct sv_vm sv_vm_t;typedef struct sv_ast sv_ast_t;typedef struct sv_func sv_func_t;typedef struct sv_upvalue sv_upvalue_t;typedef struct sv_closure sv_closure_t;typedef struct sv_frame sv_frame_t;typedef struct sv_code_unit sv_code_unit_t;typedef struct vm_interrupt vm_interrupt_t;
typedef struct sv_eval_env_state sv_eval_env_state_t;typedef struct sv_map_template_desc sv_map_template_desc_t;typedef struct sv_gf_mega_cache sv_gf_mega_cache_t;typedef struct wasm_import_func_env_s wasm_import_func_env_t;
typedef struct sv_gf_poly sv_gf_poly_t;typedef struct sv_pf_poly sv_pf_poly_t;
typedef struct server_runtime_s server_runtime_t;typedef struct server_request_s server_request_t;typedef struct server_conn_state_s server_conn_state_t;typedef struct server_sse_state_s server_sse_state_t;typedef struct abort_timeout_entry abort_timeout_entry_t;typedef struct eventsource_state_s eventsource_state_t;typedef struct websocket_state_s websocket_state_t;typedef struct child_process_s child_process_t;
typedef struct ant_tls_socket_s ant_tls_socket_t;typedef struct ant_tls_server_s ant_tls_server_t;
typedef struct dns_channel_s dns_channel_t;typedef struct dns_request_s dns_request_t;typedef struct net_server_s net_server_t;typedef struct net_socket_s net_socket_t;typedef struct fs_watcher_s fs_watcher_t;typedef struct fs_request_s fs_request_t;typedef struct fetch_request_s fetch_request_t;typedef struct rl_interface_s rl_interface_t;typedef struct rpc_server rpc_server_t;typedef struct rpc_client rpc_client_t;typedef struct sandbox_state sandbox_state_t;typedef struct lmdb_state lmdb_state_t;typedef struct ant_napi_env__ ant_napi_env_t;typedef struct ant_port_binding ant_port_binding_t;typedef struct broadcast_member broadcast_member_t;typedef struct ant_worker ant_worker_t;
typedef struct ant_thread_mailbox ant_thread_mailbox_t;typedef struct ant_guest ant_guest_t;typedef struct navigator_locks navigator_locks_t;typedef struct perf_eld_monitor perf_eld_monitor_t;
typedef uint64_t ant_offset_t;typedef uint64_t ant_value_t;
typedef struct { ant_object_t *obj; uint32_t slot;} ant_prop_loc_t;
#define ant_native_params_t ant_t *js, ant_value_t *args, int nargs#define ant_params_t ant_native_params_t, ant_value_t call_new_target
typedef ant_value_t (*ant_cfunc_t) (ant_params_t);
typedef struct ant_cfunc_meta { ant_cfunc_t fn; const char *name; uint32_t length; uint8_t flags;} ant_cfunc_meta_t;
constexpr uintptr_t ant_sidecar = 1u;constexpr ant_prop_loc_t ANT_PROP_LOC_NONE = {NULL, 0};
#endif