[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamic loading progress
From: |
Stefan Monnier |
Subject: |
Re: Dynamic loading progress |
Date: |
Wed, 11 Feb 2015 10:35:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> I added a new Lisp_Misc subtype called Lisp_Module which stores:
> - a module id
> - a void* user pointer
> - a function pointer to a destructor to release the resources of the
> user pointer
I think I got confused by the name: these objects don't represent
modules, right (despite the name of their type)? They are objects
created by a particular module (stored in the module-id).
> One thing I haven't checked is whether adding the Lisp_Module to the
> Lisp_Misc union changes its size (the existing comments say this is
> important).
The Lisp_Misc union is for objects with up to 5 "words" (or 6 "words" if
you count the word that holds the header). Your objects have only
2 "words" (or 3 if you count the header where you added the "id"), so
you're perfectly fine, with room to grow.
Stefan
- Re: implementing curl module with opaque emacs types, (continued)
- Re: implementing curl module with opaque emacs types, Stephen Leake, 2015/02/17
- Re: Dynamic loading progress, Eli Zaretskii, 2015/02/15
- Re: Dynamic loading progress, Stefan Monnier, 2015/02/15
- Re: Dynamic loading progress, Stephen Leake, 2015/02/16
- Re: Dynamic loading progress, Stefan Monnier, 2015/02/16
- Re: Dynamic loading progress, Stephen J. Turnbull, 2015/02/15
- Re: Dynamic loading progress, Eli Zaretskii, 2015/02/15
- Re: Dynamic loading progress, Aurélien Aptel, 2015/02/11
- Re: Dynamic loading progress, Aurélien Aptel, 2015/02/11
- Re: Dynamic loading progress, Aurélien Aptel, 2015/02/11
- Re: Dynamic loading progress,
Stefan Monnier <=
- Re: Dynamic loading progress, Aurélien Aptel, 2015/02/11
- Re: Dynamic loading progress, Stefan Monnier, 2015/02/11
- Re: Dynamic loading progress, Paul Eggert, 2015/02/11
- Re: Dynamic loading progress, Ted Zlatanov, 2015/02/10
- Re: Dynamic loading progress, Aurélien Aptel, 2015/02/11
- Re: Dynamic loading progress, Ted Zlatanov, 2015/02/11
- Re: Dynamic loading progress, Aurélien Aptel, 2015/02/11
- Re: Dynamic loading progress, Ted Zlatanov, 2015/02/11
- Re: Dynamic loading progress, Aurélien Aptel, 2015/02/11
- Re: Dynamic loading progress, Stephen Leake, 2015/02/12