[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hash-table-{to, from}-alist
From: |
Davis Herring |
Subject: |
Re: hash-table-{to, from}-alist |
Date: |
Wed, 26 Nov 2008 11:44:32 -0800 (PST) |
User-agent: |
SquirrelMail/1.4.8-4.0.1.el5.lanl.4 |
> 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.
I don't mean to assume that it's news to you, but if it happens to be,
it's quite easy to fix this:
int printed=0;
for(...) {
if(print_this_one) {
if(printed) PRINTCHAR(' ');
printed=1;
print_it();
/* no trailing space here */
}
}
Move declaration to block beginning, adjust coding style, and salt to taste.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
- 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 <=
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/11/26
- 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