diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-09-05 10:59:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-09-05 10:59:47 +0000 |
commit | 9fecb460fea33e190904e70274345e42fb44ed52 (patch) | |
tree | ce0f4442c1bc1a78c5fe1285615e3b38341f399c /src/globals.h | |
parent | 203335e4a9a4fb4c2d034fe950bdb12043b93f6e (diff) |
updated for version 7.0-084v7.0.084
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/globals.h b/src/globals.h index 4106742a9a..b768127fd8 100644 --- a/src/globals.h +++ b/src/globals.h @@ -300,9 +300,16 @@ EXTERN except_T *caught_stack INIT(= NULL); #endif #ifdef FEAT_EVAL -EXTERN scid_T current_SID INIT(= 0); /* ID of script being sourced or - was sourced to define the - current function. */ +/* Garbage collection can only take place when we are sure there are no Lists + * or Dictionaries being used internally. This is flagged with + * "may_garbage_collect" when we are at the toplevel. + * "want_garbage_collect" is set by the garbagecollect() function, which means + * we do garbage collection before waiting for a char at the toplevel. */ +EXTERN int may_garbage_collect INIT(= FALSE); +EXTERN int want_garbage_collect INIT(= FALSE); + +/* ID of script being sourced or was sourced to define the current function. */ +EXTERN scid_T current_SID INIT(= 0); #endif #if defined(FEAT_EVAL) || defined(FEAT_SYN_HL) |