summaryrefslogtreecommitdiff
path: root/py/emitglue.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-11-16 11:55:41 +1100
committerDamien George <damien.p.george@gmail.com>2016-11-16 16:14:14 +1100
commit6810f2c134f9329e9dc18f4e0d3a1936ca6d8011 (patch)
treef8b63a820b0659bd8083cb851fa5209e8f92c102 /py/emitglue.h
parent64db4080cec88c7b3937229a653c65a631732379 (diff)
py: Factor persistent code load/save funcs into persistentcode.[ch].
Diffstat (limited to 'py/emitglue.h')
-rw-r--r--py/emitglue.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/py/emitglue.h b/py/emitglue.h
index f5618577d..37c4f1b18 100644
--- a/py/emitglue.h
+++ b/py/emitglue.h
@@ -74,21 +74,4 @@ void mp_emit_glue_assign_native(mp_raw_code_t *rc, mp_raw_code_kind_t kind, void
mp_obj_t mp_make_function_from_raw_code(const mp_raw_code_t *rc, mp_obj_t def_args, mp_obj_t def_kw_args);
mp_obj_t mp_make_closure_from_raw_code(const mp_raw_code_t *rc, mp_uint_t n_closed_over, const mp_obj_t *args);
-#if MICROPY_PERSISTENT_CODE_LOAD
-typedef struct _mp_reader_t {
- void *data;
- mp_uint_t (*read_byte)(void *data);
- void (*close)(void *data);
-} mp_reader_t;
-
-mp_raw_code_t *mp_raw_code_load(mp_reader_t *reader);
-mp_raw_code_t *mp_raw_code_load_mem(const byte *buf, size_t len);
-mp_raw_code_t *mp_raw_code_load_file(const char *filename);
-#endif
-
-#if MICROPY_PERSISTENT_CODE_SAVE
-void mp_raw_code_save(mp_raw_code_t *rc, mp_print_t *print);
-void mp_raw_code_save_file(mp_raw_code_t *rc, const char *filename);
-#endif
-
#endif // __MICROPY_INCLUDED_PY_EMITGLUE_H__