mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
Merge pull request #11204 from pinotree/libcmd-editline-helpers
libcmd: do not compile editline helpers when building w/ readline
This commit is contained in:
commit
0e151bcbf0
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,7 @@ void sigintHandler(int signo)
|
||||||
|
|
||||||
static detail::ReplCompleterMixin * curRepl; // ugly
|
static detail::ReplCompleterMixin * curRepl; // ugly
|
||||||
|
|
||||||
|
#ifndef USE_READLINE
|
||||||
static char * completionCallback(char * s, int * match)
|
static char * completionCallback(char * s, int * match)
|
||||||
{
|
{
|
||||||
auto possible = curRepl->completePrefix(s);
|
auto possible = curRepl->completePrefix(s);
|
||||||
|
@ -101,6 +102,7 @@ static int listPossibleCallback(char * s, char *** avp)
|
||||||
|
|
||||||
return ac;
|
return ac;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ReadlineLikeInteracter::Guard ReadlineLikeInteracter::init(detail::ReplCompleterMixin * repl)
|
ReadlineLikeInteracter::Guard ReadlineLikeInteracter::init(detail::ReplCompleterMixin * repl)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue