fix mpy-cross
This commit is contained in:
parent
de5a9d72dc
commit
137a30ad75
@ -11,8 +11,12 @@ import sys
|
|||||||
|
|
||||||
import collections
|
import collections
|
||||||
import gettext
|
import gettext
|
||||||
|
import os.path
|
||||||
|
|
||||||
sys.path.append("../../tools/huffman")
|
py = os.path.dirname(sys.argv[0])
|
||||||
|
top = os.path.dirname(py)
|
||||||
|
|
||||||
|
sys.path.append(os.path.join(top, "tools/huffman"))
|
||||||
|
|
||||||
import huffman
|
import huffman
|
||||||
|
|
||||||
|
@ -71,8 +71,6 @@ char* decompress(const compressed_string_t* compressed, char* decompressed) {
|
|||||||
return decompressed;
|
return decompressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wreturn-local-addr"
|
|
||||||
inline __attribute__((always_inline)) const compressed_string_t* translate(const char* original) {
|
inline __attribute__((always_inline)) const compressed_string_t* translate(const char* original) {
|
||||||
#ifndef NO_QSTR
|
#ifndef NO_QSTR
|
||||||
#define QDEF(id, str)
|
#define QDEF(id, str)
|
||||||
@ -83,4 +81,3 @@ inline __attribute__((always_inline)) const compressed_string_t* translate(const
|
|||||||
#endif
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
|
Loading…
Reference in New Issue
Block a user