1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-30 15:13:03 +00:00

More work in serialization

This commit is contained in:
Calvin Rose
2017-05-11 17:08:29 -04:00
parent b7083f6f18
commit 6220b70105
7 changed files with 254 additions and 107 deletions

View File

@@ -238,6 +238,8 @@ struct GstTable {
/* Some function defintion flags */
#define GST_FUNCDEF_FLAG_VARARG 1
#define GST_FUNCDEF_FLAG_NEEDSPARENT 2
#define GST_FUNCDEF_FLAG_NEEDSENV 4
/* A function definition. Contains information need to instantiate closures. */
struct GstFuncDef {
@@ -448,7 +450,7 @@ const char *gst_deserialize(
const uint8_t *data,
uint32_t len,
GstValue *out,
const uint8_t *nextData);
const uint8_t **nextData);
const char *gst_serialize(Gst *vm, GstBuffer *buffer, GstValue x);