mt-lang 0.3.41 → 0.3.42
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/lib/milk_tea/base.rb +1 -1
- data/lib/milk_tea/bindings/bindgen/declaration.rb +17 -0
- data/lib/milk_tea/bindings/bindgen/emitter.rb +44 -5
- data/lib/milk_tea/bindings/imported_bindings/defaults.rb +7 -0
- data/lib/milk_tea/bindings/raw_bindings/defaults.rb +22 -0
- data/lib/milk_tea/bindings/upstream_sources.rb +9 -0
- data/lib/milk_tea/bindings/vendored_box3d.rb +77 -0
- data/lib/milk_tea/bindings.rb +1 -0
- data/lib/milk_tea/core/c_backend/expressions.rb +21 -5
- data/lib/milk_tea/core/c_backend/feature_detection.rb +1 -1
- data/lib/milk_tea/core/c_backend/runtime_helpers.rb +8 -4
- data/lib/milk_tea/core/c_backend/statements.rb +1 -1
- data/lib/milk_tea/core/c_backend/type_collectors.rb +23 -4
- data/lib/milk_tea/core/lowering/async/async_lowering.rb +2 -6
- data/lib/milk_tea/core/lowering/async/frame_builder.rb +12 -5
- data/lib/milk_tea/core/lowering/async/normalization.rb +26 -5
- data/lib/milk_tea/core/semantic_analyzer/expressions.rb +8 -2
- data/lib/milk_tea/core/semantic_analyzer/name_resolution.rb +3 -1
- data/lib/milk_tea/tooling/docs_app.rb +1 -1
- data/std/box3d.mt +784 -0
- data/std/c/box3d.mt +1871 -0
- data/std/c/miniaudio.mt +19 -28
- data/std/c/steamworks.mt +2 -5
- data/std/miniaudio.mt +9 -12
- data/std/steamworks.mt +0 -1
- metadata +5 -2
data/std/c/miniaudio.mt
CHANGED
|
@@ -6,16 +6,6 @@ link "pthread"
|
|
|
6
6
|
link "m"
|
|
7
7
|
include "miniaudio.h"
|
|
8
8
|
|
|
9
|
-
union ma_context_anonymous_union_14:
|
|
10
|
-
alsa: ma_context_anonymous_union_14_alsa
|
|
11
|
-
pulse: ma_context_anonymous_union_14_pulse
|
|
12
|
-
jack: ma_context_anonymous_union_14_jack
|
|
13
|
-
null_backend: ma_context_anonymous_union_14_null_backend
|
|
14
|
-
|
|
15
|
-
union ma_context_anonymous_union_15:
|
|
16
|
-
posix: ma_context_anonymous_union_15_posix
|
|
17
|
-
_unused: int
|
|
18
|
-
|
|
19
9
|
struct ma_device_resampling:
|
|
20
10
|
algorithm: ma_resample_algorithm
|
|
21
11
|
pBackendVTable: ptr[ma_resampling_backend_vtable]
|
|
@@ -68,12 +58,6 @@ struct ma_device_capture:
|
|
|
68
58
|
intermediaryBufferCap: uint
|
|
69
59
|
intermediaryBufferLen: uint
|
|
70
60
|
|
|
71
|
-
union ma_device_anonymous_union_24:
|
|
72
|
-
alsa: ma_device_anonymous_union_24_alsa
|
|
73
|
-
pulse: ma_device_anonymous_union_24_pulse
|
|
74
|
-
jack: ma_device_anonymous_union_24_jack
|
|
75
|
-
null_device: ma_device_anonymous_union_24_null_device
|
|
76
|
-
|
|
77
61
|
union ma_linear_resampler_x0:
|
|
78
62
|
f32: ptr[float]
|
|
79
63
|
s16: ptr[ma_int16]
|
|
@@ -230,7 +214,7 @@ struct ma_engine_node_fadeSettings:
|
|
|
230
214
|
fadeLengthInFrames: ma_atomic_uint64
|
|
231
215
|
absoluteGlobalTimeInFrames: ma_atomic_uint64
|
|
232
216
|
|
|
233
|
-
struct
|
|
217
|
+
struct ma_context_alsa:
|
|
234
218
|
asoundSO: ptr[void]
|
|
235
219
|
snd_pcm_open: fn() -> void
|
|
236
220
|
snd_pcm_close: fn() -> void
|
|
@@ -302,7 +286,7 @@ struct ma_context_anonymous_union_14_alsa:
|
|
|
302
286
|
internalDeviceEnumLock: pthread_mutex_t
|
|
303
287
|
useVerboseDeviceEnumeration: uint
|
|
304
288
|
|
|
305
|
-
struct
|
|
289
|
+
struct ma_context_pulse:
|
|
306
290
|
pulseSO: ptr[void]
|
|
307
291
|
pa_mainloop_new: fn() -> void
|
|
308
292
|
pa_mainloop_free: fn() -> void
|
|
@@ -370,7 +354,7 @@ struct ma_context_anonymous_union_14_pulse:
|
|
|
370
354
|
pApplicationName: ptr[char]
|
|
371
355
|
pServerName: ptr[char]
|
|
372
356
|
|
|
373
|
-
struct
|
|
357
|
+
struct ma_context_jack:
|
|
374
358
|
jackSO: ptr[void]
|
|
375
359
|
jack_client_open: fn() -> void
|
|
376
360
|
jack_client_close: fn() -> void
|
|
@@ -391,16 +375,16 @@ struct ma_context_anonymous_union_14_jack:
|
|
|
391
375
|
pClientName: ptr[char]
|
|
392
376
|
tryStartServer: uint
|
|
393
377
|
|
|
394
|
-
struct
|
|
378
|
+
struct ma_context_null_backend:
|
|
395
379
|
_unused: int
|
|
396
380
|
|
|
397
|
-
struct
|
|
381
|
+
struct ma_context_posix:
|
|
398
382
|
_unused: int
|
|
399
383
|
|
|
400
384
|
struct ma_device_resampling_linear:
|
|
401
385
|
lpfOrder: uint
|
|
402
386
|
|
|
403
|
-
struct
|
|
387
|
+
struct ma_device_alsa:
|
|
404
388
|
pPCMPlayback: ptr[void]
|
|
405
389
|
pPCMCapture: ptr[void]
|
|
406
390
|
pPollDescriptorsPlayback: ptr[void]
|
|
@@ -412,20 +396,20 @@ struct ma_device_anonymous_union_24_alsa:
|
|
|
412
396
|
isUsingMMapPlayback: ubyte
|
|
413
397
|
isUsingMMapCapture: ubyte
|
|
414
398
|
|
|
415
|
-
struct
|
|
399
|
+
struct ma_device_pulse:
|
|
416
400
|
pMainLoop: ptr[void]
|
|
417
401
|
pPulseContext: ptr[void]
|
|
418
402
|
pStreamPlayback: ptr[void]
|
|
419
403
|
pStreamCapture: ptr[void]
|
|
420
404
|
|
|
421
|
-
struct
|
|
405
|
+
struct ma_device_jack:
|
|
422
406
|
pClient: ptr[void]
|
|
423
407
|
ppPortsPlayback: ptr[ma_ptr]
|
|
424
408
|
ppPortsCapture: ptr[ma_ptr]
|
|
425
409
|
pIntermediaryBufferPlayback: ptr[float]
|
|
426
410
|
pIntermediaryBufferCapture: ptr[float]
|
|
427
411
|
|
|
428
|
-
struct
|
|
412
|
+
struct ma_device_null_device:
|
|
429
413
|
deviceThread: ptr_uint
|
|
430
414
|
operationEvent: ma_event
|
|
431
415
|
operationCompletionEvent: ma_event
|
|
@@ -2245,8 +2229,12 @@ struct ma_context:
|
|
|
2245
2229
|
playbackDeviceInfoCount: uint
|
|
2246
2230
|
captureDeviceInfoCount: uint
|
|
2247
2231
|
pDeviceInfos: ptr[ma_device_info]
|
|
2248
|
-
|
|
2249
|
-
|
|
2232
|
+
alsa: ma_context_alsa
|
|
2233
|
+
pulse: ma_context_pulse
|
|
2234
|
+
jack: ma_context_jack
|
|
2235
|
+
null_backend: ma_context_null_backend
|
|
2236
|
+
posix: ma_context_posix
|
|
2237
|
+
_unused: int
|
|
2250
2238
|
|
|
2251
2239
|
struct ma_device:
|
|
2252
2240
|
pContext: ptr[ma_context]
|
|
@@ -2273,7 +2261,10 @@ struct ma_device:
|
|
|
2273
2261
|
resampling: ma_device_resampling
|
|
2274
2262
|
playback: ma_device_playback
|
|
2275
2263
|
capture: ma_device_capture
|
|
2276
|
-
|
|
2264
|
+
alsa: ma_device_alsa
|
|
2265
|
+
pulse: ma_device_pulse
|
|
2266
|
+
jack: ma_device_jack
|
|
2267
|
+
null_device: ma_device_null_device
|
|
2277
2268
|
|
|
2278
2269
|
external function ma_context_config_init() -> ma_context_config
|
|
2279
2270
|
external function ma_context_init(backends: const_ptr[ma_backend], backendCount: uint, pConfig: const_ptr[ma_context_config], pContext: ptr[ma_context]) -> ma_result
|
data/std/c/steamworks.mt
CHANGED
|
@@ -4,10 +4,6 @@ external
|
|
|
4
4
|
link "steam_api"
|
|
5
5
|
include "steamworks.h"
|
|
6
6
|
|
|
7
|
-
union SteamInputActionEvent_t_anonymous_union_2:
|
|
8
|
-
analogAction: SteamInputActionEvent_t_AnalogAction_t
|
|
9
|
-
digitalAction: SteamInputActionEvent_t_DigitalAction_t
|
|
10
|
-
|
|
11
7
|
opaque CCallbackBase = c"CCallbackBase"
|
|
12
8
|
opaque CallbackMsg_t = c"CallbackMsg_t"
|
|
13
9
|
opaque ISteamApps = c"ISteamApps"
|
|
@@ -3671,7 +3667,8 @@ struct SteamInputActionEvent_t_DigitalAction_t:
|
|
|
3671
3667
|
struct SteamInputActionEvent_t:
|
|
3672
3668
|
controllerHandle: ulong
|
|
3673
3669
|
eEventType: ESteamInputActionEventType
|
|
3674
|
-
|
|
3670
|
+
analogAction: SteamInputActionEvent_t_AnalogAction_t
|
|
3671
|
+
digitalAction: SteamInputActionEvent_t_DigitalAction_t
|
|
3675
3672
|
|
|
3676
3673
|
type PFNPreMinidumpCallback = fn(arg0: ptr[void]) -> void
|
|
3677
3674
|
type SteamInputActionEventCallbackPointer = fn(arg0: ptr[SteamInputActionEvent_t]) -> void
|
data/std/miniaudio.mt
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import std.c.miniaudio as c
|
|
4
4
|
|
|
5
|
-
public type context_anonymous_union_14 = c.ma_context_anonymous_union_14
|
|
6
|
-
public type context_anonymous_union_15 = c.ma_context_anonymous_union_15
|
|
7
5
|
public type device_resampling = c.ma_device_resampling
|
|
8
6
|
public type device_playback = c.ma_device_playback
|
|
9
7
|
public type device_capture = c.ma_device_capture
|
|
10
|
-
public type device_anonymous_union_24 = c.ma_device_anonymous_union_24
|
|
11
8
|
public type linear_resampler_x0 = c.ma_linear_resampler_x0
|
|
12
9
|
public type linear_resampler_x1 = c.ma_linear_resampler_x1
|
|
13
10
|
public type resampler_config_linear = c.ma_resampler_config_linear
|
|
@@ -39,16 +36,16 @@ public type resource_manager_data_buffer_connector = c.ma_resource_manager_data_
|
|
|
39
36
|
public type resource_manager_data_source_backend = c.ma_resource_manager_data_source_backend
|
|
40
37
|
public type resource_manager_data_supply_backend = c.ma_resource_manager_data_supply_backend
|
|
41
38
|
public type engine_node_fadeSettings = c.ma_engine_node_fadeSettings
|
|
42
|
-
public type
|
|
43
|
-
public type
|
|
44
|
-
public type
|
|
45
|
-
public type
|
|
46
|
-
public type
|
|
39
|
+
public type context_alsa = c.ma_context_alsa
|
|
40
|
+
public type context_pulse = c.ma_context_pulse
|
|
41
|
+
public type context_jack = c.ma_context_jack
|
|
42
|
+
public type context_null_backend = c.ma_context_null_backend
|
|
43
|
+
public type context_posix = c.ma_context_posix
|
|
47
44
|
public type device_resampling_linear = c.ma_device_resampling_linear
|
|
48
|
-
public type
|
|
49
|
-
public type
|
|
50
|
-
public type
|
|
51
|
-
public type
|
|
45
|
+
public type device_alsa = c.ma_device_alsa
|
|
46
|
+
public type device_pulse = c.ma_device_pulse
|
|
47
|
+
public type device_jack = c.ma_device_jack
|
|
48
|
+
public type device_null_device = c.ma_device_null_device
|
|
52
49
|
public type job_toc_breakup = c.ma_job_toc_breakup
|
|
53
50
|
public type job_data_custom = c.ma_job_data_custom
|
|
54
51
|
public type job_data_resourceManager = c.ma_job_data_resourceManager
|
data/std/steamworks.mt
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mt-lang
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.42
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Long (Teefan) Tran
|
|
@@ -170,6 +170,7 @@ files:
|
|
|
170
170
|
- lib/milk_tea/bindings/steamworks.rb
|
|
171
171
|
- lib/milk_tea/bindings/upstream_sources.rb
|
|
172
172
|
- lib/milk_tea/bindings/vendored_box2d.rb
|
|
173
|
+
- lib/milk_tea/bindings/vendored_box3d.rb
|
|
173
174
|
- lib/milk_tea/bindings/vendored_c_library.rb
|
|
174
175
|
- lib/milk_tea/bindings/vendored_cjson.rb
|
|
175
176
|
- lib/milk_tea/bindings/vendored_flecs.rb
|
|
@@ -427,8 +428,10 @@ files:
|
|
|
427
428
|
- std/blackboard.mt
|
|
428
429
|
- std/box.mt
|
|
429
430
|
- std/box2d.mt
|
|
431
|
+
- std/box3d.mt
|
|
430
432
|
- std/bytes.mt
|
|
431
433
|
- std/c/box2d.mt
|
|
434
|
+
- std/c/box3d.mt
|
|
432
435
|
- std/c/cgltf.mt
|
|
433
436
|
- std/c/cjson.mt
|
|
434
437
|
- std/c/crypto.mt
|
|
@@ -625,7 +628,7 @@ metadata:
|
|
|
625
628
|
homepage_uri: https://teefan.github.io/mt-lang/
|
|
626
629
|
source_code_uri: https://github.com/teefan/mt-lang
|
|
627
630
|
post_install_message: |
|
|
628
|
-
Milk Tea 0.3.
|
|
631
|
+
Milk Tea 0.3.42 installed!
|
|
629
632
|
|
|
630
633
|
System requirements:
|
|
631
634
|
- A C compiler (gcc or clang) must be available on PATH
|