unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* scm_def_{in,out,err}p
@ 2002-04-13 19:25 Christopher Cramer
  2002-04-13 21:23 ` scm_def_{in,out,err}p Gary Houston
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Cramer @ 2002-04-13 19:25 UTC (permalink / raw)


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).

-- 
Christopher Cramer <crayc@pyro.net> <http://www.pyro.net/~crayc/>
Quoi que vous fassiez, écrasez l'infâme, et aimez qui vous aime.
	-- Voltaire

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: scm_def_{in,out,err}p
  2002-04-13 19:25 scm_def_{in,out,err}p Christopher Cramer
@ 2002-04-13 21:23 ` Gary Houston
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Houston @ 2002-04-13 21:23 UTC (permalink / raw)
  Cc: guile-devel

> From: Christopher Cramer <crayc@pyro.net>
> 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.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-13 21:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-13 19:25 scm_def_{in,out,err}p Christopher Cramer
2002-04-13 21:23 ` scm_def_{in,out,err}p Gary Houston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).