[Top][All Lists]
[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
- Re: hash-table-{to, from}-alist, (continued)
- Re: hash-table-{to, from}-alist, Stephen J. Turnbull, 2008/11/25
- Re: hash-table-{to, from}-alist, David De La Harpe Golden, 2008/11/25
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/11/26
- Re: hash-table-{to, from}-alist, Stefan Monnier, 2008/11/26
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/11/26
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/11/26
- Re: hash-table-{to, from}-alist, Stephen J. Turnbull, 2008/11/26
- Re: hash-table-{to, from}-alist, Davis Herring, 2008/11/26
- Re: hash-table-{to, from}-alist,
Ted Zlatanov <=
- Re: hash-table-{to, from}-alist, Stefan Monnier, 2008/11/24
- Re: hash-table-{to, from}-alist, Stephen J. Turnbull, 2008/11/25
- Re: hash-table-{to, from}-alist, Miles Bader, 2008/11/22
- Re: hash-table-{to, from}-alist, tomas, 2008/11/22
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/11/22