summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2013-08-31 15:56:10 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2013-08-31 15:56:10 (GMT)
commited4bb73e5d68c1f81b8e0c3210aa221ec6f2675b (patch)
tree006a4641fc7a5c820d6a4253ff75e79ef01e368b /src/arch
parent4658d4fa406bad4abe36a76746412cf02c984af0 (diff)
Loaded a binary strip into the editor.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@358 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/archbase.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/archbase.h b/src/arch/archbase.h
index 1169c16..5ef412c 100644
--- a/src/arch/archbase.h
+++ b/src/arch/archbase.h
@@ -30,6 +30,10 @@
+#define OFF_FMT "%ld"
+#define OFF_CAST(v) ((long)v)
+
+
/* Octet de données binaires */
typedef uint8_t bin_t;
@@ -42,6 +46,7 @@ typedef uint64_t vmpa_t;
#define VMPA_FMT "0x%llx"
#define VMPA_FMT_LONG "0x%08llx"
+#define VMPA_CAST(v) ((unsigned long long)v)
#define VMPA_MAX_SIZE 19