diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-17 20:37:43 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-17 20:37:43 +0200 |
commit | 840268400dc8fda62a14f8a084e8b1ea46619454 (patch) | |
tree | b0e1ff5ffdb4a9cf5862d41f6a1f3e11f27f3ff1 /src/globals.h | |
parent | e87e6dddc2b2a99572ec0db0833c052214c4fbd3 (diff) |
patch 7.4.2062v7.4.2062
Problem: Using dummy variable to compute struct member offset.
Solution: Use offsetof().
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/globals.h b/src/globals.h index 07e3cf7b26..f33120214a 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1649,18 +1649,6 @@ EXTERN int did_add_timer INIT(= FALSE); #ifdef FEAT_EVAL EXTERN time_T time_for_testing INIT(= 0); -/* - * In a hashtab item "hi_key" points to "di_key" in a dictitem. - * This avoids adding a pointer to the hashtab item. - * DI2HIKEY() converts a dictitem pointer to a hashitem key pointer. - * HIKEY2DI() converts a hashitem key pointer to a dictitem pointer. - * HI2DI() converts a hashitem pointer to a dictitem pointer. - */ -EXTERN dictitem_T dumdi; -# define DI2HIKEY(di) ((di)->di_key) -# define HIKEY2DI(p) ((dictitem_T *)(p - (dumdi.di_key - (char_u *)&dumdi))) -# define HI2DI(hi) HIKEY2DI((hi)->hi_key) - /* Abort conversion to string after a recursion error. */ EXTERN int did_echo_string_emsg INIT(= FALSE); #endif |