diff options
author | tasn <tasn> | 2012-07-10 14:01:45 +0000 |
---|---|---|
committer | tasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2012-07-10 14:01:45 +0000 |
commit | 52184813176771f2b8a5b099a7cb926f9eef9ad1 (patch) | |
tree | 251d54a15ad1143a1fefbc2a7c64823f32800c45 /src/lib/Eo.h | |
parent | 16d8fe3a5c89f8b4c0e6d6f335e483f94a6784a4 (diff) | |
download | eobj-52184813176771f2b8a5b099a7cb926f9eef9ad1.tar.gz eobj-52184813176771f2b8a5b099a7cb926f9eef9ad1.tar.bz2 eobj-52184813176771f2b8a5b099a7cb926f9eef9ad1.zip |
Eo: Changed the way we construct op ids.
This simplifies the code, and improves the overall speed and memory
consumption.
Be advised that this breaks ABI, recompile your stuff.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@73528 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
Diffstat (limited to 'src/lib/Eo.h')
-rw-r--r-- | src/lib/Eo.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/Eo.h b/src/lib/Eo.h index d2fa9d7..b75df1c 100644 --- a/src/lib/Eo.h +++ b/src/lib/Eo.h @@ -35,20 +35,6 @@ extern "C" { #endif /** - * @def EO_OP_CLASS_OFFSET - * The bit offset of the class inside the ops. - * @internal - */ -#define EO_OP_CLASS_OFFSET 16 - -/** - * @def EO_CLASS_ID_TO_BASE_ID(class_id) - * Translates a class id to an op base id. - * @internal - */ -#define EO_CLASS_ID_TO_BASE_ID(class_id) ((class_id) << EO_OP_CLASS_OFFSET) - -/** * @var _eo_class_creation_lock * This variable is used for locking purposes in the class_get function * defined in #EO_DEFINE_CLASS. @@ -812,7 +798,7 @@ typedef void (*eo_base_data_free_func)(void *); * @def EO_BASE_BASE_ID * #EO_BASE_CLASS 's base id. */ -#define EO_BASE_BASE_ID EO_CLASS_ID_TO_BASE_ID(EO_BASE_CLASS_ID) +#define EO_BASE_BASE_ID EO_BASE_CLASS_ID // FIXME: Awful hack. enum { EO_BASE_SUB_ID_CONSTRUCTOR, |