all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: dak@gnu.org, emacs-devel@gnu.org
Subject: Re: Intervals crash
Date: Mon, 27 Sep 2010 04:34:19 -0400	[thread overview]
Message-ID: <E1P09AB-0003Fz-6Q@fencepost.gnu.org> (raw)
In-Reply-To: <4CA04AFB.5060302@swipnet.se> (message from Jan Djärv on Mon, 27 Sep 2010 09:42:51 +0200)

> From: Jan Djärv <jan.h.d@swipnet.se>
> Cc: emacs-devel@gnu.org
>
> 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	other threads:[~2010-09-27  8:34 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 18:23 Intervals crash Chong Yidong
2010-09-23 18:52 ` Chong Yidong
2010-09-23 19:01   ` Eli Zaretskii
2010-09-23 19:09     ` Chong Yidong
2010-09-23 19:32       ` Eli Zaretskii
2010-09-23 18:57 ` Eli Zaretskii
2010-09-24  6:12   ` Stephen J. Turnbull
2010-09-24  8:16     ` Eli Zaretskii
2010-09-24  8:52       ` Stephen J. Turnbull
2010-09-24 10:03         ` Eli Zaretskii
2010-09-25 14:34           ` Stephen J. Turnbull
2010-09-25 16:10             ` Eli Zaretskii
2010-09-25 18:54               ` Stephen J. Turnbull
2010-09-25 22:07                 ` Eli Zaretskii
2010-09-26 13:08                   ` Stephen J. Turnbull
2010-09-26 19:22                     ` Miles Bader
2010-09-26 19:33                       ` David Kastrup
2010-09-27  4:53                       ` Stephen J. Turnbull
2010-09-27  6:55                         ` David Kastrup
2010-09-27  7:42                           ` Jan Djärv
2010-09-27  8:34                             ` Eli Zaretskii [this message]
2010-09-27  9:02                               ` David Kastrup
2010-09-27 11:02                                 ` Eli Zaretskii
2010-09-27  8:36                           ` Eli Zaretskii
2010-09-27  8:50                           ` Stephen J. Turnbull
2010-09-27  9:39                             ` David Kastrup
2010-09-27  9:45                               ` Lars Magne Ingebrigtsen
2010-09-27 10:11                               ` Stephen J. Turnbull
2010-09-24 10:31 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1P09AB-0003Fz-6Q@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.