From 4f74f463135be4d0b65d12be5db64b794aa459a5 Mon Sep 17 00:00:00 2001 From: lneto Date: Sat, 19 Jul 2014 17:10:02 +0000 Subject: lua(4): cleaned stubs --- 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(-) (limited to 'sys/modules/lua') 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 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 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 - -#ifdef _BSD_PTRDIFF_T_ -typedef _BSD_PTRDIFF_T_ ptrdiff_t; -#undef _BSD_PTRDIFF_T_ -#endif - #include 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 . + * Copyright (c) 2011-2014, Lourival Neto . * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -36,11 +36,8 @@ #include #include -#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 -- cgit ss='left'>AgeCommit message (Expand)Author 2018-12-19merge conflicts.christos 2017-03-11merge 3.17.0christos 2016-12-18change $Mdocdate$ to a fixed date for reproducible builds.christos 2016-07-03Regenerate man pagesabhinav 2016-03-30Add auto-generated sqlite3 man pageschristos