summaryrefslogtreecommitdiff
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-09 22:28:33 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-09 22:28:33 +0100
commit28fb79db6b52d1154e8dc63d227673648c2fce15 (patch)
tree4a1a10e264249d9851ffb9b7396ade0fc808fec6 /src/globals.h
parent44132a10aeb45c957959cafb4ac39d3f478be98c (diff)
downloadvim-git-28fb79db6b52d1154e8dc63d227673648c2fce15.tar.gz
patch 7.4.1073v7.4.1073
Problem: Alloc_id depends on numbers, may use the same one twice. It's not clear from the number what it's for. Solution: Use an enum. Add a function to lookup the enum value from the name.
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h
index 54a1d7256..0931466e9 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1621,7 +1621,7 @@ EXTERN char *ignoredp;
#ifdef FEAT_EVAL
/* set by alloc_fail(): ID */
-EXTERN int alloc_fail_id INIT(= 0);
+EXTERN alloc_id_T alloc_fail_id INIT(= aid_none);
/* set by alloc_fail(), when zero alloc() returns NULL */
EXTERN int alloc_fail_countdown INIT(= -1);
/* set by alloc_fail(), number of times alloc() returns NULL */