diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-06 20:36:09 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-06 20:36:09 +0000 |
commit | 05b06b1c08263af07b2297aac0c842dafca39445 (patch) | |
tree | f64a8e7c40efd43221cfa4bd8f0391e0c993765d /Src/parse.c | |
parent | 64c2db0ca242269c92fac5cc8637580364c2b6f6 (diff) | |
download | zsh-05b06b1c08263af07b2297aac0c842dafca39445.tar.gz zsh-05b06b1c08263af07b2297aac0c842dafca39445.tar.xz zsh-05b06b1c08263af07b2297aac0c842dafca39445.zip |
fix autoloaded trap bug; rejig use of trapfuncs
(now traplists); improve trap tests
Diffstat (limited to 'Src/parse.c')
-rw-r--r-- | Src/parse.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Src/parse.c b/Src/parse.c index d0f108333..9a4a95bec 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -2105,6 +2105,16 @@ yyerror(int noerr) errflag = 1; } +/* + * Duplicate a programme list, on the heap if heap is 1, else + * in permanent storage. + * + * Be careful in case p is the Eprog for a function which will + * later be autoloaded. The shf element of the returned Eprog + * must be set appropriately by the caller. (Normally we create + * the Eprog in this case by using mkautofn.) + */ + /**/ mod_export Eprog dupeprog(Eprog p, int heap) |