summaryrefslogtreecommitdiff
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-13 22:59:32 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-13 22:59:32 +0200
commitfa55cfc69d2b14761e2a8bd85bc1e0d82df770aa (patch)
tree3420b78d3aa0d58695f9a660592b655ac2f22fb1 /src/globals.h
parentd5abb4c87727eecb71b0e8ffdda60fc9598272f3 (diff)
downloadvim-git-fa55cfc69d2b14761e2a8bd85bc1e0d82df770aa.tar.gz
patch 8.1.1684: profiling functionality is spread outv8.1.1684
Problem: Profiling functionality is spread out. Solution: Put profiling functionality in profiling.c. (Yegappan Lakshmanan, closes #4666)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index 3562b5ee6..0c2df36b8 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -252,6 +252,9 @@ EXTERN int debug_backtrace_level INIT(= 0); /* breakpoint backtrace level */
# ifdef FEAT_PROFILE
EXTERN int do_profiling INIT(= PROF_NONE); /* PROF_ values */
# endif
+EXTERN garray_T script_items INIT(= {0 COMMA 0 COMMA sizeof(scriptitem_T) COMMA 4 COMMA NULL});
+#define SCRIPT_ITEM(id) (((scriptitem_T *)script_items.ga_data)[(id) - 1])
+#define FUNCLINE(fp, j) ((char_u **)(fp->uf_lines.ga_data))[j]
/*
* The exception currently being thrown. Used to pass an exception to