summaryrefslogtreecommitdiff
path: root/teensy/lexermemzip.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-10-31 21:24:47 -0700
committerDamien George <damien.p.george@gmail.com>2015-11-04 14:21:10 +0000
commit074d713bfb845a87e557e608f5215f53694e7d01 (patch)
tree3688db7f8d476613bc0888b4be6a01a5238b63af /teensy/lexermemzip.c
parenta9f3030371094e3308b4d2150853db2ee3aa4a6b (diff)
lib/memzip: Factor out memzip from teensy/ into lib/memzip.
Diffstat (limited to 'teensy/lexermemzip.c')
-rw-r--r--teensy/lexermemzip.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/teensy/lexermemzip.c b/teensy/lexermemzip.c
deleted file mode 100644
index 72fe6b1c6..000000000
--- a/teensy/lexermemzip.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdlib.h>
-
-#include "py/lexer.h"
-#include "memzip.h"
-
-mp_lexer_t *mp_lexer_new_from_file(const char *filename)
-{
- void *data;
- size_t len;
-
- if (memzip_locate(filename, &data, &len) != MZ_OK) {
- return NULL;
- }
-
- return mp_lexer_new_from_str_len(qstr_from_str(filename), (const char *)data, (mp_uint_t)len, 0);
-}
-