aboutsummaryrefslogtreecommitdiffstats
path: root/lib/readline/tilde.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline/tilde.h')
-rw-r--r--lib/readline/tilde.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/readline/tilde.h b/lib/readline/tilde.h
index 6f0898c..634b954 100644
--- a/lib/readline/tilde.h
+++ b/lib/readline/tilde.h
@@ -33,6 +33,12 @@ typedef char *CPFunction ();
typedef char **CPPFunction ();
#endif /* _FUNCTION_DEF */
+/* If non-null, this contains the address of a function that the application
+ wants called before trying the standard tilde expansions. The function
+ is called with the text sans tilde, and returns a malloc()'ed string
+ which is the expansion, or a NULL pointer if the expansion fails. */
+extern CPFunction *tilde_expansion_preexpansion_hook;
+
/* If non-null, this contains the address of a function to call if the
standard meaning for expanding a tilde fails. The function is called
with the text (sans tilde, as in "foo"), and returns a malloc()'ed string