Skip to content
Snippets Groups Projects
Commit 02952c8a authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

Slightly better numbering scheme: high byte is ABI version.

parent add89419
Branches
Tags
No related merge requests found
......@@ -53,7 +53,7 @@
#ifdef EB_USE_MALLOC
#define EB_POINTER(typ) struct typ*
#define EB_NULL 0
#define EB_MEMORY_MODEL 0x1000U
#define EB_MEMORY_MODEL 0x0001U
#else
#define EB_POINTER(typ) uint16_t
#define EB_NULL ((uint16_t)-1)
......@@ -99,8 +99,8 @@ typedef uintptr_t eb_data_t;
#endif
/* Identify the library ABI this header must match */
#define EB_BUS_MODEL (0x1000U * sizeof(eb_address_t)) + (0x0100U * sizeof(eb_data_t))
#define EB_ABI_CODE (EB_BUS_MODEL + EB_MEMORY_MODEL + EB_ABI_VERSION)
#define EB_BUS_MODEL (0x0010U * sizeof(eb_address_t)) + (0x0001U * sizeof(eb_data_t))
#define EB_ABI_CODE ((EB_ABI_VERSION << 8) + EB_BUS_MODEL + EB_MEMORY_MODEL)
/* Status codes */
typedef int eb_status_t;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment