[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs rewrite in a maintainable language
From: |
David Kastrup |
Subject: |
Re: Emacs rewrite in a maintainable language |
Date: |
Sun, 18 Oct 2015 19:11:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
address@hidden (Taylan Ulrich "Bayırlı/Kammer") writes:
> (The other day I was hit by this issue while working on Guile's C code,
> where I forgot that a scm_blahblah_p predicate will return SCM_FALSE
> which is not 0 thus not false in C. Like Qnil in Emacs.)
>From src/lisp.h:
/* True, since Qnil's representation is zero. Every place in the code
that assumes Qnil is zero should verify (NIL_IS_ZERO), to make it easy
to find such assumptions later if we change Qnil to be nonzero. */
enum { NIL_IS_ZERO = XLI_BUILTIN_LISPSYM (iQnil) == 0 };
--
David Kastrup
- Re: Emacs rewrite in a maintainable language, (continued)
- Re: Emacs rewrite in a maintainable language, Ludovic Courtès, 2015/10/18
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Taylan Ulrich Bayırlı/Kammer, 2015/10/18
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Taylan Ulrich Bayırlı/Kammer, 2015/10/18
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Eli Zaretskii, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Taylan Ulrich Bayırlı/Kammer, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Eli Zaretskii, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Taylan Ulrich Bayırlı/Kammer, 2015/10/18
- Re: Emacs rewrite in a maintainable language,
David Kastrup <=
- Re: Emacs rewrite in a maintainable language, Eli Zaretskii, 2015/10/18
- Re: Emacs rewrite in a maintainable language, John Wiegley, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Daniel Colascione, 2015/10/18
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Daniel Colascione, 2015/10/18
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Paul Eggert, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Taylan Ulrich Bayırlı/Kammer, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Daniel Colascione, 2015/10/18
- Re: Emacs rewrite in a maintainable language, Taylan Ulrich Bayırlı/Kammer, 2015/10/19