summaryrefslogtreecommitdiff
path: root/guile-readline/readline.c
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2004-07-10 15:25:01 +0000
committerMarius Vollmer <mvo@zagadka.de>2004-07-10 15:25:01 +0000
commitbe49d1df07370f215e90bfee1aa86643a9da5545 (patch)
treefdeada98a44ed878c8db340747f82ba8d822d44a /guile-readline/readline.c
parent0523f1c0d87d8a9069090bc1021ddb18dfa55de2 (diff)
downloadguile-be49d1df07370f215e90bfee1aa86643a9da5545.tar.gz
Replaced all uses of deprecated SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,
SCM_NEGATE_BOOL, and SCM_BOOLP with scm_is_false, scm_is_true, scm_from_bool, and scm_is_bool, respectively. Thanks to Andreas Vögele!
Diffstat (limited to 'guile-readline/readline.c')
-rw-r--r--guile-readline/readline.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/guile-readline/readline.c b/guile-readline/readline.c
index 1c4b3eee3..9f7b39df0 100644
--- a/guile-readline/readline.c
+++ b/guile-readline/readline.c
@@ -136,7 +136,7 @@ static SCM before_read;
static int
current_input_getc (FILE *in SCM_UNUSED)
{
- if (promptp && !SCM_FALSEP (before_read))
+ if (promptp && scm_is_true (before_read))
{
scm_apply (before_read, SCM_EOL, SCM_EOL);
promptp = 0;
@@ -190,9 +190,9 @@ SCM_DEFINE (scm_readline, "%readline", 0, 4, 0,
SCM_EOL);
}
- if (!(SCM_UNBNDP (read_hook) || SCM_FALSEP (read_hook)))
+ if (!(SCM_UNBNDP (read_hook) || scm_is_false (read_hook)))
{
- if (!(SCM_NFALSEP (scm_thunk_p (read_hook))))
+ if (scm_is_false (scm_thunk_p (read_hook)))
{
--in_readline;
scm_wrong_type_arg (s_scm_readline, SCM_ARG4, read_hook);
@@ -377,9 +377,9 @@ SCM_DEFINE (scm_filename_completion_function, "filename-completion-function", 2,
SCM ans;
SCM_VALIDATE_STRING (1,text);
#ifdef HAVE_RL_FILENAME_COMPLETION_FUNCTION
- s = rl_filename_completion_function (SCM_STRING_CHARS (text), SCM_NFALSEP (continuep));
+ s = rl_filename_completion_function (SCM_STRING_CHARS (text), scm_is_true (continuep));
#else
- s = filename_completion_function (SCM_STRING_CHARS (text), SCM_NFALSEP (continuep));
+ s = filename_completion_function (SCM_STRING_CHARS (text), scm_is_true (continuep));
#endif
ans = scm_makfrom0str (s);
free (s);
@@ -400,15 +400,15 @@ completion_function (char *text, int continuep)
SCM compfunc = SCM_VARIABLE_REF (scm_readline_completion_function_var);
SCM res;
- if (SCM_FALSEP (compfunc))
+ if (scm_is_false (compfunc))
return NULL; /* #f => completion disabled */
else
{
SCM t = scm_makfrom0str (text);
- SCM c = continuep ? SCM_BOOL_T : SCM_BOOL_F;
+ SCM c = scm_from_bool (continuep);
res = scm_apply (compfunc, scm_list_2 (t, c), SCM_EOL);
- if (SCM_FALSEP (res))
+ if (scm_is_false (res))
return NULL;
if (!SCM_STRINGP (res))