summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorwtz <[email protected]>2023-07-19 12:35:52 +0800
committerwtz <[email protected]>2023-07-19 12:35:52 +0800
commitf75224a8435d0eb9cdda79f8bc571eeef25a8e33 (patch)
tree278e00b17c8f5558df1c1a21f1204078ea62a58f /core/src
parentca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff)
Fix grammar
Diffstat (limited to 'core/src')
-rw-r--r--core/src/demo/xmake.lua6
-rwxr-xr-xcore/src/demo/xmake.sh2
-rw-r--r--core/src/lua/xmake.lua2
-rwxr-xr-xcore/src/lua/xmake.sh2
-rw-r--r--core/src/lz4/xmake.lua2
-rw-r--r--core/src/pdcurses/xmake.lua2
-rw-r--r--core/src/xmake/curses/curses.c2
-rw-r--r--core/src/xmake/engine.h2
-rw-r--r--core/src/xmake/io/iscygpty.c2
-rw-r--r--core/src/xmake/lz4/prefix.h2
-rw-r--r--core/src/xmake/process/openv.c2
-rw-r--r--core/src/xmake/xmake.lua4
-rwxr-xr-xcore/src/xmake/xmake.sh2
13 files changed, 16 insertions, 16 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua
index 6f5e3e431..fa290a2a9 100644
--- a/core/src/demo/xmake.lua
+++ b/core/src/demo/xmake.lua
@@ -11,16 +11,16 @@ target("demo")
-- make as a binary
set_kind("binary")
- -- add defines
+ -- add definitions
add_defines("__tb_prefix__=\"xmake\"")
-- add includes directory
add_includedirs("$(projectdir)", "$(projectdir)/src")
- -- add the common source files
+ -- add common source files
add_files("**.c")
- -- add the resource files (it will be enabled after publishing new version)
+ -- add resource files (it will be enabled after publishing new version)
if is_plat("windows") then
add_files("*.rc")
end
diff --git a/core/src/demo/xmake.sh b/core/src/demo/xmake.sh
index 9233f1c30..d91b50d99 100755
--- a/core/src/demo/xmake.sh
+++ b/core/src/demo/xmake.sh
@@ -6,7 +6,7 @@ target "demo"
set_basename "xmake"
set_targetdir "${buildir}"
- # add defines
+ # add definitions
add_defines "__tb_prefix__=\"xmake\""
# add includes directory
diff --git a/core/src/lua/xmake.lua b/core/src/lua/xmake.lua
index 048d7305e..44c797aab 100644
--- a/core/src/lua/xmake.lua
+++ b/core/src/lua/xmake.lua
@@ -19,7 +19,7 @@ target("lua")
add_files("lua/loslib.c")
end
- -- add defines
+ -- add definitions
add_defines("LUA_COMPAT_5_1", "LUA_COMPAT_5_2", "LUA_COMPAT_5_3", {public = true})
if is_plat("windows") then
add_defines("LUA_USE_WINDOWS")
diff --git a/core/src/lua/xmake.sh b/core/src/lua/xmake.sh
index f34dd53f2..78e05bd21 100755
--- a/core/src/lua/xmake.sh
+++ b/core/src/lua/xmake.sh
@@ -42,7 +42,7 @@ target "lua"
add_files "lua/lvm.c"
add_files "lua/lzio.c"
- # add defines
+ # add definitions
add_defines "LUA_COMPAT_5_1" "LUA_COMPAT_5_2" "LUA_COMPAT_5_3" "{public}"
if is_plat "mingw"; then
add_defines "LUA_USE_WINDOWS"
diff --git a/core/src/lz4/xmake.lua b/core/src/lz4/xmake.lua
index 257aefff8..6f55f9bb2 100644
--- a/core/src/lz4/xmake.lua
+++ b/core/src/lz4/xmake.lua
@@ -16,6 +16,6 @@ target("lz4")
-- add the common source files
add_files("lz4/lib/*.c|lz4file.c")
- -- add defines
+ -- add definitions
add_defines("XXH_NAMESPACE=LZ4_")
diff --git a/core/src/pdcurses/xmake.lua b/core/src/pdcurses/xmake.lua
index 4fd2bb96d..1cafaf996 100644
--- a/core/src/pdcurses/xmake.lua
+++ b/core/src/pdcurses/xmake.lua
@@ -15,7 +15,7 @@ target("pdcurses")
-- add the common source files
add_files("pdcurses/pdcurses/*.c", "pdcurses/win32/*.c")
- -- add defines
+ -- add definitions
add_defines("PDC_WIDE")
-- set languages
diff --git a/core/src/xmake/curses/curses.c b/core/src/xmake/curses/curses.c
index e185fd7b6..c7b67aa85 100644
--- a/core/src/xmake/curses/curses.c
+++ b/core/src/xmake/curses/curses.c
@@ -830,7 +830,7 @@ int xm_lua_curses_register(lua_State* lua, const char* module)
/* since version 5.4, the ncurses library decides how to interpret non-ASCII data using the nl_langinfo function.
* that means that you have to call setlocale() in the application and encode Unicode strings using one of the system’s available encodings.
*
- * and we need link libncurses_window.so for drawing vline, hline characters
+ * and we need to link libncurses_window.so for drawing vline, hline characters
*/
#if defined(NCURSES_VERSION)
setlocale(LC_ALL, "");
diff --git a/core/src/xmake/engine.h b/core/src/xmake/engine.h
index af0db9a0c..cc5a533ca 100644
--- a/core/src/xmake/engine.h
+++ b/core/src/xmake/engine.h
@@ -71,7 +71,7 @@ tb_void_t xm_engine_exit(xm_engine_ref_t engine);
*/
tb_int_t xm_engine_main(xm_engine_ref_t engine, tb_int_t argc, tb_char_t** argv, tb_char_t** taskargv);
-/*! register lni modules in the engine, @note we need call it in lni_initalizer()
+/*! register lni modules in the engine, @note we need to call it in lni_initalizer()
*
* @param engine the engine
* @param module the lni module name
diff --git a/core/src/xmake/io/iscygpty.c b/core/src/xmake/io/iscygpty.c
index fc5a5b8da..49850e25c 100644
--- a/core/src/xmake/io/iscygpty.c
+++ b/core/src/xmake/io/iscygpty.c
@@ -57,7 +57,7 @@
#endif /* USE_FILEEXTD */
#if _WIN32_WINNT >= 0x0600
-# define USE_DYNFILEID // we need enable it for supporting xp
+# define USE_DYNFILEID // we need to enable it for supporting xp
#endif
#ifdef USE_DYNFILEID
typedef BOOL (WINAPI *pfnGetFileInformationByHandleEx)(
diff --git a/core/src/xmake/lz4/prefix.h b/core/src/xmake/lz4/prefix.h
index 7efdc71d3..d8f052795 100644
--- a/core/src/xmake/lz4/prefix.h
+++ b/core/src/xmake/lz4/prefix.h
@@ -33,7 +33,7 @@
* types
*/
-// we need define LZ4_byte if < 1.9.3
+// we need to define LZ4_byte if < 1.9.3
#if defined(LZ4_VERSION_NUMBER) && LZ4_VERSION_NUMBER < (1 * 100 * 100 + 9 * 100 + 3)
# if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */)
# include <stdint.h>
diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c
index 79c8986bb..21add6d55 100644
--- a/core/src/xmake/process/openv.c
+++ b/core/src/xmake/process/openv.c
@@ -329,7 +329,7 @@ tb_int_t xm_process_openv(lua_State* lua)
// set the new environments
if (envn > 0) attr.envp = envs;
- /* we need ignore SIGINT and SIGQUIT if we enter exclusive mode
+ /* we need to ignore SIGINT and SIGQUIT if we enter exclusive mode
* @see https://github.com/xmake-io/xmake/discussions/2893
*/
#if defined(SIGINT)
diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua
index d4e11040e..03e733c9a 100644
--- a/core/src/xmake/xmake.lua
+++ b/core/src/xmake/xmake.lua
@@ -15,7 +15,7 @@ target("xmake")
add_deps("pdcurses")
end
- -- add defines
+ -- add definitions
add_defines("__tb_prefix__=\"xmake\"")
if is_mode("debug") then
add_defines("__tb_debug__", {public = true})
@@ -49,7 +49,7 @@ target("xmake")
add_options("curses")
end
- -- add defines
+ -- add definitions
if is_plat("windows") then
add_defines("UNICODE", "_UNICODE")
end
diff --git a/core/src/xmake/xmake.sh b/core/src/xmake/xmake.sh
index dc45ecbca..a813cf078 100755
--- a/core/src/xmake/xmake.sh
+++ b/core/src/xmake/xmake.sh
@@ -36,7 +36,7 @@ target "xmake"
# add options
add_options "readline" "curses" "{public}"
- # add defines
+ # add definitions
add_defines "__tb_prefix__=\"xmake\""
if is_mode "debug"; then
add_defines "__tb_debug__" "{public}"