emacs-devel
[Top][All Lists]
Advanced

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

Re: Intervals crash


From: Eli Zaretskii
Subject: Re: Intervals crash
Date: Mon, 27 Sep 2010 04:34:19 -0400

> From: Jan Djärv <address@hidden>
> Cc: address@hidden
>
> There are only 77 places where EMACS_UINT occurs in the Emacs
> sources.

73, to be exact.  The rest are #define's and #ifndef's related to the
definition of EMACS_UINT itself; they don't count.  #define XUINT
should probably also be excluded, as it doesn't really "use"
EMACS_UINT.

>  Most of them are casts to and from pointers, and some are sizes
> (like in Lisp_Vector).  It would not be a big job to get rid of them
> if that is what we want.

We can get rid of almost all of them, if we believe that size_t and
EMACS_UINT are always of the same size.  I'm not sure we want to make
that assumption, though, since lisp.h does allow for external
definition of EMACS_UINT by some s/*.h or m/*.h file.

In any case, I think we cannot get rid of using an unsigned data type
in most of the 70+ places we do now, because of one or more of the
following reasons:

 . the value is a bit mask or a bit map

 . the value is a pointer that is subject to bitwise operations

 . the value is an unsigned data type forced by external hardware or
   software API



reply via email to

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