all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Copying one Lisp_Object to another in C code?
@ 2010-07-02  0:18 James Cloos
  2010-07-02  1:33 ` Ken Raeburn
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: James Cloos @ 2010-07-02  0:18 UTC (permalink / raw)
  To: emacs-devel

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 <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-04 22:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-02  0:18 Copying one Lisp_Object to another in C code? James Cloos
2010-07-02  1:33 ` Ken Raeburn
2010-07-02  1:42 ` Chong Yidong
2010-07-02  9:06 ` Andreas Schwab
2010-07-02 15:37   ` James Cloos
2010-07-04 22:29 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.