emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file sizes shown incorrectly for large files under Windows


From: Eli Zaretskii
Subject: Re: file sizes shown incorrectly for large files under Windows
Date: Thu, 13 Nov 2003 22:13:35 +0200

> From: Chris Moore <address@hidden>
> Date: Thu, 13 Nov 2003 17:10:35 +0100
> 
> Further investigation shows that it's emacs/src/s/ms-w32.h that
> includes stat.h for w32.c.
> 
> However, other source files (buffer.c, for example) include <stat.h>
> and call stat() directly.  It makes no sense for us to modify 'struct
> stat' if we don't modify the stat() function as well, does it?

The function `stat' is defined on w32.c, and that definition overrides
the one from the Windows runtime.  If we modify the version of `stat'
on w32.c, this problem is taken care of, right?

For files such as buffer.c, I suggest to include s/ms-w32.h, and add
to that header the necessary magic to redefine `struct stat'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]