diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-03 09:08:18 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-03 09:08:18 +0000 |
commit | 0cba5ef62ad8e98924c2bd9367f9c7c7e72e2fd0 (patch) | |
tree | aff6e4b164bdd8dd1ad12c921ee774405a5ea244 /Src/zsh.h | |
parent | ae79d264a3fd989713f6c7413c5096151413f284 (diff) | |
download | zsh-0cba5ef62ad8e98924c2bd9367f9c7c7e72e2fd0.tar.gz zsh-0cba5ef62ad8e98924c2bd9367f9c7c7e72e2fd0.tar.xz zsh-0cba5ef62ad8e98924c2bd9367f9c7c7e72e2fd0.zip |
25595: fix line numbers with EVAL_LINENO,
try to fix oddities with funcstack and sourced files, simplify use of caller element of funcstack
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 011aa3634..9326e1a11 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1077,6 +1077,14 @@ struct shfunc { #define SFC_COMPLETE 5 /* called from completion code */ #define SFC_CWIDGET 6 /* new style completion widget */ +/* tp in funcstack */ + +enum { + FS_SOURCE, + FS_FUNC, + FS_EVAL +}; + /* node in function stack */ struct funcstack { @@ -1086,7 +1094,7 @@ struct funcstack { char *caller; /* name of caller */ zlong flineno; /* line number in file */ zlong lineno; /* line offset from beginning of function */ - int sourced; /* type of entry is a sourced file */ + int tp; /* type of entry: sourced file, func, eval */ }; /* node in list of function call wrappers */ |