[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Problem with test mode of getdate.y
From: |
Paul Eggert |
Subject: |
Re: [Bug-gnulib] Problem with test mode of getdate.y |
Date: |
Wed, 28 Apr 2004 22:53:32 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Derek Robert Price <address@hidden> writes:
> Does this mean unlocked-io.h should #include stdio.h?
Yes, but unlocked-io.h does include stdio.h, as of
gnulib/lib/unlocked-io.h revision 1.3 (dated 2003-10-08).
Are you using the current gnulib version of unlocked-io.h?
(It's dated 2004-01-16.)
I suppose it's possible that your compiler rejects this sort of thing:
// This is what unlocked-io.h does:
#include <stdio.h>
#undef getchar
#define getchar() getchar_unlocked ()
// This is what getdate.y does after including unlocked-io.h:
#include <stdio.h>
The C standard allows a compiler to reject this sort of thing, but I
don't know any implementation that does reject it, and I'd rather not
worry about it if it's not a real problem. (If it is a real problem,
we also need to fix regex.c and perhaps some other code.)