[PATCH] Core: remove unused NGX_INVALID_ARRAY_INDEX

Maxim Dounin mdounin at mdounin.ru
Fri Jul 8 00:44:57 UTC 2016


Hello!

On Mon, Jun 27, 2016 at 03:59:24PM -0700, Piotr Sikora wrote:

> # HG changeset patch
> # User Piotr Sikora <piotrsikora at google.com>
> # Date 1467064807 25200
> #      Mon Jun 27 15:00:07 2016 -0700
> # Node ID 8666abaeb43294edd5b93852bad2a42a27dd651b
> # Parent  d452cb27639f714bc43b7f3ede417e3e7f8efdd6
> Core: remove unused NGX_INVALID_ARRAY_INDEX.
> 
> Unused since ae4744c28620 (0.7.51).
> 
> Signed-off-by: Piotr Sikora <piotrsikora at google.com>
> 
> diff -r d452cb27639f -r 8666abaeb432 src/core/ngx_config.h
> --- a/src/core/ngx_config.h
> +++ b/src/core/ngx_config.h
> @@ -105,10 +105,6 @@ typedef intptr_t        ngx_flag_t;
>  #define ngx_abort       abort
>  
>  
> -/* TODO: platform specific: array[NGX_INVALID_ARRAY_INDEX] must cause SIGSEGV */
> -#define NGX_INVALID_ARRAY_INDEX 0x80000000
> -
> -
>  /* TODO: auto_conf: ngx_inline   inline __inline __inline__ */
>  #ifndef ngx_inline
>  #define ngx_inline      inline

I would rather preserve this either.  It may be useable in some 
cases.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list