Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/modules/lua Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/62d85d5b3303
branches: netbsd-7
changeset: 800260:62d85d5b3303
user: snj <snj%NetBSD.org@localhost>
date: Sun Jul 23 06:03:30 2017 +0000
description:
Pull up following revision(s) (requested by mbalmer in ticket #1423):
sys/modules/lua/lua.c: revision 1.23
always put the module on the stack
diffstat:
sys/modules/lua/lua.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 4c9296410d67 -r 62d85d5b3303 sys/modules/lua/lua.c
--- a/sys/modules/lua/lua.c Sun Jul 23 06:00:39 2017 +0000
+++ b/sys/modules/lua/lua.c Sun Jul 23 06:03:30 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lua.c,v 1.13.2.5 2017/07/23 06:00:39 snj Exp $ */
+/* $NetBSD: lua.c,v 1.13.2.6 2017/07/23 06:03:30 snj Exp $ */
/*
* Copyright (c) 2011 - 2017 by Marc Balmer <mbalmer%NetBSD.org@localhost>.
@@ -513,16 +513,16 @@
if (md != NULL)
LIST_FOREACH(s, &lua_states, lua_next)
if (s->K->L == L) {
- LIST_FOREACH(m, &s->lua_modules, mod_next)
- if (m == md)
- return 1;
-
if (lua_verbose)
device_printf(sc_self,
"require module %s\n",
md->mod_name);
luaL_requiref(L, md->mod_name, md->open, 0);
+ LIST_FOREACH(m, &s->lua_modules, mod_next)
+ if (m == md)
+ return 1;
+
md->refcount++;
LIST_INSERT_HEAD(&s->lua_modules, md, mod_next);
return 1;
Home |
Main Index |
Thread Index |
Old Index