[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: redundant gkey and key2tval in ltable.h (5.2.0-work3)
- From: David Manura <dm.lua@...>
- Date: Thu, 24 Jun 2010 00:25:14 -0400
On Thu, Jun 24, 2010 at 12:13 AM, David Manura <dm.lua@math2.org> wrote:
> Any reason not to eliminate key2tval(n) ?
BTW, I would prefer some minimal comments in the source about macro
parameter types, maybe like this:
/* t:Table*, i:int, n:Node*. */
#define gnode(t,i) (&(t)->node[i])
#define gkey(n) (&(n)->i_key.tvk)
#define gval(n) (&(n)->i_val)
#define gnext(n) ((n)->i_key.nk.next)