guile-devel
[Top][All Lists]
Advanced

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

Re: scm_def_{in,out,err}p


From: Gary Houston
Subject: Re: scm_def_{in,out,err}p
Date: 13 Apr 2002 22:23:19 +0100

> From: Christopher Cramer <address@hidden>
> Date: Sat, 13 Apr 2002 14:25:32 -0500

> In root.h, there are declarations for 7 ports, that exist for every
> thread:
> 
>   SCM cur_inp;
>   SCM cur_outp;
>   SCM cur_errp;
>   SCM def_inp;
>   SCM def_outp;
>   SCM def_errp;
>   SCM cur_loadp;
> 
> and then macros to access them:
> 
> #define scm_cur_inp                     (scm_root->cur_inp)
> #define scm_cur_outp                    (scm_root->cur_outp)
> #define scm_cur_errp                    (scm_root->cur_errp)
> #define scm_def_inp                     (scm_root->def_inp)
> #define scm_def_outp                    (scm_root->def_outp)
> #define scm_def_errp                    (scm_root->def_errp)
> #define scm_cur_loadp                   (scm_root->cur_loadp)
> 
> The purpose of scm_cur_* is obvious, but what are scm_def_*
> for? The only place they are used is in init.c, and there they
> are only written to. They also don't seem to be documented 
> anywhere (not in the manual, or in any comments, changelogs,
> NEWS, or README).

They are inherited from SCM, where they are used in the readline
interface.  Since they aren't used in Guile, I guess I'll delete
them in 1.7.0.




reply via email to

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