[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hash-table-{to, from}-alist
From: |
Miles Bader |
Subject: |
Re: hash-table-{to, from}-alist |
Date: |
Thu, 04 Dec 2008 15:34:54 +0900 |
"Stephen J. Turnbull" <address@hidden> writes:
> > > + Lisp_Object ht = Fmake_hash_table (param_count, params);
> > > + Lisp_Object key = Qnil;
> >
> > We recently decided it was OK to use ANSI C syntax for function headers,
> > but I don't think ANSI C allows such variable declarations in the middle
> > of a block.
>
> ISTR that C99 does allow those declarations (which is a GoodThang[tm]
> IMHO), but C89 definitely does not allow them (and portability is a
> GooderThang[tm], so let's not do that).
BTW, is it now OK to use initializers with Lisp_Object variable declarations?
As I understand it, those used to be proscribed in emacs because they
didn't work correctly in some case (IIRC, some ancient IBM compiler
generated incorrect code), but enforcement has always been spotty, and I
expect the codebase is so chock full of such initializations now that
it's very unlikely it's really still a problem...
-Miles
--
Suburbia: where they tear out the trees and then name streets after them.
- Re: hash-table-{to, from}-alist, (continued)
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/12/02
- Re: hash-table-{to, from}-alist, Stefan Monnier, 2008/12/02
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/12/03
- Re: hash-table-{to, from}-alist, Stefan Monnier, 2008/12/03
- Re: hash-table-{to, from}-alist, Stephen J. Turnbull, 2008/12/04
- Re: hash-table-{to, from}-alist,
Miles Bader <=
- Re: hash-table-{to, from}-alist, Andreas Schwab, 2008/12/04
- Re: hash-table-{to, from}-alist, Stefan Monnier, 2008/12/04
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/12/04
- Re: hash-table-{to, from}-alist, Stefan Monnier, 2008/12/04
- Re: hash-table-{to, from}-alist, Ted Zlatanov, 2008/12/04