From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>,
<zsh-workers@sunsite.dk>
Subject: Re: Cygwin failure RE: PATCH: check deleted .zwc files
Date: Sat, 9 Jun 2001 17:42:54 +0000 [thread overview]
Message-ID: <1010609174254.ZM19101@candle.brasslantern.com> (raw)
In-Reply-To: <002001c0f0cb$b2a32ec0$21c9ca95@mow.siemens.ru>
On Jun 9, 2:05pm, Andrej Borsenkow wrote:
} Subject: Cygwin failure RE: PATCH: check deleted .zwc files
}
} gcc -c -I. -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -ggdb
} -o parse.o /tools/src/zsh/Src/parse.c
} /tools/src/zsh/Src/parse.c: In function `try_dump_file':
} /tools/src/zsh/Src/parse.c:2858: `dumps' undeclared (first use in this
} function)
}
} dumps is defined under USE_MMAP that is not defined on Cygwin (we do not
} support memory mapping here).
There's no mention of FuncDump objects anywhere outside parse.c, and no
reason that I can tell for putting zwcstat() into utils.c, and therefore
also no reason to export it.
Index: Src/parse.c
===================================================================
RCS file: /extra/cvsroot/zsh/zsh-4.0/Src/parse.c,v
retrieving revision 1.3
diff -u -r1.3 parse.c
--- parse.c 2001/06/09 17:29:35 1.3
+++ parse.c 2001/06/09 17:38:14
@@ -2775,6 +2775,24 @@
static FuncDump dumps;
+/**/
+static int
+zwcstat(char *filename, struct stat *buf, FuncDump dumps)
+{
+ FuncDump f;
+
+ if (stat(filename, buf)) {
+#ifdef HAVE_FSTAT
+ for (f = dumps; f; f = f->next) {
+ if (!strncmp(filename, f->filename, strlen(f->filename)) &&
+ !fstat(f->fd, buf))
+ return 0;
+ }
+#endif
+ return 1;
+ } else return 0;
+}
+
/* Load a dump file (i.e. map it). */
static void
@@ -2829,6 +2847,10 @@
d->count = 0;
d->filename = ztrdup(dump);
}
+
+#else
+
+#define zwcstat(f, b, d) stat(f, b)
#endif
Index: Src/utils.c
===================================================================
RCS file: /extra/cvsroot/zsh/zsh-4.0/Src/utils.c,v
retrieving revision 1.5
diff -u -r1.5 utils.c
--- utils.c 2001/06/09 17:29:35 1.5
+++ utils.c 2001/06/09 17:33:41
@@ -3830,22 +3830,3 @@
return 0;
}
#endif
-
-/**/
-mod_export int
-zwcstat(char *filename, struct stat *buf, FuncDump dumps)
-{
- FuncDump f;
-
- if (stat(filename, buf)) {
-#ifdef HAVE_FSTAT
- for (f = dumps; f; f = f->next) {
- if (!strncmp(filename, f->filename, strlen(f->filename)) &&
- !fstat(f->fd, buf))
- return 0;
- }
-#endif
- return 1;
- } else return 0;
-
-}
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2001-06-09 17:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-08 18:17 Clint Adams
2001-06-08 18:50 ` Bart Schaefer
2001-06-08 19:04 ` Clint Adams
2001-06-08 19:46 ` Bart Schaefer
2001-06-08 19:53 ` Clint Adams
2001-06-09 5:37 ` Andrej Borsenkow
2001-06-10 11:11 ` Clint Adams
2001-06-09 20:58 ` Bart Schaefer
2001-06-10 11:34 ` Clint Adams
2001-06-13 5:03 ` Bart Schaefer
2001-06-13 8:59 ` Sven Wischnowsky
2001-06-13 10:22 ` Bart Schaefer
2001-06-18 7:31 ` Sven Wischnowsky
2001-06-09 10:05 ` Cygwin failure " Andrej Borsenkow
2001-06-09 17:42 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1010609174254.ZM19101@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).