|
From: | Dmitry Antipov |
Subject: | Re: [Emacs-diffs] trunk r117464: Shrink Lisp_Sub_Char_Table by preferring C integers to Lisp_Objects. |
Date: | Thu, 03 Jul 2014 19:36:56 +0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 07/03/2014 05:57 PM, Stefan Monnier wrote:
But I don't see why that necessarily implies casting Lisp_Sub_Char_Table to a Lisp_Vector (I ask this question without having spent much time looking for the answer in the source, maybe the answer is obvious, but I think if you can tell me why it's a better use of my time than trying to figure it out myself).
Hm... look at mark_char_table in alloc.c - this function implies that both Lisp_Char_Table and Lisp_Sub_Char_Table pointers can be treated as a pointer to their base type Lisp_Vector. Having both mark_char_table and mark_sub_char_table looks a bit overengineered for me. This also applies to Lisp_Char_Table/Lisp_Sub_Char_Table printing code in print_object, etc. Dmitry
[Prev in Thread] | Current Thread | [Next in Thread] |