View | Details | Raw Unified | Return to bug 37940
Collapse All | Expand All

(-)atlast/files/patch-atlast.c (+24 lines)
Line 0 Link Here
1
--- atlast.c.orig	Fri May 10 23:18:47 2002
2
+++ atlast.c	Fri May 10 23:36:28 2002
3
@@ -3243,14 +3243,17 @@
4
 	{   static struct {
5
 		char *sfn;
6
 		FILE *sfd;
7
-	    } stdfiles[] = {
8
-                {"STDIN", stdin},
9
-                {"STDOUT", stdout},
10
-                {"STDERR", stderr}
11
+	    } stdfiles[] = {
12
+                {"STDIN", NULL},
13
+                {"STDOUT", NULL},
14
+                {"STDERR", NULL}
15
 	    };
16
 	    int i;
17
 	    dictword *dw;
18
 
19
+	    stdfiles[0].sfd = stdin;
20
+	    stdfiles[1].sfd = stdout;
21
+	    stdfiles[2].sfd = stderr;
22
 	    for (i = 0; i < ELEMENTS(stdfiles); i++) {
23
 		if ((dw = atl_vardef(stdfiles[i].sfn,
24
 			2 * sizeof(stackitem))) != NULL) {

Return to bug 37940