[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gozilla -d
From: |
Hideki IWAMOTO |
Subject: |
Re: gozilla -d |
Date: |
Tue, 22 Apr 2003 21:22:12 +0900 |
On Thu, 03 Apr 2003 02:22:39 +0900, Shigio Yamaguchi wrote...
> ***************
> *** 323,329 ****
> }
> dbop_close(dbop);
> } else {
> ! STRBUF *sb = strbuf_open(0);
> FILE *fp;
>
> fp = fopen(path, "r");
> --- 324,330 ----
> }
> dbop_close(dbop);
> } else {
> ! sb = strbuf_open(0);
> FILE *fp;
>
> fp = fopen(path, "r");
This makes it impossible to compile with old compiler which does not support
C99.
Index: gozilla/gozilla.c
===================================================================
RCS file: /cvsroot/global/global/gozilla/gozilla.c,v
retrieving revision 1.20
diff -u -r1.20 gozilla.c
--- gozilla/gozilla.c 2 Apr 2003 17:21:19 -0000 1.20
+++ gozilla/gozilla.c 22 Apr 2003 12:11:03 -0000
@@ -324,9 +324,9 @@
}
dbop_close(dbop);
} else {
- sb = strbuf_open(0);
FILE *fp;
+ sb = strbuf_open(0);
fp = fopen(path, "r");
if (fp) {
while ((p = strbuf_fgets(sb, fp, STRBUF_NOCRLF)) !=
NULL) {
----
Hideki IWAMOTO address@hidden