From 9a317e56f8a6126583f7d0c431bf878d9b1fe7b1 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 8 Jul 2023 12:30:21 +0800 Subject: Finished the Emacs binding. Now the binding part is finished. What remains is a bug encountered when planting a fragment to the forest which intersects a packed node, which would lead to invalid forests. This will also cause problem when planting a packed fragment, but until now my testing grammars do not produce packed fragments, so this problem is not encountered yet. I am still figuring out efficient ways to solve this problem. --- src/big_endian.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/big_endian.h (limited to 'src/big_endian.h') diff --git a/src/big_endian.h b/src/big_endian.h new file mode 100644 index 0000000..e6c587e --- /dev/null +++ b/src/big_endian.h @@ -0,0 +1,9 @@ +#ifndef BIG_ENDIAN_H +#define BIG_ENDIAN_H +#include + +void to_big_endian(uint64_t num, unsigned char *result); + +uint64_t from_big_endian(unsigned char *num); + +#endif -- cgit v1.2.3-18-g5258