Skip to content

Conversation

@MatheusNtg
Copy link

No description provided.

@MatheusNtg MatheusNtg force-pushed the tests branch 2 times, most recently from 2f27696 to ca791dc Compare August 23, 2020 20:17
@MatheusNtg MatheusNtg force-pushed the tests branch 3 times, most recently from 87be836 to aad75a1 Compare August 27, 2020 19:48
@@ -0,0 +1,3 @@
[submodule "deps/lua-memory"]
path = deps/lua-memory
url = https://github.com/MatheusNtg/lua-memory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should refers to upstream, right? or do you have modifications in your fork?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have modifications on my fork.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, you need to make a PR as well.. what's the upstream repo? I think we should fork it on luainkernel and make a PR for it..

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upstream repo can be found here. I made a PR to lua-memory repo now

Makefile Outdated
@@ -1,4 +1,5 @@
ccflags-y += -D_LUNATIK -D_KERNEL -I$(src) -D_CONFIG_FULL_PANIC
ccflags-y += -D_LUNATIK -D_KERNEL -I$(src) -D_CONFIG_FULL_PANIC -DLUNATIK_UNUSED \
-I$(src)/lua -I$(src)/deps/lua-memory/src
Copy link
Contributor

@lneto lneto Sep 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-I$(src)/lua -I$(src)/deps/lua-memory/src
-I$(src)/lua -I$(src)/deps/lua-memory/src

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review and apply the same to the rest of the code..

Makefile Outdated
lua/lundump.o lua/lvm.o lua/lzio.o lua/lauxlib.o lua/lbaselib.o \
lua/lbitlib.o lua/lcorolib.o lua/ldblib.o lua/lstrlib.o \
lua/ltablib.o lua/lutf8lib.o lua/loslib.o lua/lmathlib.o lua/linit.o \
lua/loadlib.o luautil.o
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why changing all these lines?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To put all lua related objects in on variable on the Lunatik building

Copy link
Contributor

@lneto lneto Sep 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need change the indentation of this lines to do that.. please, take cara of that..

Makefile Outdated
lua/ltablib.o lua/lutf8lib.o lua/loslib.o lua/lmathlib.o lua/linit.o \
lua/loadlib.o luautil.o

lua_memory-objs = deps/lua-memory/src/lmemlib.o deps/lua-memory/src/lmemmod.o
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lua_memory-objs = deps/lua-memory/src/lmemlib.o deps/lua-memory/src/lmemmod.o
luamemory-path = deps/lua-memory/src
luamemory-objs = $(luamemory-path)/lmemlib.o $(luamemory-path)/lmemmod.o

@@ -0,0 +1,53 @@
# Copyright (c) 2020 Matheus Rodrigues <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you copying this makefile if you have a submodule?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the makefile of lunatik user space module. What are you suggesting is to build the lunatik user space module from the submodule makefile?

lunatik_conf.h Outdated
#ifndef LUNATIK_CONF_H
#define LUNATIK_CONF_H

#define LUNATIK_NAME_MAXSIZE 64 /* Max length of Lua state name */
Copy link
Contributor

@lneto lneto Sep 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, use the form:

#define <name>\t(<definition>)

and apply this to all your definitions..

@MatheusNtg MatheusNtg force-pushed the tests branch 4 times, most recently from a071917 to 8a8297a Compare September 4, 2020 14:27
assert(#states == 6)
assert(#states2 == 6)


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/\n//

-- State created from another session
ss2 = session2:newstate's1'
assert(ss2 == nil)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/\n//

@MatheusNtg MatheusNtg force-pushed the tests branch 5 times, most recently from eeb6a66 to cb9b7c6 Compare September 11, 2020 16:52
@lneto lneto force-pushed the master branch 2 times, most recently from 08920ce to 33e4e42 Compare February 10, 2025 22:17
@lneto lneto force-pushed the master branch 2 times, most recently from 17ac113 to 925bfd9 Compare July 14, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants