octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44095] readline configuration - tab autocompl


From: Libor Morkovsky
Subject: [Octave-bug-tracker] [bug #44095] readline configuration - tab autocompletion of paths
Date: Tue, 13 Oct 2015 23:55:27 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36

Follow-up Comment #17, bug #44095 (project octave):

The "assignment from incompatible pointer type" error is caused by 'const'
specifier. I misread the GNU readline documentation: "It should return a
character string like rl_completer_word_break_characters to be used to perform
the current completion.", where rl_completer_word_break_characters is const
char *, but rl_cpvfunc_t is a function that should return char *, while I'm
assigning pointer to a function returning const char *.

It is necessary to remove the const specifier all the way up from the chain
leading to dir_word_breaker in input.cc. But then you'll hit another kind of
warning for returning pointer to a string literal without const:
http://stackoverflow.com/questions/59670/how-to-get-rid-of-deprecated-conversion-from-string-constant-to-char-warnin
. Choose yourself, which one is better;)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44095>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]