unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why is Lisp_Object a struct?
@ 2013-02-03 18:41 Aurélien Aptel
  2013-02-03 19:24 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Aurélien Aptel @ 2013-02-03 18:41 UTC (permalink / raw)
  To: Emacs development discussions

Hi,

I'm currently trying to write a guide/introduction to the Emacs core.
I was reading lisp.h and I was wondering:
Why can Lisp_Object be a struct? What is the purpose of the
CHECK_LISP_OBJECT_TYPE define?



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

* Re: Why is Lisp_Object a struct?
  2013-02-03 18:41 Why is Lisp_Object a struct? Aurélien Aptel
@ 2013-02-03 19:24 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2013-02-03 19:24 UTC (permalink / raw)
  To: Aurélien Aptel; +Cc: emacs-devel

> Date: Sun, 3 Feb 2013 19:41:34 +0100
> From: Aurélien Aptel <aurelien.aptel+emacs@gmail.com>
> 
> Why can Lisp_Object be a struct?

To catch code that abuses the fact that Lisp_Object is an integer data
type.

> What is the purpose of the CHECK_LISP_OBJECT_TYPE define?

See above.




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

end of thread, other threads:[~2013-02-03 19:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-03 18:41 Why is Lisp_Object a struct? Aurélien Aptel
2013-02-03 19:24 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).