Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules/lua lua(4): cleaned stubs
details: https://anonhg.NetBSD.org/src/rev/0e245f0d05a6
branches: trunk
changeset: 797486:0e245f0d05a6
user: lneto <lneto%NetBSD.org@localhost>
date: Sat Jul 19 17:10:02 2014 +0000
description:
lua(4): cleaned stubs
diffstat:
sys/modules/lua/errno.h | 8 --------
sys/modules/lua/inttypes.h | 6 ------
sys/modules/lua/stdarg.h | 8 --------
sys/modules/lua/stddef.h | 6 ------
sys/modules/lua/stdlib.h | 9 +++------
5 files changed, 3 insertions(+), 34 deletions(-)
diffs (75 lines):
diff -r 521ade437e30 -r 0e245f0d05a6 sys/modules/lua/errno.h
--- a/sys/modules/lua/errno.h Sat Jul 19 14:58:50 2014 +0000
+++ b/sys/modules/lua/errno.h Sat Jul 19 17:10:02 2014 +0000
@@ -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 -r 521ade437e30 -r 0e245f0d05a6 sys/modules/lua/inttypes.h
--- a/sys/modules/lua/inttypes.h Sat Jul 19 14:58:50 2014 +0000
+++ b/sys/modules/lua/inttypes.h Sat Jul 19 17:10:02 2014 +0000
@@ -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 -r 521ade437e30 -r 0e245f0d05a6 sys/modules/lua/stdarg.h
--- a/sys/modules/lua/stdarg.h Sat Jul 19 14:58:50 2014 +0000
+++ b/sys/modules/lua/stdarg.h Sat Jul 19 17:10:02 2014 +0000
@@ -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 -r 521ade437e30 -r 0e245f0d05a6 sys/modules/lua/stddef.h
--- a/sys/modules/lua/stddef.h Sat Jul 19 14:58:50 2014 +0000
+++ b/sys/modules/lua/stddef.h Sat Jul 19 17:10:02 2014 +0000
@@ -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 -r 521ade437e30 -r 0e245f0d05a6 sys/modules/lua/stdlib.h
--- a/sys/modules/lua/stdlib.h Sat Jul 19 14:58:50 2014 +0000
+++ b/sys/modules/lua/stdlib.h Sat Jul 19 17:10:02 2014 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index