diff options
| author | wtz <[email protected]> | 2023-07-19 12:35:52 +0800 |
|---|---|---|
| committer | wtz <[email protected]> | 2023-07-19 12:35:52 +0800 |
| commit | f75224a8435d0eb9cdda79f8bc571eeef25a8e33 (patch) | |
| tree | 278e00b17c8f5558df1c1a21f1204078ea62a58f /core/src/xmake | |
| parent | ca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff) | |
Fix grammar
Diffstat (limited to 'core/src/xmake')
| -rw-r--r-- | core/src/xmake/curses/curses.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/engine.h | 2 | ||||
| -rw-r--r-- | core/src/xmake/io/iscygpty.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/lz4/prefix.h | 2 | ||||
| -rw-r--r-- | core/src/xmake/process/openv.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/xmake.lua | 4 | ||||
| -rwxr-xr-x | core/src/xmake/xmake.sh | 2 |
7 files changed, 8 insertions, 8 deletions
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}" |
