all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: emacs-devel@gnu.org
Subject: Re: EMACS_INT cleanup
Date: Fri, 24 Sep 2010 11:04:28 +0200	[thread overview]
Message-ID: <m3lj6rms0z.fsf@hase.home> (raw)
In-Reply-To: <m3eickovgh.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Fri, 24 Sep 2010 02:07:26 +0200")

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>> Yes, but using ptrdiff_t will have the advantage that it's just right.
>> Using int requires a cast and an argument for why int is sufficiently
>> large in practice.  Casts are bad, and human-arguments are only OK when
>> we can't argue directly with the compiler.
>
> Yes, I agree.  It would be cleaner to fix the users to all be
> ptrdiff_t.

Or a dedicated typedef.  The ptrdiff_t is an implementation detail of
the SPECPDL_SIZE macro.  Also, specpdl_size should be adjusted.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



  reply	other threads:[~2010-09-24  9:04 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 18:37 EMACS_INT cleanup Lars Magne Ingebrigtsen
2010-09-23 19:00 ` Eli Zaretskii
2010-09-23 19:02   ` Lars Magne Ingebrigtsen
2010-09-23 19:29     ` Lars Magne Ingebrigtsen
2010-09-23 19:34       ` Lars Magne Ingebrigtsen
2010-09-23 19:53         ` Eli Zaretskii
2010-09-23 20:05           ` Lars Magne Ingebrigtsen
2010-09-23 20:27             ` Eli Zaretskii
2010-09-23 20:29               ` Lars Magne Ingebrigtsen
2010-09-23 20:40                 ` Eli Zaretskii
2010-09-23 20:52                   ` Lars Magne Ingebrigtsen
2010-09-23 20:41                 ` Lars Magne Ingebrigtsen
2010-09-23 20:46                   ` Eli Zaretskii
2010-09-23 20:52                     ` Eli Zaretskii
2010-09-23 20:53                       ` Lars Magne Ingebrigtsen
2010-09-23 22:07                         ` Lars Magne Ingebrigtsen
2010-09-23 22:12                           ` Juanma Barranquero
2010-09-23 22:46                             ` Lars Magne Ingebrigtsen
2010-09-24  0:01                           ` Stefan Monnier
2010-09-24  7:47                           ` Eli Zaretskii
2010-09-24  9:43                             ` Miles Bader
2010-09-24 10:05                               ` Eli Zaretskii
2010-09-24 10:32                           ` Eli Zaretskii
2010-09-24 11:02                             ` Lars Magne Ingebrigtsen
2010-09-24 11:58                               ` Eli Zaretskii
2010-09-24 13:00                                 ` Lars Magne Ingebrigtsen
2010-09-24 13:09                                   ` Eli Zaretskii
2010-09-24 13:23                                     ` Lars Magne Ingebrigtsen
2010-09-24 13:35                                       ` Eli Zaretskii
2010-09-24 13:40                                         ` Lars Magne Ingebrigtsen
2010-09-24 13:51                                           ` Lars Magne Ingebrigtsen
2010-09-24 14:04                                           ` David Kastrup
2010-09-23 22:30                     ` Stefan Monnier
2010-09-23 22:53                       ` Lars Magne Ingebrigtsen
2010-09-23 23:59                         ` Stefan Monnier
2010-09-24  0:07                           ` Lars Magne Ingebrigtsen
2010-09-24  9:04                             ` Andreas Schwab [this message]
2010-09-24  7:54                         ` Eli Zaretskii
2010-09-24  7:51                       ` Eli Zaretskii
2010-09-23 20:21         ` David Kastrup
2010-09-23 20:24           ` Lars Magne Ingebrigtsen

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=m3lj6rms0z.fsf@hase.home \
    --to=schwab@linux-m68k.org \
    --cc=emacs-devel@gnu.org \
    /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.