mt-lang 0.3.30 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -7
- data/docs/index.html +24 -5
- data/docs/language-design.md +3 -1
- data/docs/language-manual.md +61 -5
- data/lib/milk_tea/base.rb +1 -1
- data/lib/milk_tea/bindings/bindgen/emitter.rb +1 -8
- data/lib/milk_tea/core/c_backend/expressions.rb +22 -2
- data/lib/milk_tea/core/c_backend/feature_detection.rb +114 -24
- data/lib/milk_tea/core/c_backend/runtime_helpers.rb +89 -20
- data/lib/milk_tea/core/c_backend.rb +33 -5
- data/lib/milk_tea/core/compile_time.rb +25 -0
- data/lib/milk_tea/core/lexer.rb +5 -1
- data/lib/milk_tea/core/lowering/declarations.rb +8 -0
- data/lib/milk_tea/core/parser/declarations.rb +9 -4
- data/lib/milk_tea/core/semantic_analyzer/expressions.rb +35 -6
- data/lib/milk_tea/core/semantic_analyzer/name_resolution.rb +45 -3
- data/lib/milk_tea/core/semantic_analyzer/top_level.rb +31 -1
- data/std/c/box2d.mt +1 -1
- data/std/c/cgltf.mt +8 -8
- data/std/c/cjson.mt +1 -1
- data/std/c/curl.mt +5 -5
- data/std/c/enet.mt +3 -3
- data/std/c/flecs.mt +31 -31
- data/std/c/libuv.mt +50 -50
- data/std/c/miniaudio.mt +20 -20
- data/std/c/raygui.mt +1 -1
- data/std/c/raylib.mt +1 -1
- data/std/c/rpng.mt +1 -1
- data/std/c/rres.mt +2 -2
- data/std/c/sdl3.mt +56 -56
- data/std/c/sqlite3.mt +1 -1
- data/std/c/stb_truetype.mt +1 -1
- data/std/sdl3/runtime.mt +11 -0
- metadata +2 -2
data/std/c/flecs.mt
CHANGED
|
@@ -106,7 +106,7 @@ struct ecs_world_stats_t_http:
|
|
|
106
106
|
union ecs_meta_op_t_is:
|
|
107
107
|
members: ptr[ecs_hashmap_t]
|
|
108
108
|
constants: ptr[ecs_map_t]
|
|
109
|
-
|
|
109
|
+
opaque: fn(arg0: const_ptr[ecs_serializer_t], arg1: const_ptr[void]) -> int
|
|
110
110
|
|
|
111
111
|
opaque ecs_event_id_record_t = c"struct ecs_event_id_record_t"
|
|
112
112
|
opaque ecs_query_var_t = c"struct ecs_query_var_t"
|
|
@@ -136,7 +136,7 @@ type ecs_poly_t = void
|
|
|
136
136
|
opaque ecs_mixins_t = c"ecs_mixins_t"
|
|
137
137
|
|
|
138
138
|
struct ecs_header_t:
|
|
139
|
-
|
|
139
|
+
type: int
|
|
140
140
|
refcount: int
|
|
141
141
|
mixins: ptr[ecs_mixins_t]
|
|
142
142
|
|
|
@@ -486,7 +486,7 @@ struct ecs_term_t:
|
|
|
486
486
|
first: ecs_term_ref_t
|
|
487
487
|
second: ecs_term_ref_t
|
|
488
488
|
trav: ptr_uint
|
|
489
|
-
|
|
489
|
+
inout: short
|
|
490
490
|
oper: short
|
|
491
491
|
field_index: byte
|
|
492
492
|
flags_: ushort
|
|
@@ -497,7 +497,7 @@ struct ecs_query_t:
|
|
|
497
497
|
sizes: ptr[int]
|
|
498
498
|
ids: ptr[ecs_id_t]
|
|
499
499
|
bloom_filter: ptr_uint
|
|
500
|
-
|
|
500
|
+
flags: uint
|
|
501
501
|
var_count: byte
|
|
502
502
|
term_count: byte
|
|
503
503
|
field_count: byte
|
|
@@ -547,7 +547,7 @@ struct ecs_type_hooks_t:
|
|
|
547
547
|
move_dtor: fn(arg0: ptr[void], arg1: ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
|
|
548
548
|
cmp: fn(arg0: const_ptr[void], arg1: const_ptr[void], arg2: const_ptr[ecs_type_info_t]) -> int
|
|
549
549
|
equals: fn(arg0: const_ptr[void], arg1: const_ptr[void], arg2: const_ptr[ecs_type_info_t]) -> bool
|
|
550
|
-
|
|
550
|
+
flags: uint
|
|
551
551
|
on_add: fn(arg0: ptr[ecs_iter_t]) -> void
|
|
552
552
|
on_set: fn(arg0: ptr[ecs_iter_t]) -> void
|
|
553
553
|
on_remove: fn(arg0: ptr[ecs_iter_t]) -> void
|
|
@@ -575,7 +575,7 @@ struct ecs_event_record_t:
|
|
|
575
575
|
wildcard: ptr[ecs_event_id_record_t]
|
|
576
576
|
wildcard_pair: ptr[ecs_event_id_record_t]
|
|
577
577
|
event_ids: ecs_map_t
|
|
578
|
-
|
|
578
|
+
event: ptr_uint
|
|
579
579
|
|
|
580
580
|
struct ecs_observable_t:
|
|
581
581
|
on_add: ecs_event_record_t
|
|
@@ -720,7 +720,7 @@ struct ecs_table_records_t:
|
|
|
720
720
|
count: int
|
|
721
721
|
|
|
722
722
|
struct ecs_value_t:
|
|
723
|
-
|
|
723
|
+
type: ptr_uint
|
|
724
724
|
ptr: ptr[void]
|
|
725
725
|
|
|
726
726
|
struct ecs_entity_desc_t:
|
|
@@ -747,7 +747,7 @@ struct ecs_bulk_desc_t:
|
|
|
747
747
|
struct ecs_component_desc_t:
|
|
748
748
|
_canary: int
|
|
749
749
|
entity: ptr_uint
|
|
750
|
-
|
|
750
|
+
type: ecs_type_info_t
|
|
751
751
|
|
|
752
752
|
struct ecs_iter_t:
|
|
753
753
|
world: ptr[ecs_world_t]
|
|
@@ -769,7 +769,7 @@ struct ecs_iter_t:
|
|
|
769
769
|
row_fields: uint
|
|
770
770
|
up_fields: uint
|
|
771
771
|
system: ptr_uint
|
|
772
|
-
|
|
772
|
+
event: ptr_uint
|
|
773
773
|
event_id: ptr_uint
|
|
774
774
|
event_cur: int
|
|
775
775
|
field_count: byte
|
|
@@ -783,7 +783,7 @@ struct ecs_iter_t:
|
|
|
783
783
|
delta_time: float
|
|
784
784
|
delta_system_time: float
|
|
785
785
|
frame_offset: int
|
|
786
|
-
|
|
786
|
+
flags: uint
|
|
787
787
|
interrupted_by: ptr_uint
|
|
788
788
|
priv_: ecs_iter_private_t
|
|
789
789
|
next: fn(arg0: ptr[ecs_iter_t]) -> bool
|
|
@@ -796,7 +796,7 @@ struct ecs_query_desc_t:
|
|
|
796
796
|
terms: array[ecs_term_t, 32]
|
|
797
797
|
expr: cstr
|
|
798
798
|
cache_kind: ecs_query_cache_kind_t
|
|
799
|
-
|
|
799
|
+
flags: uint
|
|
800
800
|
order_by_callback: fn(arg0: ecs_entity_t, arg1: const_ptr[void], arg2: ecs_entity_t, arg3: const_ptr[void]) -> int
|
|
801
801
|
order_by_table_callback: fn(arg0: ptr[ecs_world_t], arg1: ptr[ecs_table_t], arg2: ptr[ecs_entity_t], arg3: ptr[void], arg4: int, arg5: int, arg6: int, arg7: ecs_order_by_action_t) -> void
|
|
802
802
|
order_by: ptr_uint
|
|
@@ -832,7 +832,7 @@ struct ecs_observer_desc_t:
|
|
|
832
832
|
flags_: uint
|
|
833
833
|
|
|
834
834
|
struct ecs_event_desc_t:
|
|
835
|
-
|
|
835
|
+
event: ptr_uint
|
|
836
836
|
ids: const_ptr[ecs_type_t]
|
|
837
837
|
table: ptr[ecs_table_t]
|
|
838
838
|
other_table: ptr[ecs_table_t]
|
|
@@ -842,12 +842,12 @@ struct ecs_event_desc_t:
|
|
|
842
842
|
param: ptr[void]
|
|
843
843
|
const_param: const_ptr[void]
|
|
844
844
|
observable: ptr[ecs_poly_t]
|
|
845
|
-
|
|
845
|
+
flags: uint
|
|
846
846
|
|
|
847
847
|
struct ecs_build_info_t:
|
|
848
848
|
compiler: cstr
|
|
849
849
|
addons: ptr[cstr]
|
|
850
|
-
|
|
850
|
+
flags: ptr[cstr]
|
|
851
851
|
version: cstr
|
|
852
852
|
version_major: short
|
|
853
853
|
version_minor: short
|
|
@@ -1690,7 +1690,7 @@ struct EcsAlertsActive:
|
|
|
1690
1690
|
struct ecs_alert_severity_filter_t:
|
|
1691
1691
|
severity: ptr_uint
|
|
1692
1692
|
with: ptr_uint
|
|
1693
|
-
|
|
1693
|
+
var: cstr
|
|
1694
1694
|
_var_index: int
|
|
1695
1695
|
|
|
1696
1696
|
struct ecs_alert_desc_t:
|
|
@@ -1705,7 +1705,7 @@ struct ecs_alert_desc_t:
|
|
|
1705
1705
|
retain_period: float
|
|
1706
1706
|
member: ptr_uint
|
|
1707
1707
|
id: ptr_uint
|
|
1708
|
-
|
|
1708
|
+
var: cstr
|
|
1709
1709
|
|
|
1710
1710
|
external function ecs_alert_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_alert_desc_t]) -> ecs_entity_t
|
|
1711
1711
|
external function ecs_get_alert_count(world: const_ptr[ecs_world_t], entity: ptr_uint, alert: ptr_uint) -> int
|
|
@@ -1812,7 +1812,7 @@ struct EcsScript:
|
|
|
1812
1812
|
|
|
1813
1813
|
struct ecs_function_ctx_t:
|
|
1814
1814
|
world: ptr[ecs_world_t]
|
|
1815
|
-
|
|
1815
|
+
function: ptr_uint
|
|
1816
1816
|
ctx: ptr[void]
|
|
1817
1817
|
|
|
1818
1818
|
type ecs_function_callback_t = fn(arg0: const_ptr[ecs_function_ctx_t], arg1: int, arg2: const_ptr[ecs_value_t], arg3: ptr[ecs_value_t]) -> void
|
|
@@ -1820,7 +1820,7 @@ type ecs_vector_function_callback_t = fn(arg0: const_ptr[ecs_function_ctx_t], ar
|
|
|
1820
1820
|
|
|
1821
1821
|
struct ecs_script_parameter_t:
|
|
1822
1822
|
name: cstr
|
|
1823
|
-
|
|
1823
|
+
type: ptr_uint
|
|
1824
1824
|
|
|
1825
1825
|
struct EcsScriptConstVar:
|
|
1826
1826
|
value: ecs_value_t
|
|
@@ -1880,7 +1880,7 @@ struct ecs_expr_eval_desc_t:
|
|
|
1880
1880
|
name: cstr
|
|
1881
1881
|
expr: cstr
|
|
1882
1882
|
vars: const_ptr[ecs_script_vars_t]
|
|
1883
|
-
|
|
1883
|
+
type: ptr_uint
|
|
1884
1884
|
lookup_action: fn(arg0: const_ptr[ecs_world_t], arg1: cstr, arg2: ptr[void]) -> ecs_entity_t
|
|
1885
1885
|
lookup_ctx: ptr[void]
|
|
1886
1886
|
disable_folding: bool
|
|
@@ -1898,7 +1898,7 @@ external function ecs_script_string_interpolate(world: ptr[ecs_world_t], str_: c
|
|
|
1898
1898
|
struct ecs_const_var_desc_t:
|
|
1899
1899
|
name: cstr
|
|
1900
1900
|
parent: ptr_uint
|
|
1901
|
-
|
|
1901
|
+
type: ptr_uint
|
|
1902
1902
|
value: ptr[void]
|
|
1903
1903
|
|
|
1904
1904
|
external function ecs_const_var_init(world: ptr[ecs_world_t], desc: ptr[ecs_const_var_desc_t]) -> ecs_entity_t
|
|
@@ -1999,7 +1999,7 @@ struct EcsPrimitive:
|
|
|
1999
1999
|
kind: ecs_primitive_kind_t
|
|
2000
2000
|
|
|
2001
2001
|
struct EcsMember:
|
|
2002
|
-
|
|
2002
|
+
type: ptr_uint
|
|
2003
2003
|
count: int
|
|
2004
2004
|
unit: ptr_uint
|
|
2005
2005
|
offset: int
|
|
@@ -2016,7 +2016,7 @@ struct EcsMemberRanges:
|
|
|
2016
2016
|
|
|
2017
2017
|
struct ecs_member_t:
|
|
2018
2018
|
name: cstr
|
|
2019
|
-
|
|
2019
|
+
type: ptr_uint
|
|
2020
2020
|
count: int
|
|
2021
2021
|
offset: int
|
|
2022
2022
|
unit: ptr_uint
|
|
@@ -2053,11 +2053,11 @@ struct EcsConstants:
|
|
|
2053
2053
|
ordered_constants: ecs_vec_t
|
|
2054
2054
|
|
|
2055
2055
|
struct EcsArray:
|
|
2056
|
-
|
|
2056
|
+
type: ptr_uint
|
|
2057
2057
|
count: int
|
|
2058
2058
|
|
|
2059
2059
|
struct EcsVector:
|
|
2060
|
-
|
|
2060
|
+
type: ptr_uint
|
|
2061
2061
|
|
|
2062
2062
|
struct ecs_serializer_t:
|
|
2063
2063
|
value: fn(arg0: const_ptr[ecs_serializer_t], arg1: ecs_entity_t, arg2: const_ptr[void]) -> int
|
|
@@ -2146,22 +2146,22 @@ struct ecs_meta_op_t:
|
|
|
2146
2146
|
elem_size: int
|
|
2147
2147
|
op_count: short
|
|
2148
2148
|
member_index: short
|
|
2149
|
-
|
|
2149
|
+
type: ptr_uint
|
|
2150
2150
|
type_info: const_ptr[ecs_type_info_t]
|
|
2151
|
-
|
|
2151
|
+
is: ecs_meta_op_t_is
|
|
2152
2152
|
|
|
2153
2153
|
struct EcsTypeSerializer:
|
|
2154
2154
|
kind: ecs_type_kind_t
|
|
2155
2155
|
ops: ecs_vec_t
|
|
2156
2156
|
|
|
2157
2157
|
struct ecs_meta_scope_t:
|
|
2158
|
-
|
|
2158
|
+
type: ptr_uint
|
|
2159
2159
|
ops: ptr[ecs_meta_op_t]
|
|
2160
2160
|
ops_count: short
|
|
2161
2161
|
ops_cur: short
|
|
2162
2162
|
prev_depth: short
|
|
2163
2163
|
ptr: ptr[void]
|
|
2164
|
-
|
|
2164
|
+
opaque: const_ptr[EcsOpaque]
|
|
2165
2165
|
members: ptr[ecs_hashmap_t]
|
|
2166
2166
|
is_collection: bool
|
|
2167
2167
|
is_empty_scope: bool
|
|
@@ -2237,14 +2237,14 @@ external function ecs_bitmask_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_
|
|
|
2237
2237
|
|
|
2238
2238
|
struct ecs_array_desc_t:
|
|
2239
2239
|
entity: ptr_uint
|
|
2240
|
-
|
|
2240
|
+
type: ptr_uint
|
|
2241
2241
|
count: int
|
|
2242
2242
|
|
|
2243
2243
|
external function ecs_array_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_array_desc_t]) -> ecs_entity_t
|
|
2244
2244
|
|
|
2245
2245
|
struct ecs_vector_desc_t:
|
|
2246
2246
|
entity: ptr_uint
|
|
2247
|
-
|
|
2247
|
+
type: ptr_uint
|
|
2248
2248
|
|
|
2249
2249
|
external function ecs_vector_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_vector_desc_t]) -> ecs_entity_t
|
|
2250
2250
|
|
|
@@ -2260,7 +2260,7 @@ external function ecs_struct_get_nth_member(world: ptr[ecs_world_t], type_: ptr_
|
|
|
2260
2260
|
|
|
2261
2261
|
struct ecs_opaque_desc_t:
|
|
2262
2262
|
entity: ptr_uint
|
|
2263
|
-
|
|
2263
|
+
type: EcsOpaque
|
|
2264
2264
|
|
|
2265
2265
|
external function ecs_opaque_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_opaque_desc_t]) -> ecs_entity_t
|
|
2266
2266
|
|
data/std/c/libuv.mt
CHANGED
|
@@ -466,14 +466,14 @@ external function uv_err_name_r(err: int, buf: ptr[char], buflen: ptr_uint) -> p
|
|
|
466
466
|
|
|
467
467
|
struct uv_req_s = c"uv_req_t":
|
|
468
468
|
data: ptr[void]
|
|
469
|
-
|
|
469
|
+
type: uv_req_type
|
|
470
470
|
reserved: array[ptr[void], 6]
|
|
471
471
|
|
|
472
472
|
external function uv_shutdown(req: ptr[uv_shutdown_t], handle: ptr[uv_stream_t], cb: fn(arg0: ptr[uv_shutdown_t], arg1: int) -> void) -> int
|
|
473
473
|
|
|
474
474
|
struct uv_shutdown_s = c"uv_shutdown_t":
|
|
475
475
|
data: ptr[void]
|
|
476
|
-
|
|
476
|
+
type: uv_req_type
|
|
477
477
|
reserved: array[ptr[void], 6]
|
|
478
478
|
handle: ptr[uv_stream_t]
|
|
479
479
|
cb: fn(arg0: ptr[uv_shutdown_t], arg1: int) -> void
|
|
@@ -481,12 +481,12 @@ struct uv_shutdown_s = c"uv_shutdown_t":
|
|
|
481
481
|
struct uv_handle_s = c"uv_handle_t":
|
|
482
482
|
data: ptr[void]
|
|
483
483
|
loop: ptr[uv_loop_t]
|
|
484
|
-
|
|
484
|
+
type: uv_handle_type
|
|
485
485
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
486
486
|
handle_queue: uv__queue
|
|
487
487
|
u: uv_handle_s_u
|
|
488
488
|
next_closing: ptr[uv_handle_t]
|
|
489
|
-
|
|
489
|
+
flags: uint
|
|
490
490
|
|
|
491
491
|
external function uv_handle_size(type_: uv_handle_type) -> ptr_uint
|
|
492
492
|
external function uv_handle_get_type(handle: const_ptr[uv_handle_t]) -> uv_handle_type
|
|
@@ -512,12 +512,12 @@ external function uv_socketpair(type_: int, protocol: int, socket_vector: ptr[uv
|
|
|
512
512
|
struct uv_stream_s = c"uv_stream_t":
|
|
513
513
|
data: ptr[void]
|
|
514
514
|
loop: ptr[uv_loop_t]
|
|
515
|
-
|
|
515
|
+
type: uv_handle_type
|
|
516
516
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
517
517
|
handle_queue: uv__queue
|
|
518
518
|
u: uv_stream_s_u
|
|
519
519
|
next_closing: ptr[uv_handle_t]
|
|
520
|
-
|
|
520
|
+
flags: uint
|
|
521
521
|
write_queue_size: ptr_uint
|
|
522
522
|
alloc_cb: fn(arg0: ptr[uv_handle_t], arg1: ptr_uint, arg2: ptr[uv_buf_t]) -> void
|
|
523
523
|
read_cb: fn(arg0: ptr[uv_stream_t], arg1: ptr_int, arg2: const_ptr[uv_buf_t]) -> void
|
|
@@ -543,7 +543,7 @@ external function uv_try_write2(handle: ptr[uv_stream_t], bufs: const_ptr[uv_buf
|
|
|
543
543
|
|
|
544
544
|
struct uv_write_s = c"uv_write_t":
|
|
545
545
|
data: ptr[void]
|
|
546
|
-
|
|
546
|
+
type: uv_req_type
|
|
547
547
|
reserved: array[ptr[void], 6]
|
|
548
548
|
cb: fn(arg0: ptr[uv_write_t], arg1: int) -> void
|
|
549
549
|
send_handle: ptr[uv_stream_t]
|
|
@@ -563,12 +563,12 @@ external function uv_is_closing(handle: const_ptr[uv_handle_t]) -> int
|
|
|
563
563
|
struct uv_tcp_s = c"uv_tcp_t":
|
|
564
564
|
data: ptr[void]
|
|
565
565
|
loop: ptr[uv_loop_t]
|
|
566
|
-
|
|
566
|
+
type: uv_handle_type
|
|
567
567
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
568
568
|
handle_queue: uv__queue
|
|
569
569
|
u: uv_tcp_s_u
|
|
570
570
|
next_closing: ptr[uv_handle_t]
|
|
571
|
-
|
|
571
|
+
flags: uint
|
|
572
572
|
write_queue_size: ptr_uint
|
|
573
573
|
alloc_cb: fn(arg0: ptr[uv_handle_t], arg1: ptr_uint, arg2: ptr[uv_buf_t]) -> void
|
|
574
574
|
read_cb: fn(arg0: ptr[uv_stream_t], arg1: ptr_int, arg2: const_ptr[uv_buf_t]) -> void
|
|
@@ -602,7 +602,7 @@ external function uv_tcp_connect(req: ptr[uv_connect_t], handle: ptr[uv_tcp_t],
|
|
|
602
602
|
|
|
603
603
|
struct uv_connect_s = c"uv_connect_t":
|
|
604
604
|
data: ptr[void]
|
|
605
|
-
|
|
605
|
+
type: uv_req_type
|
|
606
606
|
reserved: array[ptr[void], 6]
|
|
607
607
|
cb: fn(arg0: ptr[uv_connect_t], arg1: int) -> void
|
|
608
608
|
handle: ptr[uv_stream_t]
|
|
@@ -624,12 +624,12 @@ type uv_udp_recv_cb = fn(arg0: ptr[uv_udp_t], arg1: ptr_int, arg2: const_ptr[uv_
|
|
|
624
624
|
struct uv_udp_s = c"uv_udp_t":
|
|
625
625
|
data: ptr[void]
|
|
626
626
|
loop: ptr[uv_loop_t]
|
|
627
|
-
|
|
627
|
+
type: uv_handle_type
|
|
628
628
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
629
629
|
handle_queue: uv__queue
|
|
630
630
|
u: uv_udp_s_u
|
|
631
631
|
next_closing: ptr[uv_handle_t]
|
|
632
|
-
|
|
632
|
+
flags: uint
|
|
633
633
|
send_queue_size: ptr_uint
|
|
634
634
|
send_queue_count: ptr_uint
|
|
635
635
|
alloc_cb: fn(arg0: ptr[uv_handle_t], arg1: ptr_uint, arg2: ptr[uv_buf_t]) -> void
|
|
@@ -640,7 +640,7 @@ struct uv_udp_s = c"uv_udp_t":
|
|
|
640
640
|
|
|
641
641
|
struct uv_udp_send_s = c"uv_udp_send_t":
|
|
642
642
|
data: ptr[void]
|
|
643
|
-
|
|
643
|
+
type: uv_req_type
|
|
644
644
|
reserved: array[ptr[void], 6]
|
|
645
645
|
handle: ptr[uv_udp_t]
|
|
646
646
|
cb: fn(arg0: ptr[uv_udp_send_t], arg1: int) -> void
|
|
@@ -679,12 +679,12 @@ external function uv_udp_get_send_queue_count(handle: const_ptr[uv_udp_t]) -> pt
|
|
|
679
679
|
struct uv_tty_s = c"uv_tty_t":
|
|
680
680
|
data: ptr[void]
|
|
681
681
|
loop: ptr[uv_loop_t]
|
|
682
|
-
|
|
682
|
+
type: uv_handle_type
|
|
683
683
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
684
684
|
handle_queue: uv__queue
|
|
685
685
|
u: uv_tty_s_u
|
|
686
686
|
next_closing: ptr[uv_handle_t]
|
|
687
|
-
|
|
687
|
+
flags: uint
|
|
688
688
|
write_queue_size: ptr_uint
|
|
689
689
|
alloc_cb: fn(arg0: ptr[uv_handle_t], arg1: ptr_uint, arg2: ptr[uv_buf_t]) -> void
|
|
690
690
|
read_cb: fn(arg0: ptr[uv_stream_t], arg1: ptr_int, arg2: const_ptr[uv_buf_t]) -> void
|
|
@@ -721,12 +721,12 @@ external function uv_guess_handle(file: int) -> uv_handle_type
|
|
|
721
721
|
struct uv_pipe_s = c"uv_pipe_t":
|
|
722
722
|
data: ptr[void]
|
|
723
723
|
loop: ptr[uv_loop_t]
|
|
724
|
-
|
|
724
|
+
type: uv_handle_type
|
|
725
725
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
726
726
|
handle_queue: uv__queue
|
|
727
727
|
u: uv_pipe_s_u
|
|
728
728
|
next_closing: ptr[uv_handle_t]
|
|
729
|
-
|
|
729
|
+
flags: uint
|
|
730
730
|
write_queue_size: ptr_uint
|
|
731
731
|
alloc_cb: fn(arg0: ptr[uv_handle_t], arg1: ptr_uint, arg2: ptr[uv_buf_t]) -> void
|
|
732
732
|
read_cb: fn(arg0: ptr[uv_stream_t], arg1: ptr_int, arg2: const_ptr[uv_buf_t]) -> void
|
|
@@ -758,12 +758,12 @@ external function uv_pipe_chmod(handle: ptr[uv_pipe_t], flags_: int) -> int
|
|
|
758
758
|
struct uv_poll_s = c"uv_poll_t":
|
|
759
759
|
data: ptr[void]
|
|
760
760
|
loop: ptr[uv_loop_t]
|
|
761
|
-
|
|
761
|
+
type: uv_handle_type
|
|
762
762
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
763
763
|
handle_queue: uv__queue
|
|
764
764
|
u: uv_poll_s_u
|
|
765
765
|
next_closing: ptr[uv_handle_t]
|
|
766
|
-
|
|
766
|
+
flags: uint
|
|
767
767
|
poll_cb: fn(arg0: ptr[uv_poll_t], arg1: int, arg2: int) -> void
|
|
768
768
|
io_watcher: uv__io_s
|
|
769
769
|
|
|
@@ -781,12 +781,12 @@ external function uv_poll_stop(handle: ptr[uv_poll_t]) -> int
|
|
|
781
781
|
struct uv_prepare_s = c"uv_prepare_t":
|
|
782
782
|
data: ptr[void]
|
|
783
783
|
loop: ptr[uv_loop_t]
|
|
784
|
-
|
|
784
|
+
type: uv_handle_type
|
|
785
785
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
786
786
|
handle_queue: uv__queue
|
|
787
787
|
u: uv_prepare_s_u
|
|
788
788
|
next_closing: ptr[uv_handle_t]
|
|
789
|
-
|
|
789
|
+
flags: uint
|
|
790
790
|
prepare_cb: fn(arg0: ptr[uv_prepare_t]) -> void
|
|
791
791
|
queue: uv__queue
|
|
792
792
|
|
|
@@ -797,12 +797,12 @@ external function uv_prepare_stop(prepare: ptr[uv_prepare_t]) -> int
|
|
|
797
797
|
struct uv_check_s = c"uv_check_t":
|
|
798
798
|
data: ptr[void]
|
|
799
799
|
loop: ptr[uv_loop_t]
|
|
800
|
-
|
|
800
|
+
type: uv_handle_type
|
|
801
801
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
802
802
|
handle_queue: uv__queue
|
|
803
803
|
u: uv_check_s_u
|
|
804
804
|
next_closing: ptr[uv_handle_t]
|
|
805
|
-
|
|
805
|
+
flags: uint
|
|
806
806
|
check_cb: fn(arg0: ptr[uv_check_t]) -> void
|
|
807
807
|
queue: uv__queue
|
|
808
808
|
|
|
@@ -813,12 +813,12 @@ external function uv_check_stop(check: ptr[uv_check_t]) -> int
|
|
|
813
813
|
struct uv_idle_s = c"uv_idle_t":
|
|
814
814
|
data: ptr[void]
|
|
815
815
|
loop: ptr[uv_loop_t]
|
|
816
|
-
|
|
816
|
+
type: uv_handle_type
|
|
817
817
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
818
818
|
handle_queue: uv__queue
|
|
819
819
|
u: uv_idle_s_u
|
|
820
820
|
next_closing: ptr[uv_handle_t]
|
|
821
|
-
|
|
821
|
+
flags: uint
|
|
822
822
|
idle_cb: fn(arg0: ptr[uv_idle_t]) -> void
|
|
823
823
|
queue: uv__queue
|
|
824
824
|
|
|
@@ -829,12 +829,12 @@ external function uv_idle_stop(idle: ptr[uv_idle_t]) -> int
|
|
|
829
829
|
struct uv_async_s = c"uv_async_t":
|
|
830
830
|
data: ptr[void]
|
|
831
831
|
loop: ptr[uv_loop_t]
|
|
832
|
-
|
|
832
|
+
type: uv_handle_type
|
|
833
833
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
834
834
|
handle_queue: uv__queue
|
|
835
835
|
u: uv_async_s_u
|
|
836
836
|
next_closing: ptr[uv_handle_t]
|
|
837
|
-
|
|
837
|
+
flags: uint
|
|
838
838
|
async_cb: fn(arg0: ptr[uv_async_t]) -> void
|
|
839
839
|
queue: uv__queue
|
|
840
840
|
pending: int
|
|
@@ -845,12 +845,12 @@ external function uv_async_send(async_: ptr[uv_async_t]) -> int
|
|
|
845
845
|
struct uv_timer_s = c"uv_timer_t":
|
|
846
846
|
data: ptr[void]
|
|
847
847
|
loop: ptr[uv_loop_t]
|
|
848
|
-
|
|
848
|
+
type: uv_handle_type
|
|
849
849
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
850
850
|
handle_queue: uv__queue
|
|
851
851
|
u: uv_timer_s_u
|
|
852
852
|
next_closing: ptr[uv_handle_t]
|
|
853
|
-
|
|
853
|
+
flags: uint
|
|
854
854
|
timer_cb: fn(arg0: ptr[uv_timer_t]) -> void
|
|
855
855
|
node: uv_timer_s_node
|
|
856
856
|
timeout: ptr_uint
|
|
@@ -867,7 +867,7 @@ external function uv_timer_get_due_in(handle: const_ptr[uv_timer_t]) -> ulong
|
|
|
867
867
|
|
|
868
868
|
struct uv_getaddrinfo_s = c"uv_getaddrinfo_t":
|
|
869
869
|
data: ptr[void]
|
|
870
|
-
|
|
870
|
+
type: uv_req_type
|
|
871
871
|
reserved: array[ptr[void], 6]
|
|
872
872
|
loop: ptr[uv_loop_t]
|
|
873
873
|
work_req: uv__work
|
|
@@ -883,13 +883,13 @@ external function uv_freeaddrinfo(ai: ptr[addrinfo]?) -> void
|
|
|
883
883
|
|
|
884
884
|
struct uv_getnameinfo_s = c"uv_getnameinfo_t":
|
|
885
885
|
data: ptr[void]
|
|
886
|
-
|
|
886
|
+
type: uv_req_type
|
|
887
887
|
reserved: array[ptr[void], 6]
|
|
888
888
|
loop: ptr[uv_loop_t]
|
|
889
889
|
work_req: uv__work
|
|
890
890
|
getnameinfo_cb: fn(arg0: ptr[uv_getnameinfo_t], arg1: int, arg2: cstr, arg3: cstr) -> void
|
|
891
891
|
storage: sockaddr_storage
|
|
892
|
-
|
|
892
|
+
flags: int
|
|
893
893
|
host: array[char, 1025]
|
|
894
894
|
service: array[char, 32]
|
|
895
895
|
retcode: int
|
|
@@ -907,7 +907,7 @@ flags uv_stdio_flags: int
|
|
|
907
907
|
UV_OVERLAPPED_PIPE = 64
|
|
908
908
|
|
|
909
909
|
struct uv_stdio_container_t:
|
|
910
|
-
|
|
910
|
+
flags: uv_stdio_flags
|
|
911
911
|
data: uv_stdio_container_t_data
|
|
912
912
|
|
|
913
913
|
struct uv_process_options_t:
|
|
@@ -916,7 +916,7 @@ struct uv_process_options_t:
|
|
|
916
916
|
args: ptr[ptr[char]]
|
|
917
917
|
env: ptr[ptr[char]]
|
|
918
918
|
cwd: cstr
|
|
919
|
-
|
|
919
|
+
flags: uint
|
|
920
920
|
stdio_count: int
|
|
921
921
|
stdio: ptr[uv_stdio_container_t]
|
|
922
922
|
uid: uint
|
|
@@ -935,12 +935,12 @@ flags uv_process_flags: int
|
|
|
935
935
|
struct uv_process_s = c"uv_process_t":
|
|
936
936
|
data: ptr[void]
|
|
937
937
|
loop: ptr[uv_loop_t]
|
|
938
|
-
|
|
938
|
+
type: uv_handle_type
|
|
939
939
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
940
940
|
handle_queue: uv__queue
|
|
941
941
|
u: uv_process_s_u
|
|
942
942
|
next_closing: ptr[uv_handle_t]
|
|
943
|
-
|
|
943
|
+
flags: uint
|
|
944
944
|
exit_cb: fn(arg0: ptr[uv_process_t], arg1: long, arg2: int) -> void
|
|
945
945
|
pid: int
|
|
946
946
|
queue: uv__queue
|
|
@@ -953,7 +953,7 @@ external function uv_process_get_pid(arg0: const_ptr[uv_process_t]) -> uv_pid_t
|
|
|
953
953
|
|
|
954
954
|
struct uv_work_s = c"uv_work_t":
|
|
955
955
|
data: ptr[void]
|
|
956
|
-
|
|
956
|
+
type: uv_req_type
|
|
957
957
|
reserved: array[ptr[void], 6]
|
|
958
958
|
loop: ptr[uv_loop_t]
|
|
959
959
|
work_cb: fn(arg0: ptr[uv_work_t]) -> void
|
|
@@ -1023,7 +1023,7 @@ enum uv_dirent_type_t: int
|
|
|
1023
1023
|
|
|
1024
1024
|
struct uv_dirent_s = c"uv_dirent_t":
|
|
1025
1025
|
name: cstr
|
|
1026
|
-
|
|
1026
|
+
type: uv_dirent_type_t
|
|
1027
1027
|
|
|
1028
1028
|
external function uv_setup_args(argc: int, argv: ptr[ptr[char]]) -> ptr[ptr[char]]
|
|
1029
1029
|
external function uv_get_process_title(buffer: ptr[char], size: ptr_uint) -> int
|
|
@@ -1142,7 +1142,7 @@ struct uv_dir_s = c"uv_dir_t":
|
|
|
1142
1142
|
|
|
1143
1143
|
struct uv_fs_s = c"uv_fs_t":
|
|
1144
1144
|
data: ptr[void]
|
|
1145
|
-
|
|
1145
|
+
type: uv_req_type
|
|
1146
1146
|
reserved: array[ptr[void], 6]
|
|
1147
1147
|
fs_type: uv_fs_type
|
|
1148
1148
|
loop: ptr[uv_loop_t]?
|
|
@@ -1153,7 +1153,7 @@ struct uv_fs_s = c"uv_fs_t":
|
|
|
1153
1153
|
statbuf: uv_stat_t
|
|
1154
1154
|
new_path: cstr
|
|
1155
1155
|
file: int
|
|
1156
|
-
|
|
1156
|
+
flags: int
|
|
1157
1157
|
mode: uint
|
|
1158
1158
|
nbufs: uint
|
|
1159
1159
|
bufs: ptr[uv_buf_t]
|
|
@@ -1217,12 +1217,12 @@ flags uv_fs_event: int
|
|
|
1217
1217
|
struct uv_fs_event_s = c"uv_fs_event_t":
|
|
1218
1218
|
data: ptr[void]
|
|
1219
1219
|
loop: ptr[uv_loop_t]
|
|
1220
|
-
|
|
1220
|
+
type: uv_handle_type
|
|
1221
1221
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
1222
1222
|
handle_queue: uv__queue
|
|
1223
1223
|
u: uv_fs_event_s_u
|
|
1224
1224
|
next_closing: ptr[uv_handle_t]
|
|
1225
|
-
|
|
1225
|
+
flags: uint
|
|
1226
1226
|
path: ptr[char]
|
|
1227
1227
|
cb: fn(arg0: ptr[uv_fs_event_t], arg1: cstr, arg2: int, arg3: int) -> void
|
|
1228
1228
|
watchers: uv__queue
|
|
@@ -1231,12 +1231,12 @@ struct uv_fs_event_s = c"uv_fs_event_t":
|
|
|
1231
1231
|
struct uv_fs_poll_s = c"uv_fs_poll_t":
|
|
1232
1232
|
data: ptr[void]
|
|
1233
1233
|
loop: ptr[uv_loop_t]
|
|
1234
|
-
|
|
1234
|
+
type: uv_handle_type
|
|
1235
1235
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
1236
1236
|
handle_queue: uv__queue
|
|
1237
1237
|
u: uv_fs_poll_s_u
|
|
1238
1238
|
next_closing: ptr[uv_handle_t]
|
|
1239
|
-
|
|
1239
|
+
flags: uint
|
|
1240
1240
|
poll_ctx: ptr[void]
|
|
1241
1241
|
|
|
1242
1242
|
external function uv_fs_poll_init(loop: ptr[uv_loop_t], handle: ptr[uv_fs_poll_t]) -> int
|
|
@@ -1247,12 +1247,12 @@ external function uv_fs_poll_getpath(handle: ptr[uv_fs_poll_t], buffer: ptr[char
|
|
|
1247
1247
|
struct uv_signal_s = c"uv_signal_t":
|
|
1248
1248
|
data: ptr[void]
|
|
1249
1249
|
loop: ptr[uv_loop_t]
|
|
1250
|
-
|
|
1250
|
+
type: uv_handle_type
|
|
1251
1251
|
close_cb: fn(arg0: ptr[uv_handle_t]) -> void
|
|
1252
1252
|
handle_queue: uv__queue
|
|
1253
1253
|
u: uv_signal_s_u
|
|
1254
1254
|
next_closing: ptr[uv_handle_t]
|
|
1255
|
-
|
|
1255
|
+
flags: uint
|
|
1256
1256
|
signal_cb: fn(arg0: ptr[uv_signal_t], arg1: int) -> void
|
|
1257
1257
|
signum: int
|
|
1258
1258
|
tree_entry: uv_signal_s_tree_entry
|
|
@@ -1284,7 +1284,7 @@ external function uv_inet_pton(af: int, src: cstr, dst: ptr[void]) -> int
|
|
|
1284
1284
|
|
|
1285
1285
|
struct uv_random_s = c"uv_random_t":
|
|
1286
1286
|
data: ptr[void]
|
|
1287
|
-
|
|
1287
|
+
type: uv_req_type
|
|
1288
1288
|
reserved: array[ptr[void], 6]
|
|
1289
1289
|
loop: ptr[uv_loop_t]
|
|
1290
1290
|
status: int
|
|
@@ -1356,7 +1356,7 @@ flags uv_thread_create_flags: int
|
|
|
1356
1356
|
UV_THREAD_HAS_STACK_SIZE = 1
|
|
1357
1357
|
|
|
1358
1358
|
struct uv_thread_options_t:
|
|
1359
|
-
|
|
1359
|
+
flags: uint
|
|
1360
1360
|
stack_size: ptr_uint
|
|
1361
1361
|
|
|
1362
1362
|
external function uv_thread_create_ex(tid: ptr[uv_thread_t], params: const_ptr[uv_thread_options_t], entry: fn(arg0: ptr[void]) -> void, arg: ptr[void]) -> int
|
|
@@ -1370,7 +1370,7 @@ external function uv_thread_setname(name: cstr) -> int
|
|
|
1370
1370
|
external function uv_thread_getname(tid: ptr[uv_thread_t], name: ptr[char], size: ptr_uint) -> int
|
|
1371
1371
|
|
|
1372
1372
|
union uv_any_handle = c"union uv_any_handle":
|
|
1373
|
-
|
|
1373
|
+
async: uv_async_s
|
|
1374
1374
|
check: uv_check_s
|
|
1375
1375
|
fs_event: uv_fs_event_s
|
|
1376
1376
|
fs_poll: uv_fs_poll_s
|
|
@@ -1406,7 +1406,7 @@ struct uv_loop_s = c"uv_loop_t":
|
|
|
1406
1406
|
active_reqs: uv_loop_s_active_reqs
|
|
1407
1407
|
internal_fields: ptr[void]
|
|
1408
1408
|
stop_flag: uint
|
|
1409
|
-
|
|
1409
|
+
flags: ptr_uint
|
|
1410
1410
|
backend_fd: int
|
|
1411
1411
|
pending_queue: uv__queue
|
|
1412
1412
|
watcher_queue: uv__queue
|