eval: Split out typval_T dumping functions to nvim/encode.c

This commit is contained in:
ZyX
2016-01-24 03:40:44 +03:00
parent 83c683f5e1
commit 44cbf45d26
8 changed files with 1091 additions and 960 deletions

View File

@@ -1,6 +1,17 @@
#ifndef NVIM_MACROS_H
#define NVIM_MACROS_H
// EXTERN is only defined in main.c. That's where global variables are
// actually defined and initialized.
#ifndef EXTERN
# define EXTERN extern
# define INIT(...)
#else
# ifndef INIT
# define INIT(...) __VA_ARGS__
# endif
#endif
#ifndef MIN
# define MIN(X, Y) ((X) < (Y) ? (X) : (Y))
#endif