Commit b76d3352 by Dave Love Committed by Dave Love

1998-09-06 Dave Love <d.love@dl.ac.uk>

	From Toon to fix spurious recursive i/o errors:
	* libI77/sfe.c (e_wdfe): Set f__init.
	* libI77/dfe.c (c_dfe): Check and set f__init.
	(s_rdfe, s_wdfe): Don't check and set f__init.

From-SVN: r22294
parent 114791ea
1998-09-06 Dave Love <d.love@dl.ac.uk>
From Toon to fix spurious recursive i/o errors:
* libI77/sfe.c (e_wdfe): Set f__init.
* libI77/dfe.c (c_dfe): Check and set f__init.
(s_rdfe, s_wdfe): Don't check and set f__init.
Fri Sep 4 18:40:32 1998 Craig Burley <burley@gnu.org> Fri Sep 4 18:40:32 1998 Craig Burley <burley@gnu.org>
* libU77/sys_clock_.c (G77_system_clock_0): Fix indentation. * libU77/sys_clock_.c (G77_system_clock_0): Fix indentation.
......
...@@ -66,6 +66,8 @@ c_dfe(a) cilist *a; ...@@ -66,6 +66,8 @@ c_dfe(a) cilist *a;
c_dfe(cilist *a) c_dfe(cilist *a)
#endif #endif
{ {
if(f__init != 1) f_init();
f__init = 3;
f__sequential=0; f__sequential=0;
f__formatted=f__external=1; f__formatted=f__external=1;
f__elist=a; f__elist=a;
...@@ -92,8 +94,6 @@ integer s_rdfe(cilist *a) ...@@ -92,8 +94,6 @@ integer s_rdfe(cilist *a)
#endif #endif
{ {
int n; int n;
if(f__init != 1) f_init();
f__init = 3;
f__reading=1; f__reading=1;
if(n=c_dfe(a))return(n); if(n=c_dfe(a))return(n);
if(f__curunit->uwrt && f__nowreading(f__curunit)) if(f__curunit->uwrt && f__nowreading(f__curunit))
...@@ -115,8 +115,6 @@ integer s_wdfe(cilist *a) ...@@ -115,8 +115,6 @@ integer s_wdfe(cilist *a)
#endif #endif
{ {
int n; int n;
if(f__init != 1) f_init();
f__init = 3;
f__reading=0; f__reading=0;
if(n=c_dfe(a)) return(n); if(n=c_dfe(a)) return(n);
if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit)) if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
......
...@@ -35,5 +35,6 @@ integer e_wsfe(Void) ...@@ -35,5 +35,6 @@ integer e_wsfe(Void)
integer e_wdfe(Void) integer e_wdfe(Void)
{ {
f__init = 1;
return en_fio(); return en_fio();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment