emacs-devel
[Top][All Lists]
Advanced

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

Re: EMACS_INT cleanup


From: Lars Magne Ingebrigtsen
Subject: Re: EMACS_INT cleanup
Date: Thu, 23 Sep 2010 21:34:29 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> Lisp_Object
> oblookup (Lisp_Object obarray, register const char *ptr, int size, int 
> size_byte)
>
> The last parameter there is an EMACS_INT.  Should I change oblookup to
> take EMACS_INT parameters, in case we want to intern a 2.1GB long
> string? 

I mean, it sounds nonsensical, but 1) it makes it compile without any
other warnings, and 2) if you've said (setq a (buffer-string)) on a big
buffer and then happen to (intern a), you don't want a segfault, do you?

-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

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