diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-01 14:13:16 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-07 08:38:46 +0900 |
| commit | 87576b819e704492f4690027ad41543637cabb16 (patch) | |
| tree | 071b0de96d64fa4ec3a9b631b651da0dd6f8eea6 /include | |
| parent | 48c473a0c4abc67614a00d282d24d18089908449 (diff) | |
| download | mruby-87576b819e704492f4690027ad41543637cabb16.tar.gz mruby-87576b819e704492f4690027ad41543637cabb16.zip | |
Remove endian information/flags from compiled binary format.
Since `mruby 2.0`, compiled bytecode no longer depends on the
endian of the machine.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/dump.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/mruby/dump.h b/include/mruby/dump.h index 2da5eb28d..db3e287d3 100644 --- a/include/mruby/dump.h +++ b/include/mruby/dump.h @@ -17,10 +17,6 @@ MRB_BEGIN_DECL #define DUMP_DEBUG_INFO 1 -#define DUMP_ENDIAN_BIG 2 -#define DUMP_ENDIAN_LIL 4 -#define DUMP_ENDIAN_NAT 6 -#define DUMP_ENDIAN_MASK 6 int mrb_dump_irep(mrb_state *mrb, mrb_irep *irep, uint8_t flags, uint8_t **bin, size_t *bin_size); #ifndef MRB_DISABLE_STDIO @@ -52,7 +48,6 @@ MRB_API mrb_irep *mrb_read_irep_buf(mrb_state*, const void*, size_t); /* Rite Binary File header */ #define RITE_BINARY_IDENT "RITE" -#define RITE_BINARY_IDENT_LIL "ETIR" #define RITE_BINARY_FORMAT_VER "0007" #define RITE_COMPILER_NAME "MATZ" #define RITE_COMPILER_VERSION "0000" @@ -106,17 +101,6 @@ struct rite_binary_footer { RITE_SECTION_HEADER; }; -static inline int -bigendian_p() -{ - int i; - char *p; - - i = 1; - p = (char*)&i; - return p[0]?0:1; -} - static inline size_t uint8_to_bin(uint8_t s, uint8_t *bin) { |
