emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposal: block-based vector allocator


From: Andreas Schwab
Subject: Re: Proposal: block-based vector allocator
Date: Mon, 21 May 2012 15:02:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux)

Dmitry Antipov <address@hidden> writes:

> --- src/alloc.c       2012-04-23 05:44:49 +0000
> +++ src/alloc.c       2012-05-21 12:10:23 +0000
> @@ -25,6 +25,12 @@
>  
>  #include <signal.h>
>  
> +#if defined HAVE_ROUNDUP
> +#include <sys/param.h>
> +#else
> +#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
> +#endif
> +

It doesn't make much sense to try to find such a trivial but non-std
macro in a system header.

Andreas.

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



reply via email to

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