Commit Graph
7101 Commits
Author SHA1 Message Date
Jim Meyering bd4a3f044d *** empty log message *** 1999-08-29 14:37:40 +00:00
Jim Meyering 13bc9dcc35 (test_vector): Add tests for use of `this'. 1999-08-29 14:36:48 +00:00
Jim Meyering 6b840273e0 (get_date): Rename latter local `tm' to probe_tm. 1999-08-29 12:55:35 +00:00
Jim Meyering 9f92dfbf90 (get_date): Rename outermost local probe' to quarter'. 1999-08-29 12:28:56 +00:00
Jim Meyering 26656272e8 Add copyright notice.
(number): Handle `Nov 11 1996' example; see Risks Digest 20.55
http://catless.ncl.ac.uk/Risks/20.55.html#subj18
(1999-08-27)

(<stdio.h>): Include only if testing.
(ISUPPER): Remove.
(ISLOWER, PC): New macros.
(<string.h>): Include if HAVE_STRING_H, not USG.
(bcopy): Remove.
(yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
bison.
(EPOCH_YEAR): Renamed from EPOCH.
(table): Renamed from TABLE.
(meridian): Now an anonymous enum.
(struct parser_control): New type.
(YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
(yyInput, ..., yyRelYear): Migrated into struct parser_control.
(%pure_parser): Added, so that the parser is pure.
(%union): Removed; the type is now just plain int.
All %type directives removed.
(tLOCAL_ZONE): New %token.
(month_day_table): Renamed from MonthDayTable.
(gmtime, localtime, mktime, time): Declare only if not defined.
(meridian_table): New table.
(dst_table): New table.
(units_table): renamed from UnitsTable.
(relative_time_table): Renamed from OtherTable.
(time_zone_table): Renamed from TimezoneTable.  Modernized data.
(military_table): Renamed from MilitaryTable.
(to_hour): Renamed from ToHour.
(to_year): Renamed from ToYear.
(lookup_zone): New function.
(LookupWord): Renamed from lookup_word.
Use lookup_zone for time zones.
(yylex): Now reentrant.  All callers changed.
(get_date): Add support for local time zone abbreviations.
Make it reentrant.
1999-08-29 07:29:51 +00:00
Jim Meyering 948cf23537 *** empty log message *** 1999-08-25 15:41:52 +00:00
Jim Meyering 2395e90973 *** empty log message *** 1999-08-22 16:28:45 +00:00
Jim Meyering bb6f5c5913 *** empty log message *** 1999-08-22 16:28:26 +00:00
Jim Meyering d1b7514e91 *** empty log message *** 1999-08-22 16:23:28 +00:00
Jim Meyering 53e173cca6 (detect_loop): There's no loop if k->top is NULL. 1999-08-22 16:10:24 +00:00
Jim Meyering 5157fd957e Add a few more tests. 1999-08-22 16:09:29 +00:00
Jim Meyering d39e2c5127 *** empty log message *** 1999-08-22 15:58:28 +00:00
Jim Meyering 80e8a30f39 *** empty log message *** 1999-08-22 15:58:06 +00:00
Jim Meyering 83d003e558 Rewrite to use Fetish.pm-based framework. 1999-08-22 15:55:41 +00:00
Jim Meyering 9715e45a87 *** empty log message *** 1999-08-22 15:54:35 +00:00
Jim Meyering 5d3b030798 . 1999-08-22 15:53:59 +00:00
Jim Meyering 19a165cc9c tweak comment 1999-08-22 11:34:56 +00:00
Jim Meyering 7a7ef5ff5b (check_file): Explain why we have separate if' and else'
blocks when the code in the else block could handle both cases.
1999-08-22 11:31:08 +00:00
Jim Meyering 2638bf642c *** empty log message *** 1999-08-22 11:17:47 +00:00
Jim Meyering 9503681d86 (check_file): Generate each line of output earlier,
when possible.  It is possible when using none of these options:
--count, -repeated, --all-repeated, --unique.
Based on a patch from Ian Turner.

(check_file): Move declarations of local variables into the scopes where used.
(min): Remove macro definition.
(different): Use MIN, not min.
(SWAP_LINES): New macro.
(check_file): Use it here.
1999-08-22 11:17:42 +00:00
Jim Meyering 7d8102bec2 . 1999-08-22 11:04:23 +00:00
Jim Meyering b980775bb6 *** empty log message *** 1999-08-22 11:03:57 +00:00
Jim Meyering b96c6c60eb *** empty log message *** 1999-08-22 11:03:32 +00:00
Jim Meyering 7de78927ed Escape backslashes so tr's manual comes out right.
Reported by Andreas Schwab.
1999-08-22 11:02:39 +00:00
Jim Meyering 7a44e716a4 *** empty log message *** 1999-08-22 10:58:31 +00:00
Jim Meyering 95b8288176 (ATTRIBUTE_NORETURN): Define. 1999-08-22 10:57:51 +00:00
Jim Meyering 5a2d528081 Use ATTRIBUTE_NORETURN instead of NO_RETURN_ATTRIBUTE. 1999-08-22 10:57:40 +00:00
Jim Meyering 8ab42dc273 *** empty log message *** 1999-08-22 10:53:37 +00:00
Jim Meyering 705cf20084 (run_shell): Declare with noreturn attribute.
Use an explicit exit(1) rather than doing that through error.
1999-08-22 10:53:13 +00:00
Jim Meyering fc08f1058a *** empty log message *** 1999-08-22 10:22:06 +00:00
Jim Meyering a343e68e00 (main): Rename locals i and j.
Use IF_LINT macro instead of #ifdef lint...
1999-08-22 10:21:36 +00:00
Jim Meyering e8e722d58e *** empty log message *** 1999-08-22 10:19:56 +00:00
Jim Meyering 8313e867b2 (validate_path): Use IF_LINT macro instead of #ifdef lint. 1999-08-22 10:19:35 +00:00
Jim Meyering 4dac9be014 (batch_convert): Use IF_LINT macro instead of #ifdef lint. 1999-08-22 10:19:15 +00:00
Jim Meyering 46554e300b (dump): Use IF_LINT macro instead of #ifdef lint...
(main): Likewise.
1999-08-22 09:51:20 +00:00
Jim Meyering 8b5ed0399d (paste_parallel): Use IF_LINT macro instead of #ifdef lint... 1999-08-22 09:50:56 +00:00
Jim Meyering e11d70c362 (read_line): Use IF_LINT macro instead of #ifdef lint... 1999-08-22 09:50:31 +00:00
Jim Meyering 005c36b178 (checkfp): Use IF_LINT macro instead of #ifdef lint...
(mergefps): Likewise.
1999-08-22 09:50:05 +00:00
Jim Meyering 0e3b9af25b (usage): Correct bug-reporting email address.
(tsort): Remove trailing `\n' in error format.
1999-08-22 09:45:52 +00:00
Jim Meyering 1ec1017a23 (IF_LINT): Define new macro. 1999-08-22 09:43:48 +00:00
Jim Meyering bab0581788 (md5_check): Remove trailing `\n' in error format. 1999-08-22 09:43:25 +00:00
Jim Meyering e23b334713 (SWAP_LINES): New macro.
(check_file): Use it here.

[really remove min macro, this time]
1999-08-22 08:57:37 +00:00
Jim Meyering 475a58337a (writeline): Constify a char*. 1999-08-22 08:48:45 +00:00
Jim Meyering 1195909f5d (cksum): Constify a char*. 1999-08-22 08:48:06 +00:00
Jim Meyering 0c44307f3b *** empty log message *** 1999-08-22 08:47:00 +00:00
Jim Meyering 138cf56fdb (parse_integer): Add `const' to char* parameter and
add a separate `suffix' variable.
1999-08-22 08:46:33 +00:00
Jim Meyering a711e8e132 (check_file): Move declarations of local variables
into the scopes where they're used.
(min): Remove macro definition.
(different): Use MIN, not min.
1999-08-22 08:16:34 +00:00
Jim Meyering e32013660e *** empty log message *** 1999-08-21 20:26:25 +00:00
Jim Meyering b4e8324ac2 (usage): Remove the ` [-v]' from the Usage: line. 1999-08-21 20:26:18 +00:00
Jim Meyering 03455da71a import latest 1999-08-20 10:05:46 +00:00