lichenscript
Advanced tools
+4
-4
| { | ||
| "name": "lichenscript", | ||
| "description": "The compiler of LichenScript", | ||
| "version": "0.5.3", | ||
| "version": "0.5.4", | ||
| "homepage": "https://lichenscript.com/", | ||
@@ -19,6 +19,6 @@ "license": "Apache-2.0", | ||
| "optionalDependencies": { | ||
| "lichenscript-darwin-x64": "0.5.3", | ||
| "lichenscript-linux-x64": "0.5.3", | ||
| "lichenscript-darwin-arm64": "0.5.3" | ||
| "lichenscript-darwin-x64": "0.5.4", | ||
| "lichenscript-linux-x64": "0.5.4", | ||
| "lichenscript-darwin-arm64": "0.5.4" | ||
| } | ||
| } |
@@ -440,8 +440,13 @@ /** | ||
| LCGCObjectHeader header; | ||
| uint32_t length; | ||
| uint32_t capacity; | ||
| size_t length; | ||
| size_t capacity; | ||
| unsigned char* data; | ||
| } LCBuffer; | ||
| LCValue lc_std_new_buffer(LCRuntime* rt, LCValue this, int argc, LCValue* args); | ||
| LCBuffer* lc_std_new_buffer_with_cap(LCRuntime* rt, size_t cap); | ||
| void lc_std_buffer_extend(LCRuntime* rt, LCBuffer* buffer, size_t size); | ||
| static inline LCValue lc_std_new_buffer(LCRuntime* rt, LCValue this, int argc, LCValue* args) { | ||
| LCBuffer* buffer = lc_std_new_buffer_with_cap(rt, 32); | ||
| return MK_PTR(buffer, LC_TY_CLASS_OBJECT); | ||
| } | ||
| LCValue lc_std_buffer_add_string(LCRuntime* rt, LCValue this, int argc, LCValue* args); | ||
@@ -448,0 +453,0 @@ LCValue lc_std_buffer_add_any(LCRuntime* rt, LCValue this, int argc, LCValue* args); |
Sorry, the diff of this file is too big to display
114631
0.27%