This patch mangles several related changes. If only some of these changes
are accepted I will be happy to prepare a respective patch. They are
mangled because they are not quite commutative. :-(
The following things are changed:
* The if_depth is saved within lf_state_struct. This is actually a bug fix
for nested loads and evals.
* The call feature is largely factored out of load_file() into seperate
functions to clean the structure of load_file().
* The common code of eval_command() and load_command() is factored out into
lf_push() and lf_pop().
* The recursion detection for the eval command is reworked to check for the
same command string within the respective stack.
* The history_command() uses do_string() now that there is a recursion
detection.
Juergen
Nobody/Anonymous
None
None
Public
|
Date: 2009-12-20 21:35 Thanks. I've applied this to 4.5. If no problems crop up it can probably |
|
Date: 2009-12-20 10:26 PS: Sorry for the inconvenience. |
|
Date: 2009-12-20 10:24 Yes it is. Honestly, I have updated the patches within my own repository |
|
Date: 2009-12-20 05:08 This patchset no longer applies cleanly, because in the interim there was a |
|
Date: 2009-11-04 13:22 The new patch is divided into several sections each of which copes with one |
|
Date: 2009-10-31 14:57 Come to think of it, there could be done even more. lf_push() gathers a |
| Filename | Description | Download |
|---|---|---|
| jw-refactor-2009-12-20.patch | Patch updated for 2009-11-16 | Download |
| jw-refactor-2009-10-31.patch | Patch | Download |
| jw-refactor-2009-11-04.patch | New (demangled) patch | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2009-12-20 21:35 | sfeam |
| resolution_id | None | 2009-12-20 21:35 | sfeam |
| status_id | Open | 2009-12-20 21:35 | sfeam |
| File Added | 355861: jw-refactor-2009-12-20.patch | 2009-12-20 10:26 | wieferink |
| File Added | 349510: jw-refactor-2009-11-04.patch | 2009-11-04 13:21 | wieferink |
| File Added | 348965: jw-refactor-2009-10-31.patch | 2009-10-31 11:22 | wieferink |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use