annotate lib/fseterr.h @ 10256:af15fcca9925

getdate.y: do not ignore TZ with relative day, month or year offset * lib/getdate.y (get_date): Move the tz-handling block to follow the relative-date-handling, since otherwise, the latter would clobber the sole output (an updated Start value) of the tz-handling block. * tests/test-getdate.c: Tests for the fix
author Ondřej Vašík <ovasik@redhat.com>
date Thu, 03 Jul 2008 12:17:11 +0200
parents bbbbbf4cd1c5
children b5e42ef33b49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8387
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Set the error indicator of a stream.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2007 Free Software Foundation, Inc.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 8387
diff changeset
4 This program is free software: you can redistribute it and/or modify
8387
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 8387
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 8387
diff changeset
7 (at your option) any later version.
8387
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 8387
diff changeset
14 You should have received a copy of the GNU General Public License
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 8387
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
8387
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 #ifndef _FSETERR_H
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #define _FSETERR_H
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <stdio.h>
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #ifdef __cplusplus
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 extern "C" {
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #endif
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 /* Set the error indicator of the stream FP.
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 The "error indicator" is set when an I/O operation on the stream fails, and
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 is cleared (together with the "end-of-file" indicator) by clearerr (FP). */
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 extern void fseterr (FILE *fp);
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 #ifdef __cplusplus
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 }
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 #endif
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36
1ce2ba0b442c New module 'fseterr'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 #endif /* _FSETERR_H */