emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copying one Lisp_Object to another in C code?


From: Chong Yidong
Subject: Re: Copying one Lisp_Object to another in C code?
Date: Thu, 01 Jul 2010 21:42:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

James Cloos <address@hidden> writes:

> Given:
>
>     static void (foo)
>         Lisp_Object foo;
>     {
>         Lisp_Object bar;
>     /* etc */
>
> is it OK to do:
>
>         bar = foo;

Yes.

> I presume GCPRO1 (foo) is in order either way?

Only if the code ends up calling eval, and for the benefit of the
platforms that don't use stack marking.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]