The best way to control Claude Code, Codex and more from any computer or phone

main
h 229 lines 4.76 KB
Raw
1 /* Generated by apps/mobile/scripts/generate-highlights.mts from @pierre/highlights 0.5.0 (highlights.wasm sha256 2fca61b661e57cb341d9ca1703780dab628f29594fee66c2919d0a0032b11290). Do not edit. */
2 /* Automatically generated by wasm2c */
3 #ifndef HIGHLIGHTS_H_GENERATED_
4 #define HIGHLIGHTS_H_GENERATED_
5
6 #include "wasm-rt.h"
7
8 #include <stdint.h>
9
10 #ifndef WASM_RT_CORE_TYPES_DEFINED
11 #define WASM_RT_CORE_TYPES_DEFINED
12 typedef uint8_t u8;
13 typedef int8_t s8;
14 typedef uint16_t u16;
15 typedef int16_t s16;
16 typedef uint32_t u32;
17 typedef int32_t s32;
18 typedef uint64_t u64;
19 typedef int64_t s64;
20 typedef float f32;
21 typedef double f64;
22 #endif
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 struct w2c_env;
29
30 typedef struct w2c_highlights {
31 struct w2c_env* w2c_env_instance;
32 u32 w2c_g0;
33 u32 w2c_g1;
34 u32 w2c_g2;
35 u32 w2c_g3;
36 u32 w2c_g4;
37 u32 w2c_g5;
38 u32 w2c_g6;
39 u32 w2c_g7;
40 u32 w2c_g8;
41 u32 w2c_g9;
42 u32 w2c_g10;
43 u32 w2c_g11;
44 u32 w2c_g12;
45 u32 w2c_g13;
46 u32 w2c_g14;
47 u32 w2c_g15;
48 u32 w2c_g16;
49 u32 w2c_g17;
50 u32 w2c_g18;
51 u32 w2c_g19;
52 u32 w2c_g20;
53 u32 w2c_g21;
54 u32 w2c_g22;
55 u32 w2c_g23;
56 u32 w2c_g24;
57 u32 w2c_g25;
58 u32 w2c_g26;
59 u32 w2c_g27;
60 u32 w2c_g28;
61 u32 w2c_g29;
62 u32 w2c_g30;
63 u32 w2c_g31;
64 u32 w2c_g32;
65 u32 w2c_g33;
66 u32 w2c_g34;
67 u32 w2c_g35;
68 u32 w2c_g36;
69 u32 w2c_g37;
70 u32 w2c_g38;
71 u32 w2c_g39;
72 u32 w2c_g40;
73 u32 w2c_g41;
74 u32 w2c_g42;
75 u32 w2c_g43;
76 u32 w2c_g44;
77 u32 w2c_g45;
78 u32 w2c_g46;
79 u32 w2c_g47;
80 u32 w2c_g48;
81 u32 w2c_g49;
82 u32 w2c_g50;
83 u32 w2c_g51;
84 u32 w2c_g52;
85 u32 w2c_g53;
86 u32 w2c_g54;
87 u32 w2c_g55;
88 u32 w2c_g56;
89 u32 w2c_g57;
90 u32 w2c_g58;
91 u32 w2c_g59;
92 u32 w2c_g60;
93 u32 w2c_g61;
94 u32 w2c_g62;
95 u32 w2c_g63;
96 u64 w2c_g64;
97 u32 w2c_g65;
98 u32 w2c_g66;
99 u32 w2c_g67;
100 u32 w2c_g68;
101 u32 w2c_g69;
102 u32 w2c_g70;
103 u32 w2c_g71;
104 u32 w2c_g72;
105 u32 w2c_g73;
106 u32 w2c_g74;
107 u32 w2c_g75;
108 u32 w2c_g76;
109 u32 w2c_g77;
110 u32 w2c_g78;
111 u32 w2c_g79;
112 u32 w2c_g80;
113 u32 w2c_g81;
114 u32 w2c_g82;
115 u32 w2c_g83;
116 u32 w2c_g84;
117 u32 w2c_g85;
118 u32 w2c_g86;
119 u32 w2c_g87;
120 u32 w2c_g88;
121 u32 w2c_g89;
122 u32 w2c_g90;
123 u32 w2c_g91;
124 u32 w2c_g92;
125 u32 w2c_g93;
126 u32 w2c_g94;
127 u32 w2c_g95;
128 u32 w2c_g96;
129 u32 w2c_g97;
130 u32 w2c_g98;
131 u32 w2c_g99;
132 u32 w2c_g100;
133 u32 w2c_g101;
134 u32 w2c_g102;
135 u32 w2c_g103;
136 u32 w2c_g104;
137 u32 w2c_g105;
138 u32 w2c_g106;
139 u32 w2c_g107;
140 u32 w2c_g108;
141 u32 w2c_g109;
142 u32 w2c_g110;
143 u32 w2c_g111;
144 u32 w2c_g112;
145 u32 w2c_g113;
146 u32 w2c_g114;
147 u32 w2c_g115;
148 u32 w2c_g116;
149 u32 w2c_g117;
150 u32 w2c_g118;
151 u32 w2c_g119;
152 u32 w2c_g120;
153 u32 w2c_g121;
154 u32 w2c_g122;
155 u32 w2c_g123;
156 u32 w2c_g124;
157 u32 w2c_g125;
158 u32 w2c_g126;
159 u32 w2c_g127;
160 u32 w2c_g128;
161 wasm_rt_memory_t w2c_memory;
162 wasm_rt_funcref_table_t w2c_T0;
163 } w2c_highlights;
164
165 void wasm2c_highlights_instantiate(w2c_highlights*, struct w2c_env*);
166 void wasm2c_highlights_free(w2c_highlights*);
167 wasm_rt_func_type_t wasm2c_highlights_get_func_type(uint32_t param_count, uint32_t result_count, ...);
168
169 /* import: 'env' 'is_id_continue' */
170 u32 w2c_env_is_id_continue(struct w2c_env*, u32, u32);
171 void wasm_tailcall_w2c_env_is_id_continue(void **instance_ptr, void *tail_call_stack, wasm_rt_tailcallee_t *next);
172
173 /* import: 'env' 'is_id_start' */
174 u32 w2c_env_is_id_start(struct w2c_env*, u32, u32);
175 void wasm_tailcall_w2c_env_is_id_start(void **instance_ptr, void *tail_call_stack, wasm_rt_tailcallee_t *next);
176
177 /* export: 'memory' */
178 wasm_rt_memory_t* w2c_highlights_memory(w2c_highlights* instance);
179
180 /* export: 'liveStage' */
181 u32 w2c_highlights_liveStage(w2c_highlights*, u32);
182
183 /* export: 'liveInitDoc' */
184 void w2c_highlights_liveInitDoc(w2c_highlights*, u32, u32, u32);
185
186 /* export: 'liveApplyEdits' */
187 void w2c_highlights_liveApplyEdits(w2c_highlights*, u32, u32);
188
189 /* export: 'liveRun' */
190 u32 w2c_highlights_liveRun(w2c_highlights*, u32, u32, u32);
191
192 /* export: 'liveLineCount' */
193 u32 w2c_highlights_liveLineCount(w2c_highlights*);
194
195 /* export: 'liveLineLen' */
196 u32 w2c_highlights_liveLineLen(w2c_highlights*, u32);
197
198 /* export: 'liveLineByteLen' */
199 u32 w2c_highlights_liveLineByteLen(w2c_highlights*, u32);
200
201 /* export: 'liveLineTextPtr' */
202 u32 w2c_highlights_liveLineTextPtr(w2c_highlights*, u32);
203
204 /* export: 'liveLineFlags' */
205 u32 w2c_highlights_liveLineFlags(w2c_highlights*, u32);
206
207 /* export: 'liveLineTokPtr' */
208 u32 w2c_highlights_liveLineTokPtr(w2c_highlights*, u32);
209
210 /* export: 'liveLineTokCount' */
211 u32 w2c_highlights_liveLineTokCount(w2c_highlights*, u32);
212
213 /* export: 'liveChangesPtr' */
214 u32 w2c_highlights_liveChangesPtr(w2c_highlights*);
215
216 /* export: 'liveStats' */
217 u32 w2c_highlights_liveStats(w2c_highlights*, u32);
218
219 /* export: 'highlight' */
220 void w2c_highlights_highlight(w2c_highlights*);
221
222 /* export: 'highlightStream' */
223 void w2c_highlights_highlightStream(w2c_highlights*, u32);
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229 #endif /* HIGHLIGHTS_H_GENERATED_ */