Source-Changes-D archive

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

Re: CVS commit: src/sys/modules/lua



Lourival Pereira Vieira Neto wrote:
> ...
> Index: src/sys/modules/lua/stdlib.h
> diff -u src/sys/modules/lua/stdlib.h:1.1 src/sys/modules/lua/stdlib.h:1.2
> --- src/sys/modules/lua/stdlib.h:1.1  Wed Oct 16 19:44:57 2013
> +++ src/sys/modules/lua/stdlib.h      Sat Jul 19 17:10:02 2014
> @@ -1,7 +1,7 @@
>  /*   $NetBSD */
>  
>  /*
> - * Copyright (c) 2011, Lourival Neto <lneto%NetBSD.org@localhost>.
> + * Copyright (c) 2011-2014, Lourival Neto <lneto%NetBSD.org@localhost>.
>   * All rights reserved.
>   *
>   * Redistribution and use in source and binary forms, with or without
> @@ -36,11 +36,8 @@
>  #include <sys/param.h>
>  #include <sys/kmem.h>
>  
> -#ifndef _LUA_INCLUDE_STDLIB
> -#define _LUA_INCLUDE_STDLIB
> -
> -#define realloc(ptr, nsize)  kmem_alloc(nsize, KM_SLEEP)
> -#define free(ptr)            kmem_free(ptr, osize)
> +#ifndef _LUA_INCLUDE_STDLIB_
> +#define _LUA_INCLUDE_STDLIB_
>  
>  #define exit(EXIT_FAILURE)   return

Infamous hack is still in the tree.


Alex


Home | Main Index | Thread Index | Old Index