mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-02 02:10:46 -08:00
(load_unwind): Rework last change.
This commit is contained in:
parent
fff7e9825a
commit
ebfe97a2d4
1 changed files with 5 additions and 5 deletions
10
src/lread.c
10
src/lread.c
|
|
@ -953,12 +953,12 @@ Return t if file exists. */)
|
|||
}
|
||||
|
||||
static Lisp_Object
|
||||
load_unwind (stream) /* used as unwind-protect function in load */
|
||||
Lisp_Object stream;
|
||||
load_unwind (arg) /* used as unwind-protect function in load */
|
||||
Lisp_Object arg;
|
||||
{
|
||||
struct Lisp_Save_Value *p = XSAVE_VALUE (stream);
|
||||
|
||||
fclose ((FILE *) p->pointer);
|
||||
FILE *stream = (FILE *) XSAVE_VALUE (arg)->pointer;
|
||||
if (stream != NULL)
|
||||
fclose (stream);
|
||||
if (--load_in_progress < 0) load_in_progress = 0;
|
||||
return Qnil;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue