Source-Changes-HG archive

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

[src/trunk]: src/external/mit/lua/dist/src fixed lua(4) build (added _KERNEL ...



details:   https://anonhg.NetBSD.org/src/rev/d35f35e3f527
branches:  trunk
changeset: 791806:d35f35e3f527
user:      lneto <lneto%NetBSD.org@localhost>
date:      Mon Dec 02 23:06:35 2013 +0000

description:
fixed lua(4) build (added _KERNEL guard into lstrlib.c to avoid double usage)

diffstat:

 external/mit/lua/dist/src/lstrlib.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e61374029c31 -r d35f35e3f527 external/mit/lua/dist/src/lstrlib.c
--- a/external/mit/lua/dist/src/lstrlib.c       Mon Dec 02 21:21:33 2013 +0000
+++ b/external/mit/lua/dist/src/lstrlib.c       Mon Dec 02 23:06:35 2013 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: lstrlib.c,v 1.1.1.2 2012/03/15 00:08:12 alnsn Exp $    */
+/*     $NetBSD: lstrlib.c,v 1.2 2013/12/02 23:06:35 lneto Exp $        */
 
 /*
-** $Id: lstrlib.c,v 1.1.1.2 2012/03/15 00:08:12 alnsn Exp $
+** $Id: lstrlib.c,v 1.2 2013/12/02 23:06:35 lneto Exp $
 ** Standard library for string operations and pattern-matching
 ** See Copyright Notice in lua.h
 */
@@ -789,11 +789,13 @@
           sprintf(buff, form, (unsigned LUA_INTFRM_T)luaL_checknumber(L, arg));
           break;
         }
+#ifndef _KERNEL
         case 'e':  case 'E': case 'f':
         case 'g': case 'G': {
           sprintf(buff, form, (double)luaL_checknumber(L, arg));
           break;
         }
+#endif
         case 'q': {
           addquoted(L, &b, arg);
           continue;  /* skip the 'addsize' at the end */



Home | Main Index | Thread Index | Old Index