diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-05-11 23:42:48 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-05-11 23:42:48 (GMT) |
commit | 96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (patch) | |
tree | 68e49f325de3e93ef186d3e078da8ddc473aedf7 /src/common/endianness.h | |
parent | 80dc0ac97987ad9246bee7c47458a015339453bf (diff) |
Reorganized the way the program is built again and added partial support for the JVM.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@63 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/common/endianness.h')
-rwxr-xr-x | src/common/endianness.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/endianness.h b/src/common/endianness.h index 7ae9575..b4c3975 100755 --- a/src/common/endianness.h +++ b/src/common/endianness.h @@ -26,10 +26,13 @@ #include <stdbool.h> -#include <stdint.h> #include <sys/types.h> +#include "../arch/archbase.h" + + + /* Type de boutismes existants */ typedef enum _SourceEndian { @@ -41,13 +44,13 @@ typedef enum _SourceEndian /* Lit un nombre non signé sur un octet. */ -bool read_u8(uint8_t *, const uint8_t *, off_t *, off_t, SourceEndian ); +bool read_u8(uint8_t *, const bin_t *, off_t *, off_t, SourceEndian); /* Lit un nombre non signé sur deux octets. */ -bool read_u16(uint16_t *, const uint8_t *, off_t *, off_t, SourceEndian); +bool read_u16(uint16_t *, const bin_t *, off_t *, off_t, SourceEndian); /* Lit un nombre non signé sur quatre octets. */ -bool read_u32(uint32_t *, const uint8_t *, off_t *, off_t, SourceEndian); +bool read_u32(uint32_t *, const bin_t *, off_t *, off_t, SourceEndian); |