@mentra/crust 3.3.0-dev.656 → 3.3.0-dev.659

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.
Files changed (56) hide show
  1. package/README.md +7 -0
  2. package/android/build.gradle +15 -40
  3. package/android/src/main/java/com/mentra/crust/jsc/JSCRuntime.kt +13 -4
  4. package/android/src/test/java/com/mentra/crust/jsc/QuickJsLifecycleTest.kt +87 -0
  5. package/package.json +2 -2
  6. package/plugin/build/index.d.ts +2 -0
  7. package/plugin/build/index.js +2 -0
  8. package/plugin/build/withAndroid.js +39 -0
  9. package/android/quickjs-consumer-rules.pro +0 -6
  10. package/android/scripts/test-quickjs-lifecycle.py +0 -45
  11. package/android/src/main/cpp/quickjs/CMakeLists.txt +0 -20
  12. package/android/src/main/cpp/quickjs/LICENSE.quickjs-kt.txt +0 -201
  13. package/android/src/main/cpp/quickjs/README.md +0 -30
  14. package/android/src/main/cpp/quickjs/c-vector/LICENSE +0 -21
  15. package/android/src/main/cpp/quickjs/c-vector/cvector.h +0 -479
  16. package/android/src/main/cpp/quickjs/common/quickjs_version.c +0 -9
  17. package/android/src/main/cpp/quickjs/common/quickjs_version.h +0 -9
  18. package/android/src/main/cpp/quickjs/engine/LICENSE +0 -22
  19. package/android/src/main/cpp/quickjs/engine/VERSION +0 -1
  20. package/android/src/main/cpp/quickjs/engine/cutils.c +0 -631
  21. package/android/src/main/cpp/quickjs/engine/cutils.h +0 -347
  22. package/android/src/main/cpp/quickjs/engine/libbf.c +0 -8475
  23. package/android/src/main/cpp/quickjs/engine/libbf.h +0 -535
  24. package/android/src/main/cpp/quickjs/engine/libregexp-opcode.h +0 -57
  25. package/android/src/main/cpp/quickjs/engine/libregexp.c +0 -2501
  26. package/android/src/main/cpp/quickjs/engine/libregexp.h +0 -55
  27. package/android/src/main/cpp/quickjs/engine/libunicode-table.h +0 -4557
  28. package/android/src/main/cpp/quickjs/engine/libunicode.c +0 -1910
  29. package/android/src/main/cpp/quickjs/engine/libunicode.h +0 -182
  30. package/android/src/main/cpp/quickjs/engine/list.h +0 -99
  31. package/android/src/main/cpp/quickjs/engine/quickjs-atom.h +0 -273
  32. package/android/src/main/cpp/quickjs/engine/quickjs-opcode.h +0 -372
  33. package/android/src/main/cpp/quickjs/engine/quickjs.c +0 -55978
  34. package/android/src/main/cpp/quickjs/engine/quickjs.h +0 -1087
  35. package/android/src/main/cpp/quickjs/jni/binding_bridge.c +0 -488
  36. package/android/src/main/cpp/quickjs/jni/binding_bridge.h +0 -32
  37. package/android/src/main/cpp/quickjs/jni/exception_util.c +0 -64
  38. package/android/src/main/cpp/quickjs/jni/exception_util.h +0 -21
  39. package/android/src/main/cpp/quickjs/jni/jni_globals.c +0 -59
  40. package/android/src/main/cpp/quickjs/jni/jni_globals.h +0 -12
  41. package/android/src/main/cpp/quickjs/jni/jni_globals_generated.c +0 -855
  42. package/android/src/main/cpp/quickjs/jni/jni_globals_generated.h +0 -171
  43. package/android/src/main/cpp/quickjs/jni/js_value_util.c +0 -213
  44. package/android/src/main/cpp/quickjs/jni/js_value_util.h +0 -71
  45. package/android/src/main/cpp/quickjs/jni/log_util.h +0 -15
  46. package/android/src/main/cpp/quickjs/jni/mapping/jni_types_util.c +0 -27
  47. package/android/src/main/cpp/quickjs/jni/mapping/jni_types_util.h +0 -15
  48. package/android/src/main/cpp/quickjs/jni/mapping/jobject_to_js_value.c +0 -620
  49. package/android/src/main/cpp/quickjs/jni/mapping/jobject_to_js_value.h +0 -13
  50. package/android/src/main/cpp/quickjs/jni/mapping/js_value_to_jobject.c +0 -421
  51. package/android/src/main/cpp/quickjs/jni/mapping/js_value_to_jobject.h +0 -12
  52. package/android/src/main/cpp/quickjs/jni/promise_rejection_handler.c +0 -20
  53. package/android/src/main/cpp/quickjs/jni/promise_rejection_handler.h +0 -10
  54. package/android/src/main/cpp/quickjs/jni/quickjs_jni.c +0 -735
  55. package/android/src/main/cpp/quickjs/jni/quickjs_jni.h +0 -40
  56. package/android/src/testNative/QuickJsLifecycleTest.kt +0 -56
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Evan Teran
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,479 +0,0 @@
1
- /*
2
- * Copyright (c) 2015 Evan Teran
3
- *
4
- * License: The MIT License (MIT)
5
- */
6
-
7
- #ifndef CVECTOR_H_
8
- #define CVECTOR_H_
9
-
10
- /* cvector heap implemented using C library malloc() */
11
-
12
- /* in case C library malloc() needs extra protection,
13
- * allow these defines to be overridden.
14
- */
15
- #ifndef cvector_clib_free
16
- #include <stdlib.h> /* for free */
17
- #define cvector_clib_free free
18
- #endif
19
- #ifndef cvector_clib_malloc
20
- #include <stdlib.h> /* for malloc */
21
- #define cvector_clib_malloc malloc
22
- #endif
23
- #ifndef cvector_clib_calloc
24
- #include <stdlib.h> /* for calloc */
25
- #define cvector_clib_calloc calloc
26
- #endif
27
- #ifndef cvector_clib_realloc
28
- #include <stdlib.h> /* for realloc */
29
- #define cvector_clib_realloc realloc
30
- #endif
31
- #ifndef cvector_clib_assert
32
- #include <assert.h> /* for assert */
33
- #define cvector_clib_assert assert
34
- #endif
35
- #ifndef cvector_clib_memcpy
36
- #include <string.h> /* for memcpy */
37
- #define cvector_clib_memcpy memcpy
38
- #endif
39
- #ifndef cvector_clib_memmove
40
- #include <string.h> /* for memmove */
41
- #define cvector_clib_memmove memmove
42
- #endif
43
-
44
- /* NOTE: Similar to C's qsort and bsearch, you will receive a T*
45
- * for a vector of Ts. This means that you cannot use `free` directly
46
- * as a destructor. Instead if you have for example a cvector_vector_type(int *)
47
- * you will need to supply a function which casts `elem_ptr` to an `int**`
48
- * and then does a free on what that pointer points to:
49
- *
50
- * ex:
51
- *
52
- * void free_int(void *p) { free(*(int **)p); }
53
- */
54
- typedef void (*cvector_elem_destructor_t)(void *elem_ptr);
55
-
56
- typedef struct cvector_metadata_t {
57
- size_t size;
58
- size_t capacity;
59
- cvector_elem_destructor_t elem_destructor;
60
- } cvector_metadata_t;
61
-
62
- /**
63
- * @brief cvector_vector_type - The vector type used in this library
64
- */
65
- #define cvector_vector_type(type) type *
66
-
67
- /**
68
- * @brief cvector - Syntactic sugar to retrieve a vector type
69
- *
70
- * @param type The type of vector to act on.
71
- */
72
- #define cvector(type) cvector_vector_type(type)
73
-
74
- /*
75
- * @brief cvector_iterator - The iterator type used for cvector
76
- */
77
- #define cvector_iterator(type) cvector_vector_type(type)
78
-
79
- /**
80
- * @brief cvector_vec_to_base - For internal use, converts a vector pointer to a metadata pointer
81
- * @param vec - the vector
82
- * @return the metadata pointer of the vector
83
- * @internal
84
- */
85
- #define cvector_vec_to_base(vec) \
86
- (&((cvector_metadata_t *)(vec))[-1])
87
-
88
- /**
89
- * @brief cvector_base_to_vec - For internal use, converts a metadata pointer to a vector pointer
90
- * @param ptr - pointer to the metadata
91
- * @return the vector
92
- * @internal
93
- */
94
- #define cvector_base_to_vec(ptr) \
95
- ((void *)&((cvector_metadata_t *)(ptr))[1])
96
-
97
- /**
98
- * @brief cvector_capacity - gets the current capacity of the vector
99
- * @param vec - the vector
100
- * @return the capacity as a size_t
101
- */
102
- #define cvector_capacity(vec) \
103
- ((vec) ? cvector_vec_to_base(vec)->capacity : (size_t)0)
104
-
105
- /**
106
- * @brief cvector_size - gets the current size of the vector
107
- * @param vec - the vector
108
- * @return the size as a size_t
109
- */
110
- #define cvector_size(vec) \
111
- ((vec) ? cvector_vec_to_base(vec)->size : (size_t)0)
112
-
113
- /**
114
- * @brief cvector_elem_destructor - get the element destructor function used
115
- * to clean up elements
116
- * @param vec - the vector
117
- * @return the function pointer as cvector_elem_destructor_t
118
- */
119
- #define cvector_elem_destructor(vec) \
120
- ((vec) ? cvector_vec_to_base(vec)->elem_destructor : NULL)
121
-
122
- /**
123
- * @brief cvector_empty - returns non-zero if the vector is empty
124
- * @param vec - the vector
125
- * @return non-zero if empty, zero if non-empty
126
- */
127
- #define cvector_empty(vec) \
128
- (cvector_size(vec) == 0)
129
-
130
- /**
131
- * @brief cvector_reserve - Requests that the vector capacity be at least enough
132
- * to contain n elements. If n is greater than the current vector capacity, the
133
- * function causes the container to reallocate its storage increasing its
134
- * capacity to n (or greater).
135
- * @param vec - the vector
136
- * @param n - Minimum capacity for the vector.
137
- * @return void
138
- */
139
- #define cvector_reserve(vec, n) \
140
- do { \
141
- size_t cv_cap__ = cvector_capacity(vec); \
142
- if (cv_cap__ < (n)) { \
143
- cvector_grow((vec), (n)); \
144
- } \
145
- } while (0)
146
-
147
- /*
148
- * @brief cvector_init - Initialize a vector. The vector must be NULL for this to do anything.
149
- * @param vec - the vector
150
- * @param capacity - vector capacity to reserve
151
- * @param elem_destructor_fn - element destructor function
152
- * @return void
153
- */
154
- #define cvector_init(vec, capacity, elem_destructor_fn) \
155
- do { \
156
- if (!(vec)) { \
157
- cvector_reserve((vec), capacity); \
158
- cvector_set_elem_destructor((vec), (elem_destructor_fn)); \
159
- } \
160
- } while (0)
161
-
162
- /**
163
- * @brief cvector_erase - removes the element at index i from the vector
164
- * @param vec - the vector
165
- * @param i - index of element to remove
166
- * @return void
167
- */
168
- #define cvector_erase(vec, i) \
169
- do { \
170
- if (vec) { \
171
- const size_t cv_sz__ = cvector_size(vec); \
172
- if ((i) < cv_sz__) { \
173
- cvector_elem_destructor_t elem_destructor__ = cvector_elem_destructor(vec); \
174
- if (elem_destructor__) { \
175
- elem_destructor__(&(vec)[i]); \
176
- } \
177
- cvector_set_size((vec), cv_sz__ - 1); \
178
- cvector_clib_memmove( \
179
- (vec) + (i), \
180
- (vec) + (i) + 1, \
181
- sizeof(*(vec)) * (cv_sz__ - 1 - (i))); \
182
- } \
183
- } \
184
- } while (0)
185
-
186
- /**
187
- * @brief cvector_clear - erase all of the elements in the vector
188
- * @param vec - the vector
189
- * @return void
190
- */
191
- #define cvector_clear(vec) \
192
- do { \
193
- if (vec) { \
194
- cvector_elem_destructor_t elem_destructor__ = cvector_elem_destructor(vec); \
195
- if (elem_destructor__) { \
196
- size_t i__; \
197
- for (i__ = 0; i__ < cvector_size(vec); ++i__) { \
198
- elem_destructor__(&(vec)[i__]); \
199
- } \
200
- } \
201
- cvector_set_size(vec, 0); \
202
- } \
203
- } while (0)
204
-
205
- /**
206
- * @brief cvector_free - frees all memory associated with the vector
207
- * @param vec - the vector
208
- * @return void
209
- */
210
- #define cvector_free(vec) \
211
- do { \
212
- if (vec) { \
213
- void *p1__ = cvector_vec_to_base(vec); \
214
- cvector_elem_destructor_t elem_destructor__ = cvector_elem_destructor(vec); \
215
- if (elem_destructor__) { \
216
- size_t i__; \
217
- for (i__ = 0; i__ < cvector_size(vec); ++i__) { \
218
- elem_destructor__(&(vec)[i__]); \
219
- } \
220
- } \
221
- cvector_clib_free(p1__); \
222
- } \
223
- } while (0)
224
-
225
- /**
226
- * @brief cvector_begin - returns an iterator to first element of the vector
227
- * @param vec - the vector
228
- * @return a pointer to the first element (or NULL)
229
- */
230
- #define cvector_begin(vec) \
231
- (vec)
232
-
233
- /**
234
- * @brief cvector_end - returns an iterator to one past the last element of the vector
235
- * @param vec - the vector
236
- * @return a pointer to one past the last element (or NULL)
237
- */
238
- #define cvector_end(vec) \
239
- ((vec) ? &((vec)[cvector_size(vec)]) : NULL)
240
-
241
- /* user request to use logarithmic growth algorithm */
242
- #ifdef CVECTOR_LOGARITHMIC_GROWTH
243
-
244
- /**
245
- * @brief cvector_compute_next_grow - returns an the computed size in next vector grow
246
- * size is increased by multiplication of 2
247
- * @param size - current size
248
- * @return size after next vector grow
249
- */
250
- #define cvector_compute_next_grow(size) \
251
- ((size) ? ((size) << 1) : 1)
252
-
253
- #else
254
-
255
- /**
256
- * @brief cvector_compute_next_grow - returns an the computed size in next vector grow
257
- * size is increased by 1
258
- * @param size - current size
259
- * @return size after next vector grow
260
- */
261
- #define cvector_compute_next_grow(size) \
262
- ((size) + 1)
263
-
264
- #endif /* CVECTOR_LOGARITHMIC_GROWTH */
265
-
266
- /**
267
- * @brief cvector_push_back - adds an element to the end of the vector
268
- * @param vec - the vector
269
- * @param value - the value to add
270
- * @return void
271
- */
272
- #define cvector_push_back(vec, value) \
273
- do { \
274
- size_t cv_cap__ = cvector_capacity(vec); \
275
- if (cv_cap__ <= cvector_size(vec)) { \
276
- cvector_grow((vec), cvector_compute_next_grow(cv_cap__)); \
277
- } \
278
- (vec)[cvector_size(vec)] = (value); \
279
- cvector_set_size((vec), cvector_size(vec) + 1); \
280
- } while (0)
281
-
282
- /**
283
- * @brief cvector_insert - insert element at position pos to the vector
284
- * @param vec - the vector
285
- * @param pos - position in the vector where the new elements are inserted.
286
- * @param val - value to be copied (or moved) to the inserted elements.
287
- * @return void
288
- */
289
- #define cvector_insert(vec, pos, val) \
290
- do { \
291
- size_t cv_cap__ = cvector_capacity(vec); \
292
- if (cv_cap__ <= cvector_size(vec)) { \
293
- cvector_grow((vec), cvector_compute_next_grow(cv_cap__)); \
294
- } \
295
- if ((pos) < cvector_size(vec)) { \
296
- cvector_clib_memmove( \
297
- (vec) + (pos) + 1, \
298
- (vec) + (pos), \
299
- sizeof(*(vec)) * ((cvector_size(vec)) - (pos))); \
300
- } \
301
- (vec)[(pos)] = (val); \
302
- cvector_set_size((vec), cvector_size(vec) + 1); \
303
- } while (0)
304
-
305
- /**
306
- * @brief cvector_pop_back - removes the last element from the vector
307
- * @param vec - the vector
308
- * @return void
309
- */
310
- #define cvector_pop_back(vec) \
311
- do { \
312
- cvector_elem_destructor_t elem_destructor__ = cvector_elem_destructor(vec); \
313
- if (elem_destructor__) { \
314
- elem_destructor__(&(vec)[cvector_size(vec) - 1]); \
315
- } \
316
- cvector_set_size((vec), cvector_size(vec) - 1); \
317
- } while (0)
318
-
319
- /**
320
- * @brief cvector_copy - copy a vector
321
- * @param from - the original vector
322
- * @param to - destination to which the function copy to
323
- * @return void
324
- */
325
- #define cvector_copy(from, to) \
326
- do { \
327
- if ((from)) { \
328
- cvector_grow(to, cvector_size(from)); \
329
- cvector_set_size(to, cvector_size(from)); \
330
- cvector_clib_memcpy((to), (from), cvector_size(from) * sizeof(*(from))); \
331
- } \
332
- } while (0)
333
-
334
- /**
335
- * @brief cvector_swap - exchanges the content of the vector by the content of another vector of the same type
336
- * @param vec - the original vector
337
- * @param other - the other vector to swap content with
338
- * @param type - the type of both vectors
339
- * @return void
340
- */
341
- #define cvector_swap(vec, other, type) \
342
- do { \
343
- if (vec && other) { \
344
- cvector_vector_type(type) cv_swap__ = vec; \
345
- vec = other; \
346
- other = cv_swap__; \
347
- } \
348
- } while (0)
349
-
350
- /**
351
- * @brief cvector_set_capacity - For internal use, sets the capacity variable of the vector
352
- * @param vec - the vector
353
- * @param size - the new capacity to set
354
- * @return void
355
- * @internal
356
- */
357
- #define cvector_set_capacity(vec, size) \
358
- do { \
359
- if (vec) { \
360
- cvector_vec_to_base(vec)->capacity = (size); \
361
- } \
362
- } while (0)
363
-
364
- /**
365
- * @brief cvector_set_size - For internal use, sets the size variable of the vector
366
- * @param vec - the vector
367
- * @param size - the new capacity to set
368
- * @return void
369
- * @internal
370
- */
371
- #define cvector_set_size(vec, _size) \
372
- do { \
373
- if (vec) { \
374
- cvector_vec_to_base(vec)->size = (_size); \
375
- } \
376
- } while (0)
377
-
378
- /**
379
- * @brief cvector_set_elem_destructor - set the element destructor function
380
- * used to clean up removed elements. The vector must NOT be NULL for this to do anything.
381
- * @param vec - the vector
382
- * @param elem_destructor_fn - function pointer of type cvector_elem_destructor_t used to destroy elements
383
- * @return void
384
- */
385
- #define cvector_set_elem_destructor(vec, elem_destructor_fn) \
386
- do { \
387
- if (vec) { \
388
- cvector_vec_to_base(vec)->elem_destructor = (elem_destructor_fn); \
389
- } \
390
- } while (0)
391
-
392
- /**
393
- * @brief cvector_grow - For internal use, ensures that the vector is at least <count> elements big
394
- * @param vec - the vector
395
- * @param count - the new capacity to set
396
- * @return void
397
- * @internal
398
- */
399
- #define cvector_grow(vec, count) \
400
- do { \
401
- const size_t cv_sz__ = (count) * sizeof(*(vec)) + sizeof(cvector_metadata_t); \
402
- if (vec) { \
403
- void *cv_p1__ = cvector_vec_to_base(vec); \
404
- void *cv_p2__ = cvector_clib_realloc(cv_p1__, cv_sz__); \
405
- cvector_clib_assert(cv_p2__); \
406
- (vec) = cvector_base_to_vec(cv_p2__); \
407
- } else { \
408
- void *cv_p__ = cvector_clib_malloc(cv_sz__); \
409
- cvector_clib_assert(cv_p__); \
410
- (vec) = cvector_base_to_vec(cv_p__); \
411
- cvector_set_size((vec), 0); \
412
- cvector_set_elem_destructor((vec), NULL); \
413
- } \
414
- cvector_set_capacity((vec), (count)); \
415
- } while (0)
416
-
417
- /**
418
- * @brief cvector_shrink_to_fit - requests the container to reduce its capacity to fit its size
419
- * @param vec - the vector
420
- * @return void
421
- */
422
- #define cvector_shrink_to_fit(vec) \
423
- do { \
424
- if (vec) { \
425
- const size_t cv_sz___ = cvector_size(vec); \
426
- cvector_grow(vec, cv_sz___); \
427
- } \
428
- } while (0)
429
-
430
- /**
431
- * @brief cvector_at - returns a reference to the element at position n in the vector.
432
- * @param vec - the vector
433
- * @param n - position of an element in the vector.
434
- * @return the element at the specified position in the vector.
435
- */
436
- #define cvector_at(vec, n) \
437
- ((vec) ? (((int)(n) < 0 || (size_t)(n) >= cvector_size(vec)) ? NULL : &(vec)[n]) : NULL)
438
-
439
- /**
440
- * @brief cvector_front - returns a reference to the first element in the vector. Unlike member cvector_begin, which returns an iterator to this same element, this function returns a direct reference.
441
- * @return a reference to the first element in the vector container.
442
- */
443
- #define cvector_front(vec) \
444
- ((vec) ? ((cvector_size(vec) > 0) ? cvector_at(vec, 0) : NULL) : NULL)
445
-
446
- /**
447
- * @brief cvector_back - returns a reference to the last element in the vector.Unlike member cvector_end, which returns an iterator just past this element, this function returns a direct reference.
448
- * @return a reference to the last element in the vector.
449
- */
450
- #define cvector_back(vec) \
451
- ((vec) ? ((cvector_size(vec) > 0) ? cvector_at(vec, cvector_size(vec) - 1) : NULL) : NULL)
452
-
453
- /**
454
- * @brief cvector_resize - resizes the container to contain count elements.
455
- * @param vec - the vector
456
- * @param count - new size of the vector
457
- * @param value - the value to initialize new elements with
458
- * @return void
459
- */
460
- #define cvector_resize(vec, count, value) \
461
- do { \
462
- if (vec) { \
463
- size_t cv_sz_count__ = (size_t)(count); \
464
- size_t cv_sz__ = cvector_vec_to_base(vec)->size; \
465
- if (cv_sz_count__ > cv_sz__) { \
466
- cvector_reserve((vec), cv_sz_count__); \
467
- cvector_set_size((vec), cv_sz_count__); \
468
- do { \
469
- (vec)[cv_sz__++] = (value); \
470
- } while (cv_sz__ < cv_sz_count__); \
471
- } else { \
472
- while (cv_sz_count__ < cv_sz__--) { \
473
- cvector_pop_back(vec); \
474
- } \
475
- } \
476
- } \
477
- } while (0)
478
-
479
- #endif /* CVECTOR_H_ */
@@ -1,9 +0,0 @@
1
- #include "quickjs_version.h"
2
-
3
- const char *quickjs_version() {
4
- #ifdef CONFIG_VERSION
5
- return CONFIG_VERSION;
6
- #else
7
- return "not_configured";
8
- #endif
9
- }
@@ -1,9 +0,0 @@
1
- #ifndef QJS_KT_QUICKJS_VERSION_H
2
- #define QJS_KT_QUICKJS_VERSION_H
3
-
4
- /**
5
- * Get the version.
6
- */
7
- const char *quickjs_version();
8
-
9
- #endif //QJS_KT_QUICKJS_VERSION_H
@@ -1,22 +0,0 @@
1
- QuickJS Javascript Engine
2
-
3
- Copyright (c) 2017-2021 Fabrice Bellard
4
- Copyright (c) 2017-2021 Charlie Gordon
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.
@@ -1 +0,0 @@
1
- 2024-02-14