Source-Changes-HG archive

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

[src/trunk]: src/sys/modules/lua whitespace, knf, comments, but no functional...



details:   https://anonhg.NetBSD.org/src/rev/4695bbc58b4e
branches:  trunk
changeset: 332492:4695bbc58b4e
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Wed Sep 24 14:55:48 2014 +0000

description:
whitespace, knf, comments, but no functional change

diffstat:

 sys/modules/lua/lua.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r c4a5442cb407 -r 4695bbc58b4e sys/modules/lua/lua.c
--- a/sys/modules/lua/lua.c     Wed Sep 24 13:18:52 2014 +0000
+++ b/sys/modules/lua/lua.c     Wed Sep 24 14:55:48 2014 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: lua.c,v 1.13 2014/07/25 08:10:40 dholland Exp $ */
+/*     $NetBSD: lua.c,v 1.14 2014/09/24 14:55:48 mbalmer Exp $ */
 
 /*
  * Copyright (c) 2014 by Lourival Vieira Neto <lneto%NetBSD.org@localhost>.
- * Copyright (c) 2011, 2013 by Marc Balmer <mbalmer%NetBSD.org@localhost>.
+ * Copyright (c) 2011 - 2014 by Marc Balmer <mbalmer%NetBSD.org@localhost>.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -629,7 +629,7 @@
 
 klua_State *
 klua_newstate(lua_Alloc f, void *ud, const char *name, const char *desc,
-               int ipl)
+    int ipl)
 {
        klua_State *K;
        struct lua_state *s;
@@ -694,6 +694,7 @@
        struct lua_module *m;
        int error = 0;
 
+       /* XXX consider registering a handler instead of a fixed name. */
        lua_getglobal(K->L, "onClose");
        if (lua_isfunction(K->L, -1))
                lua_pcall(K->L, -1, 0, 0);
@@ -784,9 +785,11 @@
 static const struct cfiattrdata luabus_iattrdata = {
        "luabus", 0, { { NULL, NULL, 0 },}
 };
+
 static const struct cfiattrdata *const lua_attrs[] = {
        &luabus_iattrdata, NULL
 };
+
 CFDRIVER_DECL(lua, DV_DULL, lua_attrs);
 extern struct cfattach lua_ca;
 static int lualoc[] = {
@@ -794,6 +797,7 @@
        -1,
        -1
 };
+
 static struct cfdata lua_cfdata[] = {
        {
                .cf_name = "lua",



Home | Main Index | Thread Index | Old Index