diff options
| author | lneto <lneto@NetBSD.org> | 2014-07-19 17:10:02 +0000 |
|---|---|---|
| committer | lneto <lneto@NetBSD.org> | 2014-07-19 17:10:02 +0000 |
| commit | 4f74f463135be4d0b65d12be5db64b794aa459a5 (patch) | |
| tree | 0e164c8409af8191ff72846ed0f30ffe8969e08d /sys/modules/lua | |
| parent | 927d4ef246f1a404ba249d07f2d590d9a093c875 (diff) | |
lua(4): cleaned stubs
Diffstat (limited to 'sys/modules/lua')
| -rw-r--r-- | sys/modules/lua/errno.h | 8 | ||||
| -rw-r--r-- | sys/modules/lua/inttypes.h | 6 | ||||
| -rw-r--r-- | sys/modules/lua/stdarg.h | 8 | ||||
| -rw-r--r-- | sys/modules/lua/stddef.h | 6 | ||||
| -rw-r--r-- | sys/modules/lua/stdlib.h | 9 |
5 files changed, 3 insertions, 34 deletions
diff --git a/sys/modules/lua/errno.h b/sys/modules/lua/errno.h index c033853cb0e..e69de29bb2d 100644 --- a/sys/modules/lua/errno.h +++ b/sys/modules/lua/errno.h @@ -1,8 +0,0 @@ -/* $NetBSD */ - -/* - * This file is a placeholder only, to allow Lua to be compiled from - * unchanged sources. - */ - -#include <sys/errno.h> diff --git a/sys/modules/lua/inttypes.h b/sys/modules/lua/inttypes.h index c36e14b0146..e69de29bb2d 100644 --- a/sys/modules/lua/inttypes.h +++ b/sys/modules/lua/inttypes.h @@ -1,6 +0,0 @@ -/* $NetBSD: inttypes.h,v 1.1 2013/10/16 19:44:57 mbalmer Exp $ */ - -/* - * This file is a placeholder only, to allow Lua to be compiled from - * unchanged sources. - */ diff --git a/sys/modules/lua/stdarg.h b/sys/modules/lua/stdarg.h index bde63f352e6..e69de29bb2d 100644 --- a/sys/modules/lua/stdarg.h +++ b/sys/modules/lua/stdarg.h @@ -1,8 +0,0 @@ -/* $NetBSD */ - -/* - * This file is a placeholder only, to allow Lua to be compiled from - * unchanged sources. - */ - -#include <sys/stdarg.h> diff --git a/sys/modules/lua/stddef.h b/sys/modules/lua/stddef.h index bb27b58f852..408bba368ba 100644 --- a/sys/modules/lua/stddef.h +++ b/sys/modules/lua/stddef.h @@ -6,11 +6,5 @@ */ #include <sys/types.h> - -#ifdef _BSD_PTRDIFF_T_ -typedef _BSD_PTRDIFF_T_ ptrdiff_t; -#undef _BSD_PTRDIFF_T_ -#endif - #include <sys/null.h> diff --git a/sys/modules/lua/stdlib.h b/sys/modules/lua/stdlib.h index b67b5419878..d3cf9bc10da 100644 --- a/sys/modules/lua/stdlib.h +++ b/sys/modules/lua/stdlib.h @@ -1,7 +1,7 @@ /* $NetBSD */ /* - * Copyright (c) 2011, Lourival Neto <lneto@NetBSD.org>. + * Copyright (c) 2011-2014, Lourival Neto <lneto@NetBSD.org>. * 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 |
