emacs-devel
[Top][All Lists]
Advanced

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

Re: hash-table-{to, from}-alist


From: Ted Zlatanov
Subject: Re: hash-table-{to, from}-alist
Date: Wed, 26 Nov 2008 14:41:09 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

On Wed, 26 Nov 2008 11:44:32 -0800 (PST) "Davis Herring" <address@hidden> 
wrote: 

>> It prints an extra space at the end, which I still have as a simple
>> TODO.  I also have to handle circular references, but otherwise it seems
>> pretty reasonable.

DH> I don't mean to assume that it's news to you, but if it happens to be,
DH> it's quite easy to fix this:

DH> int printed=0;
DH> for(...) {
DH>   if(print_this_one) {
DH>     if(printed) PRINTCHAR(' ');
DH>     printed=1;
DH>     print_it();
DH>     /* no trailing space here */
DH>   }
DH> }

DH> Move declaration to block beginning, adjust coding style, and salt to taste.

Thanks, I used your suggestion.  I'll post the updated patch once I get
circular references cleared up.

Ted





reply via email to

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