emacs-devel
[Top][All Lists]
Advanced

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

Re: Lisp object that refers to a C struct


From: Eli Zaretskii
Subject: Re: Lisp object that refers to a C struct
Date: Wed, 17 Oct 2012 22:46:48 +0200

> From: Stefan Monnier <address@hidden>
> Cc: address@hidden
> Date: Wed, 17 Oct 2012 16:23:19 -0400
> 
> > Right now, the struct is allocated and its pointer is put into an
> > alist as a Lisp integer,
> 
> How do you convert the integer into the C struct pointer?

  struct foo *pwatch = (struct foo *)XLI (watch_descriptor);

where watch_descriptor is a Lisp integer.



reply via email to

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