Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
75f1c64c
Commit
75f1c64c
authored
May 12, 2020
by
Javier Peletier
Committed by
Marcel Stör
Jun 09, 2020
Browse files
fix compilation error when disabling startup banner (#3103)
parent
93c82f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lua53/lua.c
View file @
75f1c64c
...
@@ -115,8 +115,10 @@ static int docall (lua_State *L, int narg, int nres) {
...
@@ -115,8 +115,10 @@ static int docall (lua_State *L, int narg, int nres) {
}
}
static
void
print_version
(
lua_State
*
L
)
{
static
void
print_version
(
lua_State
*
L
)
{
#ifndef DISABLE_STARTUP_BANNER
lua_writestringerror
(
"
\n
"
NODE_VERSION
" build "
BUILD_DATE
lua_writestringerror
(
"
\n
"
NODE_VERSION
" build "
BUILD_DATE
" powered by "
LUA_RELEASE
" on SDK %s
\n
"
,
SDK_VERSION
);
" powered by "
LUA_RELEASE
" on SDK %s
\n
"
,
SDK_VERSION
);
#endif
}
}
...
@@ -239,9 +241,7 @@ static int pmain (lua_State *L) {
...
@@ -239,9 +241,7 @@ static int pmain (lua_State *L) {
input_setup
(
LUA_MAXINPUT
,
get_prompt
(
L
,
1
));
input_setup
(
LUA_MAXINPUT
,
get_prompt
(
L
,
1
));
lua_input_string
(
"
\n
"
,
2
);
/* queue CR to issue first prompt */
lua_input_string
(
"
\n
"
,
2
);
/* queue CR to issue first prompt */
#ifndef DISABLE_STARTUP_BANNER
print_version
(
L
);
print_version
(
L
);
#endif
/*
/*
* And last of all, kick off application initialisation. Note that if
* And last of all, kick off application initialisation. Note that if
* LUA_INIT_STRING is a file reference and the file system is uninitialised
* LUA_INIT_STRING is a file reference and the file system is uninitialised
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment