aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-02-13 21:44:22 +0800
committerLi Jin <dragon-fly@qq.com>2020-02-13 21:44:22 +0800
commitb06a818e78d1a26c34f2c87f607e78ad156e4921 (patch)
tree94681ba34e7866686bb0d4f13c83b47779f4b989 /src
parentc241ea241e8e9c152f6eb14f163b2ae39749f7bf (diff)
downloadyuescript-b06a818e78d1a26c34f2c87f607e78ad156e4921.tar.gz
yuescript-b06a818e78d1a26c34f2c87f607e78ad156e4921.tar.bz2
yuescript-b06a818e78d1a26c34f2c87f607e78ad156e4921.zip
update readme and rockspec.
Diffstat (limited to 'src')
-rw-r--r--src/Moonscript.h (renamed from src/MoonPlus.h)21
-rw-r--r--src/StackTracePlus.h4
-rw-r--r--src/moonp.cpp2
3 files changed, 23 insertions, 4 deletions
diff --git a/src/MoonPlus.h b/src/Moonscript.h
index da5f3ac..6e84552 100644
--- a/src/MoonPlus.h
+++ b/src/Moonscript.h
@@ -1,4 +1,25 @@
1R"moonscript_codes( 1R"moonscript_codes(
2--[[
3Copyright (C) 2020 by Leaf Corcoran, modified by Li Jin
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21THE SOFTWARE.]]
22
2import "moonp" 23import "moonp"
3import concat, insert, remove from table 24import concat, insert, remove from table
4unpack = unpack or table.unpack 25unpack = unpack or table.unpack
diff --git a/src/StackTracePlus.h b/src/StackTracePlus.h
index 1a909fd..202ae22 100644
--- a/src/StackTracePlus.h
+++ b/src/StackTracePlus.h
@@ -1,8 +1,6 @@
1R"lua_codes( 1R"lua_codes(
2--[[ 2--[[
3The MIT License 3Copyright (c) 2010 Ignacio Burgueño, modified by Li Jin
4
5Copyright (c) 2010 Ignacio Burgueño
6 4
7Permission is hereby granted, free of charge, to any person obtaining a copy 5Permission is hereby granted, free of charge, to any person obtaining a copy
8of this software and associated documentation files (the "Software"), to deal 6of this software and associated documentation files (the "Software"), to deal
diff --git a/src/moonp.cpp b/src/moonp.cpp
index a6c99df..cb53b55 100644
--- a/src/moonp.cpp
+++ b/src/moonp.cpp
@@ -182,7 +182,7 @@ extern "C" {
182#include "lauxlib.h" 182#include "lauxlib.h"
183 183
184static const char moonplusCodes[] = 184static const char moonplusCodes[] =
185#include "MoonPlus.h" 185#include "Moonscript.h"
186 186
187static int init_moonplus(lua_State* L) { 187static int init_moonplus(lua_State* L) {
188 MoonP::MoonConfig config; 188 MoonP::MoonConfig config;