The Wayback Machine - https://web.archive.org/web/20210919071731/https://lua-users.org/lists/lua-l/2010-06/msg00477.html
lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]
See More


On Wed, Jun 23, 2010 at 22:25, David Manura <[email protected]> wrote:
> On Thu, Jun 24, 2010 at 12:13 AM, David Manura <[email protected]> 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)
>

I would say the source needs a lot more comments overall.

-- 
Sent from my toaster.