emacs-devel
[Top][All Lists]
Advanced

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

Copying one Lisp_Object to another in C code?


From: James Cloos
Subject: Copying one Lisp_Object to another in C code?
Date: Thu, 01 Jul 2010 20:18:46 -0400
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Given:

    static void (foo)
        Lisp_Object foo;
    {
        Lisp_Object bar;
    /* etc */

is it OK to do:

        bar = foo;

or is there a function or macro one should call?

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

-JimC
-- 
James Cloos <address@hidden>         OpenPGP: 1024D/ED7DAEA6



reply via email to

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