Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
2fb01099
Commit
2fb01099
authored
10 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/gh-747-remove_dep_gnu_readline'
parents
d5773d6c
ccdd1538
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/FindReadline.cmake
+7
-1
7 additions, 1 deletion
cmake/FindReadline.cmake
src/lua/init.cc
+2
-0
2 additions, 0 deletions
src/lua/init.cc
src/trivia/config.h.cmake
+4
-0
4 additions, 0 deletions
src/trivia/config.h.cmake
with
13 additions
and
1 deletion
cmake/FindReadline.cmake
+
7
−
1
View file @
2fb01099
...
...
@@ -28,7 +28,13 @@ IF (READLINE_READLINE_LIBRARY AND READLINE_INCLUDE_DIR)
SET
(
READLINE_FOUND TRUE
)
SET
(
READLINE_INCLUDE_DIR
${
READLINE_INCLUDE_DIR
}
)
SET
(
READLINE_LIBRARIES
${
READLINE_READLINE_LIBRARY
}
)
MESSAGE
(
STATUS
"Found GNU readline:
${
READLINE_READLINE_LIBRARY
}
, include dir
${
READLINE_INCLUDE_DIR
}
"
)
IF
(
EXISTS
${
READLINE_INCLUDE_DIR
}
/readline/rlconf.h
)
MESSAGE
(
STATUS
"Found GNU readline"
)
set
(
HAVE_GNU_READLINE 1
)
ELSE
()
MESSAGE
(
STATUS
"Found readline"
)
ENDIF
()
MESSAGE
(
STATUS
"readline library:
${
READLINE_READLINE_LIBRARY
}
, include dir
${
READLINE_INCLUDE_DIR
}
"
)
IF
(
TERMCAP_FOUND
)
SET
(
READLINE_LIBRARIES
${
READLINE_LIBRARIES
}
${
TERMCAP_LIBRARY
}
)
ENDIF
(
TERMCAP_FOUND
)
...
...
This diff is collapsed.
Click to expand it.
src/lua/init.cc
+
2
−
0
View file @
2fb01099
...
...
@@ -330,12 +330,14 @@ tarantool_lua_init(const char *tarantool_bin, int argc, char **argv)
luaopen_json
(
L
);
lua_pop
(
L
,
1
);
#if defined(HAVE_GNU_READLINE)
/*
* Disable libreadline signals handlers. All signals are handled in
* main thread by libev watchers.
*/
rl_catch_signals
=
0
;
rl_catch_sigwinch
=
0
;
#endif
static
const
struct
luaL_reg
consolelib
[]
=
{
{
"readline"
,
tarantool_console_readline
},
{
"add_history"
,
tarantool_console_add_history
},
...
...
This diff is collapsed.
Click to expand it.
src/trivia/config.h.cmake
+
4
−
0
View file @
2fb01099
...
...
@@ -108,6 +108,10 @@
* Defined if this platform supports openmp and it is enabled
*/
#cmakedefine HAVE_OPENMP 1
/*
* Defined if compatible with GNU readline installed.
*/
#cmakedefine HAVE_GNU_READLINE 1
/*
* Set if compiler has __builtin_XXX methods.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment