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/0bce36bd5db1
branches:  trunk
changeset: 325066:0bce36bd5db1
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 89225ff57797 -r 0bce36bd5db1 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