# Ext/readline

**URL:** <https://www.ruby-forum.com/t/ext-readline/79255>\
**Category:** Development\
**Created:** [December 13, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/ext-readline/79255 "2006-12-13T17:16:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takahiro\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/76d3ee/32.png) [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Post date:** [December 13, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/ext-readline/79255/1 "2006-12-13T17:16:47Z")

</div>

e$B$3$s$P$s$O!#e(B

Ruby 1.8e$B$N%V%i%s%Ae(B(2006/12/05)e$B$Ne(Bext/readlinee$B$,e(BNetBSD  
currente$B$G%3%s%Q%$e(B  
e$B%k$G$-$J$$\>l9g$,$"$j$^$9!#e(B

ext/readline/extconf.rbe$B$G$O!"e(B

have\_readline\_var(“rl\_filename\_completion\_function”)

e$B$H%A%’%C%/$7$F!"e(Bext/readline/readline.ce$B$G$O!"e(B

#ifndef HAVE\_RL\_FILENAME\_COMPLETION\_FUNCTION

# define rl\_filename\_completion\_function filename\_completion\_function

# define rl\_username\_completion\_function username\_completion\_function

# define rl\_completion\_matches completion\_matches

#endif

e$B$H$7$F$$$^$9!#e(BNetBSDe$B$Ne(Beditlinee$B%i%$%V%i%j$O!"e(BGNU  
readlinee$B$X$N8\_494X?t$re(B  
e$BMQ0U$7$F$$$^$9$,!“e(Brl\_filename\_completion\_function()e$B$O$”$k$b$N$N!“e(B  
rl\_username\_completion\_function()e$B$de(Brl\_completion\_matches()e$B$O$”$j$^$;$s!#e(B  
(NetBSD  
3.xe$B$^$G$O!“e(Brl\_filename\_completion\_function()e$B$b$”$j$^$;$s$G$7$?!#e(B)

e$B8DJL$K$=$l$\>$l$N4X?t$r%A%’%C%/$9$k$h$&$K$7$F!"$3$NLdBj$O2sHr$G$-$^$9!#e(B  
(extconf.rbe$B$NJ}$O9THV9f$,$A$g$C$H$:$l$F$$$^$9!#e(B)

— extconf.rb.orig 2005-05-25 22:01:56.000000000 +0900  
+++ extconf.rb  
@@ -43,6 +40,8 @@ else  
end

have\_readline\_var(“rl\_filename\_completion\_function”)  
+have\_readline\_var(“rl\_username\_completion\_function”)  
+have\_readline\_var(“rl\_completion\_matches”)  
have\_readline\_var(“rl\_deprep\_term\_function”)  
have\_readline\_var(“rl\_completion\_append\_character”)  
have\_readline\_var(“rl\_basic\_word\_break\_characters”)

— readline.c.orig 2006-08-07 18:01:27.000000000 +0900  
+++ readline.c  
@@ -34,7 +34,11 @@ static ID completion\_proc, completion\_ca

#ifndef HAVE\_RL\_FILENAME\_COMPLETION\_FUNCTION

# define rl\_filename\_completion\_function filename\_completion\_function

+#endif  
+#ifndef HAVE\_RL\_USERNAME\_COMPLETION\_FUNCTION

# define rl\_username\_completion\_function username\_completion\_function

+#endif  
+#ifndef HAVE\_RL\_COMPLETION\_MATCHES

# define rl\_completion\_matches completion\_matches

#endif
