Debian Codegraph @

src/ChangeLog

raw
1 2022-02-03 Thien-Thi Nguyen <[email protected]>
2
3 Release: 5.10.1
4
5 2022-01-31 Thien-Thi Nguyen <[email protected]>
6
7 [int] Use ‘ATTRIBUTE_FORMAT’ from gnulib module ‘attribute’
8
9 * base.h (printf_string): Use
10 ‘ATTRIBUTE_FORMAT’; define unconditionally.
11
12 2022-01-31 Thien-Thi Nguyen <[email protected]>
13
14 [int] Use ‘ATTRIBUTE_NONNULL’ from gnulib module ‘attribute’
15
16 * base.h (ARG_NONNULL, ALL_NONNULL): Use ‘ATTRIBUTE_NONNULL’.
17
18 2022-01-31 Thien-Thi Nguyen <[email protected]>
19
20 [int] Use ‘MAYBE_UNUSED’ from gnulib module ‘attribute’
21
22 * base.h: #include "attribute.h".
23 (RCS_UNUSED): ...here, instead of ‘_GL_UNUSED’.
24
25 2022-01-27 Thien-Thi Nguyen <[email protected]>
26
27 rlog: Handle unexpected byte in edit script
28
29 Reported by Ray Bellis:
30 https://mail.gnu.org/r/bug-rcs/2022-01/msg00000.html
31
32 * rlog.c (count_a_d): If the edit script stanza
33 does not start w/ the expected 'a' or 'd' dispatch,
34 display error message with diagnostic and abort.
35
36 2022-01-27 Thien-Thi Nguyen <[email protected]>
37
38 [int] Move USED_IF_HAVE_MADVISE to beginning of param decl
39
40 * b-fro.c (fro_trundling): ...here, for arg ‘sequential’.
41
42 2021-04-05 Paul Eggert <[email protected]>
43
44 [int] Don’t use SIGSTKSZ in #if
45 Problem reported by Christoph Karl in:
46 https://lists.gnu.org/r/bug-rcs/2021-04/msg00000.html
47 * b-isr.c (ISR_STACK_SIZE): Remove.
48 (isr_init): Don’t assume SIGSTKSZ is a preprocessor constant.
49
50 2020-10-24 Thien-Thi Nguyen <[email protected]>
51
52 [int] Use ‘NULL’ instead of '\0'.
53
54 This addresses a warning reported by clang in Hydra build
55 <https://hydra.nixos.org/build/128950484/log>.
56
57 * co.c (buildjoin): ...here.
58 * rcs.c (buildeltatext): Likewise.
59 * rcsdiff.c (rcsdiff_main): Likewise.
60
61 2020-10-23 Thien-Thi Nguyen <[email protected]>
62
63 [int] Rewrite "conditional literal" as ‘if’ statement.
64
65 This addresses the error reported by clang in Hydra build
66 <https://hydra.nixos.org/build/128899024/log>.
67
68 * b-excwho.c (set_uid_to): Rewrite "STRING" + CONDITIONAL-OFFSET
69 construct as arg to ‘PFATAL’, as an ‘if’ statement w/ two separate
70 string literals in two separate ‘PFATAL’ calls.
71
72 2020-10-20 Thien-Thi Nguyen <[email protected]>
73
74 Release: 5.10.0
75
76 2019-10-28 Thien-Thi Nguyen <[email protected]>
77
78 [int] Declare ‘die’ to be ‘exiting’.
79
80 * b-complain.c (die): ...here.
81
82 2019-10-28 Thien-Thi Nguyen <[email protected]>
83
84 [int] Assume 2nd arg to ‘reap’ is non-NULL.
85
86 * b-feph.c (reap): Remove NULL check, early return.
87
88 2019-10-27 Thien-Thi Nguyen <[email protected]>
89
90 Fix bug: Include trailing slash in default ‘-x’ value.
91
92 Regression introduced 2010-03-03, "Reduce
93 dependency-transitivity of src/Makefile variables."
94
95 * rcsutil.c (gnurcs_init): ...here, for ‘BE (pe)’.
96
97 2019-10-15 Thien-Thi Nguyen <[email protected]>
98
99 [int] Declare ‘valid_filename_p’ static.
100
101 Omission from 2018-04-25, "Add abstraction: get_cwd_filenames".
102
103 * rcsclean.c (valid_filename_p): ...here.
104
105 2018-06-27 Thien-Thi Nguyen <[email protected]>
106
107 [int C] Remove ‘ALL_NONNULL’ decl from ‘fro_close’.
108
109 Oversight from 2018-04-03, "Add {ALL,ARG}_NONNULL to func decls".
110
111 * b-fro.h (fro_close): ...here.
112
113 2018-06-27 Thien-Thi Nguyen <[email protected]>
114
115 [C int] Add cast to ‘size_t’.
116
117 This avoids a GCC 4.9 warning.
118
119 * rcsgen.c (putstring): ...here,
120 for computing ‘span’ when ‘delim’ is non-NULL.
121
122 2018-06-01 Thien-Thi Nguyen <[email protected]>
123
124 [int] Arrange for ‘FULLDATESIZE’ + 1 to be 32.
125
126 * base.h (DATESIZE): Bump down year component to 6.
127
128 2018-04-29 Thien-Thi Nguyen <[email protected]>
129
130 [C int] Replace some ‘if’..‘else’ assignments w/ ‘?:’.
131
132 * ci.c (ci_main): ...here, for ‘bud.d.author’, ‘bud.d.state’.
133 * co.c (co_main): Likewise, for ‘author’.
134 * rcs.c (removerevs): Likewise, for ‘dc->cuttail’.
135 * rlog.c (getnumericrev): Likewise, for ‘e.string’.
136
137 2018-04-29 Thien-Thi Nguyen <[email protected]>
138
139 [C int] Remove unnecessary ‘else’.
140
141 * rcsfnms.c (isSLASH): ...here, after ‘return’ in THEN branch.
142
143 2018-04-29 Thien-Thi Nguyen <[email protected]>
144
145 [C int] Use ‘strspn’, ‘strtok_r’ more.
146
147 * co.c (ks_hws): New static string.
148 (SKIP_HWS): New macro.
149 (addjoin): Skip horizontal ws at start of ‘spec’;
150 prior to returning ‘eot’, make it skip horizontal ws.
151 (preparejoin): Rename 1st arg to ‘argv’;
152 use ‘strtok_r’; use ‘SKIP_HWS’.
153
154 2018-04-29 Thien-Thi Nguyen <[email protected]>
155
156 [int] Simplify ‘co -j’ common ancestor logic.
157
158 The change 2010-04-27, "New abstractions: extend, wextend"
159 introduced a small logic optimization unrelated to its primary
160 purpose: Do search then push. In the case where the search
161 fails, the push is not necessary, anyway. However, in that
162 case, we require a ‘goto’.
163
164 This change (reversion) allows us to eliminate the ‘goto’.
165 As a tiny side benefit, doing the push first (unshadowed
166 by the result of the search) helps the coverage numbers.
167
168 * co.c (preparejoin): Revert the order of sub-operations
169 to push-search from search-push; on search failure, don't
170 bother w/ ‘goto’ as that is now implicit in the control flow.
171
172 2018-04-29 Thien-Thi Nguyen <[email protected]>
173
174 [int] Consolidate identical ‘RFATAL’ calls.
175
176 * co.c (preparejoin): Add label ‘incomplete’ to
177 second call; use ‘goto’ for first; restructure flow
178 slightly to check error condition earlier.
179
180 2018-04-29 Thien-Thi Nguyen <[email protected]>
181
182 [C int] Rewrite func ‘getaccessor’ to use ‘strtok_r’.
183
184 * rcs.c (ks_ws_comma): New static string.
185 (getaccessor): Rewrite.
186 (rcs_main): Update calls to ‘getaccessor’.
187
188 2018-04-29 Thien-Thi Nguyen <[email protected]>
189
190 [int] Add abstraction: tokenize
191
192 * rlog.c (ks_delims): New static string.
193 (PUSH): Move macro earlier in file; nfc.
194 (tokenize): New static func.
195 (getlocker, getauthor, getstate): Use ‘tokenize’.
196
197 2018-04-28 Thien-Thi Nguyen <[email protected]>
198
199 [C int] Rewrite func ‘addjoin’ to use ‘strcspn’.
200
201 * co.c (addjoin): Rewrite.
202
203 2018-04-27 Thien-Thi Nguyen <[email protected]>
204
205 rlog: Fix bug: For ‘-w’, default to user login.
206
207 Regression introduced 2010-05-03, "Use ‘struct link’ more".
208
209 * rlog.c (getauthor): Ensure list finalization
210 and outarg update also when no logins are specified.
211
212 2018-04-25 Thien-Thi Nguyen <[email protected]>
213
214 [int] Add abstraction: get_cwd_filenames
215
216 * rcsclean.c (get_directory): Delete func.
217 (valid_filename_p, get_cwd_filenames): New static funcs.
218 (rcsclean_main): Use ‘get_cwd_filenames’.
219
220 2018-04-23 Thien-Thi Nguyen <[email protected]>
221
222 [int C] Drop trailing "p" or "_p" from boolean var names.
223
224 M(NEW,OLD) ≡ "Rename member to NEW from OLD".
225 A(NEW,OLD) ≡ "Rename arg to NEW from OLD".
226 L(NEW,OLD) ≡ "Rename local var to NEW from OLD".
227 * base.h (struct behavior): M (unbuffered, unbufferedp).
228 (struct flow): M (erroneous, erroneousp).
229 * b-excwho.h (lock_memq): A (login, loginp).
230 * b-fro.h (fro_trundling): A (sequential, sequentialp).
231 (atat_display): A (ensure_end_nl, ensure_newline_p).
232 * maketime.h (struct maketimestuff):
233 M (tzset_already_called, tzset_called_p).
234 * b-complain.c (unbuffer_standard_error, vcomplain)
235 (ERRONEOUS_X): Update references.
236 * b-excwho.c (lock_memq): A (login, loginp).
237 * b-fro.c (fro_trundling): A (sequential, sequentialp).
238 (atat_display): A (ensure_end_nl, ensure_newline_p).
239 * b-grok.c (maybe_read_num): A (must_be_delta, must_be_delta_p).
240 (start_atat): A (blank, blankp).
241 (maybe_read_atat): L (newline, newlinep).
242 * ci.c (cleanup, ci_main): Update references.
243 * co.c (cleanup, buildjoin, co_main): Likewise.
244 * ident.c (match): L (subversion_style, svn_p).
245 * maketime.c (local_tm): Update references.
246 * merge.c (main): Likewise.
247 * rcs.c (struct adminstuff): M (headstate_changed, headstate_changed_p).
248 (cleanup, getstates, rcs_main): Update references.
249 * rcsclean.c (cleanup, rcsclean_main): Likewise.
250 * rcsdiff.c (struct unique): M (eqval_ok, eqval_p).
251 (minus_y, minus_D, longopt_maybe_p, cleanup)
252 (rcsdiff_main): Update references.
253 * rcsedit.c (naturalize): A (symbolic, symbolicp).
254 (rcswriteopen): L (symbolic, symbolicp).
255 (donerewrite): Update references.
256 * rcsfnms.c (pairnames): Likewise.
257 * rcsgen.c (getsstdin): L (discard, discardp);
258 L (dot_in_first_column, dot_in_first_column_p).
259 * rcskeep.c (sorry, badly_terminated, get0val)
260 (getval): A (save, savep).
261 (keepid, getoldkeys): Update references.
262 * rcsmerge.c (rcsmerge_main): Likewise.
263 * rlog.c (struct daterange): M (open_end, oep).
264 (cleanup): Update references.
265 (count_a_d): L (add, addp).
266 (extdate): L (open_end, oep); update references.
267 (getdatepair, rlog_main): Update references.
268
269 2018-04-22 Thien-Thi Nguyen <[email protected]>
270
271 [int] Use more descriptive local var, ‘NUM_EQ’ more.
272
273 * rcs.c (removerevs): ...here, to note revs are ‘different’.
274
275 2018-04-22 Thien-Thi Nguyen <[email protected]>
276
277 [int] Drop unused enum element in --help/--version processing.
278
279 * gnu-h-v.c (hv_option_values): Delete ‘hv_unrecognized’.
280 (check_hv): Don't bother handling ‘hv_unrecognized’.
281
282 2018-04-20 Thien-Thi Nguyen <[email protected]>
283
284 [int] Make ‘yesorno’ also output '?', answer choices, default answer.
285
286 * rcsgen.c (yesorno): ...here.
287 * ci.c (getlogmsg): Update call to ‘yesorno’.
288 * co.c (rmworkfile): Likewise.
289 * rcs.c (sendmail, buildtree): Likewise.
290
291 2018-04-20 Thien-Thi Nguyen <[email protected]>
292
293 [int] Make ‘exit_diff_trouble’ also output trailing newline.
294
295 * rcsutil.c (exit_diff_trouble): ...here,
296 after output of all other formatted args.
297 (runv): Update all callers.
298
299 2018-04-13 Thien-Thi Nguyen <[email protected]>
300
301 [int] Drop support for tracing allocation provenance.
302
303 * b-divvy.c (USED_FOR_DEBUG): Delete #define.
304 (alloc, zlloc): Drop 2nd arg ‘what’.
305 * b-divvy.h (alloc, zlloc): Likewise in func decls.
306 (ZLLOC, FALLOC, FZLLOC): Update macros accordingly.
307 * b-esds.c (STRUCTALLOC): Likewise.
308 * b-fro.c (fro_open): Update call to ‘alloc’.
309 * b-grok.c (STRUCTALLOC): Update macro accordingly.
310 (maybe_read_atat, make_hash_table, empty_repo, full):
311 Update calls to ‘alloc’, ‘zlloc’.
312 * b-isr.c (isr_init): Update call to ‘alloc’.
313 * b-kwxout.c (keyreplace): Likewise.
314 * rcsedit.c (naturalize): Likewise.
315 * rcsfnms.c (getfullRCSname): Likewise.
316 * rlog.c (count_a_d): Update call to ‘zlloc’.
317
318 2018-04-13 Thien-Thi Nguyen <[email protected]>
319
320 [int C] Add {ALL,ARG}_NONNULL to func decls.
321
322 * b-complain.h (vcomplain, complain, diagnose, syserror)
323 (generic_warn, generic_error, generic_fatal, fatal_syntax)
324 (fatal_sys): ...here, following arglist.
325 * b-divvy.h (make_space, alloc, zlloc, intern, brush_off)
326 (forget, accf, accumulate_byte, accs, finish_string, pointer_array)
327 (close_space): Likewise.
328 * b-esds.h (extend, wextend, prepend, wprepend): Likewise.
329 * b-excwho.h (stat_mine_p, caller_login_p, lock_memq, lock_on)
330 (lock_drop, addlock_maybe): Likewise.
331 * b-fb.h (testIerror, testOerror, fopen_safer, Ozclose, aflush)
332 (afputc, newline, aputs, aprintf): Likewise.
333 * b-feph.h (keepdirtemp): Likewise.
334 * b-fro.h (fro_open, fro_zclose, fro_close, fro_tello)
335 (fro_move, fro_try_getbyte, fro_must_getbyte, fro_trundling)
336 (fro_spew_partial, fro_spew, string_from_atat, atat_put)
337 (atat_display): Likewise.
338 * b-grok.h (empty_repo, grok_all, grok_resynch): Likewise.
339 * b-isr.h (isr_init, access_page, isr_do): Likewise.
340 * b-kwxout.h (expandline): Likewise.
341 * b-peer.h (one_beyond_last_dir_sep, find_peer_prog): Likewise.
342 * base.h (looking_at, , recognize_kwsub, str2expmode)
343 (recognize_keyword, merge, unmake_editstuff, un_link)
344 (snapshotedit, copystring, enterstring, rcswriteopen)
345 (chnamemod, setmtime, findlock, addsymbol, initdiffcmd)
346 (getdiffcmd, rcsfcmp, basefilename, rcssuffix, rcsreadopen)
347 (pairnames, buildrevision, cleanlogmsg, yesorno, putdesc)
348 (getsstdin, format_assocs, format_locks, puttree, putdtext)
349 (putstring, putdftext, checkid, checksym, checksid, checkssym)
350 (take, cmpnumfld, cmpdate, compartial, genrevs, gr_revno)
351 (delta_from_ref, fully_numeric, namedrev, time2date, str2date)
352 (date2time, zone_set, date2str, gnurcs_init, bad_option)
353 (chk_set_rev, minus_p, parse_revpairs, set_empty_log_message)
354 (str_save, cgetenv, awrite, runv, setRCSversion, getRCSINIT)
355 (file_mtime): Likewise.
356 * gnu-h-v.h (nice_getopt, display_version, check_hv): Likewise.
357 * maketime.h (local_tm, difftm, str2time, tm2time)
358 (adjzone): Likewise.
359 * partime.h (partime, parzone): Likewise.
360
361 2018-04-11 Thien-Thi Nguyen <[email protected]>
362
363 Consider subsecond resolution for workfile-changed-during-checkin.
364
365 * ci.c (ci_main): Don't compare .st_mtime members directly;
366 instead, use ‘get_stat_mtime’, ‘timespec_cmp’.
367
368 2018-04-11 Thien-Thi Nguyen <[email protected]>
369
370 Fix bug 52288 part 2: Retain working file subsecond mtime.
371
372 The first part was incomplete; subsecond resolution mtime
373 was maintained for the RCS file, but not for the working file.
374
375 * ci.c: #include "stat-time.h".
376 (struct bud): Add member ‘work_mtime’.
377 (ci_main): Save full resolution work mtime in ‘bud.work_mtime’;
378 if given ‘-d’, use that value directly for ‘wtime’.
379
380 2018-04-11 Thien-Thi Nguyen <[email protected]>
381
382 Use subsecond resolution for atime given ‘-T’.
383
384 * base.h (behavior.now): Change type to ‘struct timespec’.
385 * ci.c (getcurdate): Use ‘now.tv_sec’.
386 * rcsedit.c (setmtime): Use ‘BE (now)’ for ‘amtime[0]’.
387 * rcstime.c (str2date): Use ‘now.tv_sec’.
388 * rcsutil.c (gnurcs_init): Use ‘gettime’ to init ‘BE (now)’.
389
390 2018-04-09 Thien-Thi Nguyen <[email protected]>
391
392 Fix bug 52288: Make ‘-T’ support subsecond resolution.
393
394 The ‘donerewrite’ arg rename was an omission from
395 2018-04-01, "Rename ‘donerewrite’ second arg".
396
397 * base.h (chnamemod, setmtime): Change type
398 of arg ‘mtime’ to ‘const struct timespec’.
399 (donerewrite): Likewise, renaming second arg from
400 ‘newRCStime’ to ‘mtime’.
401 (file_mtime): Change return type to ‘struct timespec’.
402 * ci.c: #include "timespec.h".
403 (fixwork): Change type of arg ‘mtime’ to ‘const struct timespec’.
404 (ci_main): Change type of local vars
405 ‘mtime’, ‘wtime’, ‘fs_mtime’ to ‘struct timespec’;
406 use ‘make_timespec’, ‘unspecified_timespec’ for ‘wtime’;
407 use ‘unspecified_timespec’, ‘timespec_cmp’ for ‘donerewrite’
408 second arg; use ‘unspecified_timespec’ for ‘mtime’.
409 * co.c: #include "timespec.h".
410 (co_main): Use ‘make_timespec’ for ‘chnamemod’ 6th arg.
411 * rcsedit.c (chnamemod): Change type of
412 ‘mtime’ arg to ‘const struct timespec’.
413 (setmtime): Likewise; adjust arg to TIME_UNSPECIFIED_P
414 accordingly; assign ‘mtime’ directly to ‘amtime[1]’.
415 (donerewrite): Change type of
416 ‘mtime’ arg to ‘const struct timespec’.
417 * rcsutil.c: #include "stat-time.h".
418 (file_mtime): Change type of return value to ‘struct timespec’;
419 use ‘get_stat_mtime’, ‘unspecified_timespec’.
420
421 2018-04-01 Thien-Thi Nguyen <[email protected]>
422
423 [C] Use ‘?:’ expression for local var.
424
425 * ci.c (ci_main): ...here, for var ‘wtime’.
426
427 2018-04-01 Thien-Thi Nguyen <[email protected]>
428
429 [int] Use ‘make_timespec’ more.
430
431 * rcsedit.c: #include "timespec.h".
432 (setmtime): Use ‘make_timespec’.
433
434 2018-04-01 Thien-Thi Nguyen <[email protected]>
435
436 [int] Add abstraction: ZERO_NANOSECONDS
437
438 * base.h (ZERO_NANOSECONDS): New #define.
439 * rcsutil.c (unspecified_timespec): Use ‘ZERO_NANOSECONDS’.
440
441 2018-04-01 Thien-Thi Nguyen <[email protected]>
442
443 [int] Rename ‘donerewrite’ second arg.
444
445 * rcsedit.c (donerewrite): Rename second arg to ‘mtime’.
446
447 2018-03-31 Thien-Thi Nguyen <[email protected]>
448
449 [int] Add abstraction: file_mtime
450
451 * rcsutil.c (file_mtime): New func.
452 * base.h (file_mtime): New func decl.
453 * ci.c (ci_main): Add local var ‘fs_mtime’; use ‘file_mtime’.
454 * co.c (co_main): Use ‘file_mtime’.
455 * rcs.c (rcs_main): Likewise.
456 * rcsclean.c (rcsclean_main): Likewise.
457
458 2018-03-31 Thien-Thi Nguyen <[email protected]>
459
460 [int] Add abstraction: unspecified_timespec
461
462 * rcsutil.c: #include "timespec.h".
463 (unspecified_timespec): New func.
464 * base.h (unspecified_timespec): New func decl.
465
466 2017-10-30 Thien-Thi Nguyen <[email protected]>
467
468 [int] Add abstractions: TIME_UNSPECIFIED, TIME_UNSPECIFIED_P
469
470 * base.h (TIME_UNSPECIFIED): New #define.
471 (TIME_UNSPECIFIED_P): New macro.
472 * ci.c (ci_main): Use ‘TIME_UNSPECIFIED’.
473 * co.c (co_main): Likewise.
474 * rcs.c (rcs_main): Likewise.
475 * rcsclean.c (rcsclean_main): Likewise.
476 * rcstime.c (date2str): Likewise.
477 * rcsedit.c (setmtime): Use ‘TIME_UNSPECIFIED_P’.
478
479 2017-10-29 Thien-Thi Nguyen <[email protected]>
480
481 [int] Use ‘utimens’ instead of ‘utime’.
482
483 * rcsedit.c: #include "utimens.h".
484 (setmtime): Use ‘utimens’ instead of ‘utime’.
485
486 2017-10-28 Thien-Thi Nguyen <[email protected]>
487
488 [build] Use gnulib module ‘utimens’.
489
490 * Makefile.am (LDADD): Append $(LIB_CLOCK_GETTIME).
491
492 2017-10-28 Thien-Thi Nguyen <[email protected]>
493
494 [int] Improve readability of some ‘?:’ expressions.
495
496 This is mostly done by adding whitespace to either: (a) move
497 the entire expression, in an argument context, onto its own
498 line; or (b) ensure the ‘?’ and ‘:’ are at "code bol". In
499 some cases grouping parens are added to help distinguish
500 nested ‘?:’ expressions.
501
502 * b-kwxout.c (keyreplace): ...here.
503 * ci.c (fixwork): Likewise.
504 * co.c (co_main): Likewise.
505 * maketime.c (tm2time): Likewise.
506 * partime.c (parse_ranged): Likewise.
507 * rcsgen.c (buildrevision, putadmin, putdelta): Likewise.
508 * rcsmap.c (checkidentifier): Likewise.
509 * rcsmerge.c (rcsmerge_main): Likewise.
510 * rcsrev.c (cmpnumfld, absent, genbranch): Likewise.
511 * rcstime.c (date2str): Likewise.
512 * rcsutil.c (cgetenv, movefd): Likewise.
513 * rlog.c (putadelta, rlog_main): Likewise.
514
515 2017-09-28 Thien-Thi Nguyen <[email protected]>
516
517 [int] Rename ‘datesize’ to ‘DATESIZE’; consolidate.
518
519 * base.h (yearlength): Delete #define, incorporating value into...
520 (datesize): Delete #define.
521 (DATESIZE): ...new #define.
522 (FULLDATESIZE): Use ‘DATESIZE’.
523 (time2date, str2date, date2time, date2str): Likewise.
524 * ci.c (struct bud): Likewise, for member ‘getcurdate_buffer’.
525 (ci_main): Likewise.
526 * co.c (co_main): Likewise.
527 * rcsdiff.c (setup_label, rcsdiff_main): Likewise.
528 * rcsrev.c (cantfindbranch): Likewise.
529 * rcstime.c (time2date, str2date, date2time, date2str): Likewise.
530 * rlog.c (struct daterange): Likewise, for members ‘beg’, ‘end’.
531 (recentdate, getdatepair): Likewise.
532
533 2017-09-28 Thien-Thi Nguyen <[email protected]>
534
535 [int] Use ‘strncpy’ less.
536
537 * rlog.c (getdatepair): Use ‘memcpy’ directly.
538 (ZERODATE): New #define.
539 (KSTRCPY): Delete macro.
540 (rlog_main): Use ‘memcpy’, ‘ZERODATE’.
541
542 2017-09-28 Thien-Thi Nguyen <[email protected]>
543
544 [int] Add abstraction: FULLDATESIZE
545
546 * base.h (zonelenmax): Delete #define, folding value into...
547 (FULLDATESIZE): ...this new #define.
548 (date2str): Use ‘FULLDATESIZE’.
549 * b-kwxout.c (keyreplace): Likewise.
550 * ci.c (getlogmsg, ci_main): Likewise.
551 * rcsdiff.c (setup_label): Likewise.
552 * rcsrev.c (cantfindbranch, genbranch, genrevs): Likewise.
553 * rcstime.c (date2time, date2str): Likewise.
554 * rlog.c (putadelta): Likewise.
555
556 2016-10-31 Thien-Thi Nguyen <[email protected]>
557
558 [int] Expand ‘exit_diff_trouble’ to handle ‘complain’ calls.
559
560 * rcsutil.c (exit_diff_trouble): Take FMT and varargs;
561 call ‘vcomplain’ w/ them immediately before ‘_Exit’.
562 (runv): Fold ‘complain’ calls preceding calls to
563 ‘exit_diff_trouble’ into args to ‘exit_diff_trouble’.
564
565 2016-10-31 Thien-Thi Nguyen <[email protected]>
566
567 [int] Add abstraction: chk_set_rev
568
569 * rcsutil.c (chk_set_rev): New func.
570 * base.h (chk_set_rev): New func decl.
571 * ci.c (ci_main): Use ‘chk_set_rev’.
572 * co.c (co_main): Likewise.
573 * rcsclean.c (rcsclean_main): Likewise.
574
575 2016-10-29 Thien-Thi Nguyen <[email protected]>
576
577 rlog: Fix bug: Handle ed script with embedded NUL.
578
579 Regression introduced 2010-05-24, "Rewrite parsing".
580
581 * rlog.c (count_a_d): Don't use ‘memchr’
582 to scan for newline; instead, use ‘memchr’.
583
584 2016-10-27 Thien-Thi Nguyen <[email protected]>
585
586 [int] Avoid unnecessary allocation in ‘string_from_atat’.
587
588 This is a continuation of 2016-10-25,
589 "Fix stack crash and port to non-VLA".
590
591 * b-fro.c: Don't #include "xalloc.h".
592 (string_from_atat RBEG): New local macro.
593 (string_from_atat): Don't bother constructing an array
594 of ranges; instead, use ‘RBEG’ and ‘atat->holes’ directly.
595
596 2016-10-27 Thien-Thi Nguyen <[email protected]>
597
598 Fix bug: Handle time-zone specified sans numeric offset.
599
600 * partime.c (parzone): When only the name is given,
601 and it is valid, set the output offset var using the
602 value associated with the name in the lookup table.
603
604 2016-10-26 Paul Eggert <[email protected]>
605
606 [int] Fix stack crash for long branches
607
608 This does not fix all recursive calls, just enough to fix
609 likely cases, including the bug report by Haoming Chu at:
610 http://lists.gnu.org/archive/html/bug-rcs/2016-10/msg00002.html
611 * rlog.c (putadelta): Do not check ‘node->selector’; now the
612 caller’s responsibility. Remove arg TRUNK; now inferred from
613 other args. All callers changed.
614 (putadelta, putrunk): Omit ‘register’ as the compiler should
615 figure this stuff out nowadays.
616 * rcsgen.c (putree):
617 * rlog.c (putree, exttree, recentdate, extdate):
618 Avoid recursion in the common case where !root->branches.
619 * rlog.c (putree): Avoid recursion when outputting the last tree
620 in the forest.
621 (putabranch): Do not check whether arg is null; now the
622 caller’s responsibility. Avoid recursion in the common case
623 where !root->selector.
624 (putforest): Return last tree in the forest.
625 (extractdelta): Return bool, not char.
626 (extdate): Return size_t, not int. All callers changed.
627
628 2016-10-25 Paul Eggert <[email protected]>
629
630 [int] Fix stack crash and port to non-VLA
631
632 Crash reported by Michael Watters in:
633 http://lists.gnu.org/archive/html/bug-rcs/2016-10/msg00000.html
634 * b-fro.c: Include xalloc.h.
635 (string_from_atat): Use xnmalloc rather than a variable-length array.
636 VLAs (a) can crash if too big, and (b) are not supported by some C
637 compilers. C11 no longer requires support for VLAs.
638
639 2016-10-24 Thien-Thi Nguyen <[email protected]>
640
641 [int] Incorporate ‘normalize_arg’ into unique caller.
642
643 * merger.c (normalize_arg): Delete func.
644 (merge): Do argument normalization here.
645
646 2016-10-24 Thien-Thi Nguyen <[email protected]>
647
648 [int] Incorporate ‘escape_string’ into unique caller.
649
650 * b-kwxout.c (escape_string): Delete func.
651 (afilename): Do escaping here.
652
653 2016-10-24 Thien-Thi Nguyen <[email protected]>
654
655 [int] Make ‘accs’ into a function.
656
657 * b-divvy.c (accs): New func.
658 * b-divvy.h (accs): Replace macro w/ func decl.
659
660 2016-10-21 Thien-Thi Nguyen <[email protected]>
661
662 [int] Declare ‘ignoble’ as ‘exiting’.
663
664 * b-grok.c (ignoble): ...here.
665
666 2016-10-21 Thien-Thi Nguyen <[email protected]>
667
668 [grok] Fix bug: Detect/diagnose missing string correctly.
669
670 Regression introduced 2010-06-12, "Build atat object incrementally".
671
672 * b-grok.c (maybe_read_atat): After skipping whitespace,
673 if the next char is not ‘SDELIM’, don't bother constructing
674 a length-zero atat and return ‘false’.
675 (must_read_atat): Change diagnostic to be similar to RCS 5.7.
676
677 2016-10-17 Thien-Thi Nguyen <[email protected]>
678
679 [int] Add abstraction: afilename
680
681 * b-kwxout.c (afilename): New static func.
682 (keyreplace): Use ‘afilename’.
683
684 2016-10-16 Thien-Thi Nguyen <[email protected]>
685
686 [int] Make ‘putstring’ more efficient.
687
688 * rcsgen.c (putstring): Don't loop byte by byte w/ ‘aputc’;
689 instead, loop over ‘SDELIM’-delimited byte ranges w/ ‘awrite’.
690
691 2016-10-16 Thien-Thi Nguyen <[email protected]>
692
693 [int] Simplify ‘putstring’.
694
695 * rcsgen.c (putstring): No longer take 2nd arg DELIM;
696 output initial ‘SDELIM’ unconditionally.
697 (putdesc, putadmin, putdftext): Update ‘putstring’ calls.
698 * base.h (putstring): Update func decl accordingly.
699 * rcs.c (scanlogtext): Update ‘putstring’ call.
700
701 2016-10-16 Thien-Thi Nguyen <[email protected]>
702
703 [int] Prepare to simplify ‘putstring’.
704
705 * rcsgen.c (putdesc): Don't output ‘SDELIM’ here;
706 instead, arrange for ‘putstring’ to do it.
707
708 2016-10-15 Thien-Thi Nguyen <[email protected]>
709
710 [int] Add abstraction: put_SDELIM
711
712 * rcsgen.c (put_SDELIM): New static func.
713 (putstring, putdftext): Use ‘put_SDELIM’.
714
715 2016-10-15 Thien-Thi Nguyen <[email protected]>
716
717 [int] Simplify ‘aputc’ + ‘putstring’ sequence.
718
719 * rcs.c (scanlogtext): Remove ‘aputc’ call; change
720 ‘putstring’ arg DELIM to make it handle the ‘SDELIM’ output.
721
722 2016-10-15 Thien-Thi Nguyen <[email protected]>
723
724 [int] Add abstraction: newline
725
726 * b-fb.c (newline): New func.
727 * b-fb.h (newline): New func decl.
728 * b-fro.c (atat_display): Use ‘newline’.
729 * b-kwxout.c (keyreplace): Likewise.
730 * ci.c (ci_main): Likewise.
731 * rcs.c (scanlogtext): Likewise.
732 * rcsgen.c (putdesc, putstring, putdftext): Likewise.
733 * rlog.c (putadelta, rlog_main): Likewise.
734
735 2016-10-13 Thien-Thi Nguyen <[email protected]>
736
737 [doc] Fix bug: Add space between merge option ‘-L’ and its arg.
738
739 * merge.c (:help comment): ...here.
740
741 2016-10-13 Thien-Thi Nguyen <[email protected]>
742
743 [int] Simplify computation of obstack mask alignment.
744
745 * b-divvy.c (make_space): For ‘width’, replace assignment
746 plus conditional reassignment w/ single ‘?:’ expression.
747
748 2015-06-18 Thien-Thi Nguyen <[email protected]>
749
750 [C slog] Move ‘exiting’ to beginning of func decl.
751
752 Apparently, ‘gcc --std=c11’ does not abide the ‘exiting’
753 attribute appearing at the end of the func decl.
754 Reported by Romain Francoise.
755 See also <https://bugs.debian.org/778100>.
756
757 * b-complain.h (generic_fatal, fatal_syntax, fatal_sys)
758 * b-fb.h (Ierror, Oerror)
759 * base.h (unexpected_EOF, thank_you_and_goodnight):
760 Move ‘exiting’ attribute to beginning of func decl.
761
762 2015-02-19 Thien-Thi Nguyen <[email protected]>
763
764 [int] Add abstraction: accumulate_nbytes
765
766 * b-divvy.c (accumulate_nbytes): New func.
767 * b-divvy.h (accumulate_nbytes): New func decl.
768 * b-fro.c (string_from_sym): Use ‘accumulate_nbytes’.
769 * ci.c (ADD): Likewise.
770 * rcsfnms.c (fin2open ACC): Likewise.
771
772 2015-02-18 Thien-Thi Nguyen <[email protected]>
773
774 [int] Centralize "possible-endings" defaulting.
775
776 * rcsutil.c (gnurcs_init): Init ‘BE (pe)’ here.
777 * ci.c (ci_main): Don't init ‘BE (pe)’.
778 * co.c (co_main): Likewise.
779 * rcs.c (rcs_main): Likewise.
780 * rcsclean.c (rcsclean_main): Likewise.
781 * rcsdiff.c (rcsdiff_main): Likewise.
782 * rcsmerge.c (rcsmerge_main): Likewise.
783 * rlog.c (rlog_main): Likewise.
784 * base.h (X_DEFAULT): Delete #define.
785
786 2015-02-02 Thien-Thi Nguyen <[email protected]>
787
788 [slog] Consult USER before LOGNAME if latter is configure-time readonly.
789
790 * b-excwho.c (CONSULT_FIRST, CONSULT_SECOND):
791 New #define:s, bifurcated on ‘USER_OVER_LOGNAME’.
792 (getusername): Use ‘CONSULT_FIRST’, ‘CONSULT_SECOND’.
793
794 2015-01-28 Thien-Thi Nguyen <[email protected]>
795
796 [C int] Use local var to avoid gcc warning.
797
798 * b-isr.c (access_page): Change return type to ‘char’; return ‘t’.
799 * b-isr.h (access_page): Update func decl.
800
801 2015-01-27 Thien-Thi Nguyen <[email protected]>
802
803 [build slog] Fix bug: Propagate makefile var ‘LIBTHREAD’.
804
805 Omission since 5.8, or so. Gnulib module ‘threadlib’ includes
806 configure-script bits to set makefile var ‘LIBTHREAD’. RCS has no
807 concept of threads and does not specify ‘threadlib’ directly; it is a
808 dependency of other Gnulib modules. Reported by Michael Felt:
809 <http://lists.gnu.org/archive/html/bug-rcs/2015-01/msg00004.html>.
810
811 * Makefile.am (LDADD): Append $(LIBTHREAD), as well.
812
813 2015-01-24 Thien-Thi Nguyen <[email protected]>
814
815 [C slog] Add abstraction: BOOLEAN
816
817 This silences a warning under AIX. Reported by Michael Felt:
818 <http://lists.gnu.org/archive/html/bug-rcs/2015-01/msg00007.html>.
819
820 * base.h (BOOLEAN): New macro.
821 * b-grok.c (maybe_read_atat): Use it.
822
823 2015-01-22 Thien-Thi Nguyen <[email protected]>
824
825 Release: 5.9.4
826
827 2015-01-18 Thien-Thi Nguyen <[email protected]>
828
829 [C int] Use a local variable.
830
831 * b-grok.c (full): ...here, in "revisions"-chaining loop.
832
833 2015-01-18 Thien-Thi Nguyen <[email protected]>
834
835 [int] Use ‘MEM_SAME’ more.
836
837 * b-anchor.c (pool_lookup): ...here.
838
839 2014-12-10 Thien-Thi Nguyen <[email protected]>
840
841 [C int] Init local var ‘buf’.
842
843 This avoids a "may be used uninitialized" warning from GCC.
844
845 * partime.c (lookup): ...here.
846
847 2014-11-26 Thien-Thi Nguyen <[email protected]>
848
849 [C int] Drop redundant ‘const’ declarations.
850
851 * rcsdiff.c (minus_y, minus_D, longopt_maybe_p): ...here.
852
853 2014-11-23 Thien-Thi Nguyen <[email protected]>
854
855 [C int] Drop redundant ‘const’ declarations.
856
857 * partime.c (month_names, weekday_names, zone_names): ...here.
858
859 2014-09-17 Thien-Thi Nguyen <[email protected]>
860
861 Release: 5.9.3
862
863 2014-09-13 Achim Gratz <[email protected]> (tiny change)
864
865 Fix bug: Ensure stdio/fd sync around diff(1) invocation.
866
867 Regression introduced 2010-10-12, "Simplify
868 stream/fd sync; avoid ‘fflush’ on input".
869
870 * ci.c (ci_main): Don't bother doing ‘fro_bob’
871 prior to running diff(1); instead, do it afterwards.
872
873 2014-09-07 Thien-Thi Nguyen <[email protected]>
874
875 [int] Inline ‘struct obstack’ object in ‘struct divvy’.
876
877 * b-divvy.h: #include <obstack.h>.
878 (struct divvy): Make member ‘space’ into ‘struct obstack’.
879 * b-divvy.c: Don't #include <obstack.h>.
880 (make_space): Don't dynamically allocate ‘divvy->space’;
881 update ref to ‘divvy->space’ for ‘obstack_init’,
882 ‘obstack_alignment_mask’ and ‘obstack_next_free’.
883 (alloc, intern, brush_off, forget, accf, accumulate_byte)
884 (accumulate_range, finish_string, pointer_array):
885 Update divvy ‘space’ refs accordingly.
886 (close_space): Likewise; also don't bother ‘free’ing ‘divvy->space’.
887 * b-grok.c: Don't #include <obstack.h>.
888 (ignoble, start_atat, finish_atat, maybe_read_atat):
889 Update divvy ‘space’ refs accordingly.
890
891 2014-09-07 Thien-Thi Nguyen <[email protected]>
892
893 [int] Use gnulib module ‘xalloc’.
894
895 * b-divvy.c: #include "xalloc.h".
896 (oom, okalloc, allocate): Delete funcs.
897 (TMALLOC): Use ‘xmalloc’.
898 (TCALLOC): Delete macro.
899 (xmalloc): Delete func.
900 (make_space): Use ‘TMALLOC’; specify ‘xalloc_die’ instead of ‘oom’.
901 * b-divvy.h (okalloc): Delete func decl.
902 * rcsedit.c: #include "xalloc.h".
903 (insertline): Don't use ‘okalloc’, ‘malloc’, ‘realloc’;
904 instead, use ‘xmlloc’, ‘xrealloc’ directly.
905
906 2014-09-07 Thien-Thi Nguyen <[email protected]>
907
908 [int] Use gnulib module ‘exitfail’.
909
910 * b-complain.h: #include "exitfail.h".
911 * ci.c (cleanup): Use ‘exit_failure’.
912 * co.c (cleanup): Likewise.
913 * ident.c (scanfile, main): Likewise.
914 * rcs.c (cleanup): Likewise.
915 * rcsclean.c (cleanup): Likewise.
916 * rcsutil.c (thank_you_and_goodnight): Likewise.
917 * rlog.c (cleanup): Likewise.
918
919 2014-08-31 Thien-Thi Nguyen <[email protected]>
920
921 [build int] Use gnulib module to declare non-NULL args.
922
923 * base.h (ARG_NONNULL): New macro.
924 (ALL_NONNULL): New #define.
925
926 2014-08-30 Thien-Thi Nguyen <[email protected]>
927
928 Drop compatibility w/ RCS 2.x file format.
929
930 * base.h [COMPAT2] (tiny_suffix): Delete decl.
931 * b-anchor.c [COMPAT2] (tiny_suffix): Delete.
932 * b-grok.c (full) [COMPAT2]: Drop ‘suffix’ probe/handling.
933
934 2014-08-16 Hannes Küttner <[email protected]> (tiny change)
935
936 Fix bug: Don't ignore ‘bp->ilk’ when pruning.
937
938 Continuation of 2010-11-14, "Fix bug:
939 For unchanged checkin, invalidate ‘newdelta’".
940 Regression introduced 2010-05-24, "Rewrite parsing".
941
942 * ci.c (prune): Handle case where ‘wrong’ is ‘bp’ successor.
943
944 2014-08-09 Thien-Thi Nguyen <[email protected]>
945
946 [build] Use gnulib module ‘vla’.
947
948 * base.h: #include "vla.h".
949 (ARSZ_FN_PARM): Delete macro.
950 * b-feph.c (reap): Use ‘VLA_ELEMS’.
951 * b-isr.c (setup_catchsig): Likewise.
952 * ident.c (main): Likewise.
953 * merge.c (main): Likewise.
954 * super.c (main): Likewise.
955
956 2014-08-09 Thien-Thi Nguyen <[email protected]>
957
958 [build] Use gnulib module ‘vararrays’.
959
960 * base.h (ARSZ_FN_PARM): Use ‘__STDC_NO_VLA__’.
961
962 2014-08-05 Thien-Thi Nguyen <[email protected]>
963
964 [C] Convert ‘**argv’ to ‘*argv[ARSZ_FN_PARM (argc)]’.
965
966 * ident.c (main)
967 * merge.c (main)
968 * super.c (main): ...here.
969
970 2014-08-05 Thien-Thi Nguyen <[email protected]>
971
972 [C] Use ‘ARSZ_FN_PARM’.
973
974 * b-feph.c (reap)
975 * b-isr.c (setup_catchsig): ...here, for array arg.
976
977 2014-08-05 Thien-Thi Nguyen <[email protected]>
978
979 [C int] Add ‘ARSZ_FN_PARM’.
980
981 * base.h (ARSZ_FN_PARM): New macro, using ‘ARSZ_FN_PARM_OK’.
982
983 2014-08-02 Paul Eggert <[email protected]>
984
985 Port to Solaris 10, which uses GCC 3.4.3.
986 Array problem reported by Nelson H. F. Beebe.
987 * b-feph.c (reap):
988 * b-isr.c (setup_catchsig):
989 Comment out size of array parameter, as GCC 3.4.3 doesn't allow it.
990 * b-isr.c (catchsigaction): Use 'char *' (not 'const char *')
991 for a local variable, to pacify Solaris 10 psiginfo.
992
993 2013-11-28 Thien-Thi Nguyen <[email protected]>
994
995 Release: 5.9.2
996
997 2013-10-20 Thien-Thi Nguyen <[email protected]>
998
999 [C int] Prefer bit-shift to multiplication.
1000
1001 * b-fro.c (fro_open): ...here, when
1002 comparing the comma-v size to the memory limit.
1003
1004 2013-10-20 Thien-Thi Nguyen <[email protected]>
1005
1006 Relax RCS_MEM_LIMIT default; fall back if unspecified.
1007
1008 * base.h (MEMORY_UNLIMITED): New #define.
1009 * rcsutil.c (gnurcs_init): If unspecified,
1010 default ‘BE (mem_limit)’ to ‘MEMORY_UNLIMITED’.
1011 * b-fro.c (fro_open): Notice ‘MEMORY_UNLIMITED’ mem limit;
1012 in that case, don't check file size, and on ‘RM_MMAP’ or
1013 ‘RM_MEM’ failure, retry w/ the "next" method: ‘RM_MEM’ or
1014 ‘RM_STDIO’, respectively.
1015
1016 2013-10-17 Thien-Thi Nguyen <[email protected]>
1017
1018 Fix typo: Spell "compatib..." correctly!
1019
1020 Reported by Romain Francoise.
1021
1022 * base.h: Do ‘s/compatab/compatib/g’.
1023 * super.c: Likewise.
1024
1025 2013-10-04 Thien-Thi Nguyen <[email protected]>
1026
1027 Release: 5.9.1
1028
1029 2013-09-25 Thien-Thi Nguyen <[email protected]>
1030
1031 [int] Decruft: Delete some "set but not used" local vars.
1032
1033 * b-grok.c (must_semi): Delete var ‘was’.
1034 * rcsrev.c (fully_numeric): Delete var ‘have_branch’.
1035
1036 2013-09-25 Thien-Thi Nguyen <[email protected]>
1037
1038 [build] Fix bug: Avoid ‘$<’ in makefile actions.
1039
1040 * Makefile.am ($(subs)): Use ‘$(srcdir)/sub.TEMPLATE’ directly.
1041 Reported by Paul Eggert.
1042
1043 2013-09-24 Thien-Thi Nguyen <[email protected]>
1044
1045 [int] Use ‘DIFF_L’ as C value.
1046
1047 * rcsdiff.c (setup_label): Remove surrounding ‘#if DIFF_L’.
1048 (rcsdiff_main): Convert ‘#if DIFF_L’..‘#endif’ to
1049 ‘if (DIFF_L) { ... }’ and in some cases merge into sub-‘if’.
1050
1051 2013-09-24 Thien-Thi Nguyen <[email protected]>
1052
1053 [int] Use ‘BAD_CREATE0’ as C value.
1054
1055 * rcs.c (rcs_main): Convert ‘#if BAD_CREATE0’..‘#endif’
1056 to ‘if (BAD_CREATE0) { ... } else { ... }’.
1057 * rcsgen.c (putadmin): Likewise.
1058 * rcsedit.c (dorewrite, donerewrite): Likewise,
1059 merging into sub-‘if’ in some instances.
1060
1061 2013-09-24 Thien-Thi Nguyen <[email protected]>
1062
1063 [int] Use ‘WOE’ as C value.
1064
1065 * rcsfnms.c (isSLASH): Convert ‘#if ! WOE’..‘#endif’
1066 to ‘if (! WOE) { ... } else { ... }’.
1067
1068 2013-09-24 Thien-Thi Nguyen <[email protected]>
1069
1070 [int] Use ‘MMAP_SIGNAL’ as C value.
1071
1072 * b-fro.c (mmap_deallocate): Remove surrounding ‘#if MMAP_SIGNAL’.
1073 (fro_open): Convert ‘#if MMAP_SIGNAL’..‘#endif’
1074 to ‘if (MMAP_SIGNAL) { ... } else { ... }’.
1075
1076 2013-09-24 Thien-Thi Nguyen <[email protected]>
1077
1078 [int] Use ‘DIFF3_BIN’ as C value.
1079
1080 * merger.c (merge): Convert ‘#if DIFF3_BIN’..‘#endif’
1081 to ‘if (DIFF3_BIN) { ... } else { ... }’.
1082
1083 2013-09-24 Thien-Thi Nguyen <[email protected]>
1084
1085 [int] Use ‘BAD_B_RENAME’ as C value.
1086
1087 * rcsedit.c (chnamemod): Convert ‘#if BAD_B_RENAME’..‘#endif’
1088 to ‘if (BAD_B_RENAME) { ... }’ and merge into the the sub-‘if’.
1089
1090 2013-09-24 Thien-Thi Nguyen <[email protected]>
1091
1092 [int] Use ‘BAD_WAIT_IF_SIGCHLD_IGNORED’ as C value.
1093
1094 * b-isr.c (maybe_reset_sigchld): Convert
1095 ‘#if BAD_WAIT_IF_SIGCHLD_IGNORED’..‘#endif’ to
1096 ‘if (BAD_WAIT_IF_SIGCHLD_IGNORED) { ... }’.
1097
1098 2013-09-24 Thien-Thi Nguyen <[email protected]>
1099
1100 [int] Use ‘BAD_A_RENAME’, ‘bad_NFS_rename’ as C values.
1101
1102 * rcsedit.c (chnamemod): Convert ‘#if COND’..‘#endif’
1103 to ‘if (COND) { ... }’ where COND includes ‘BAD_A_RENAME’
1104 and/or ‘bad_NFS_rename’. In one instance, merge COND
1105 with that of the sub-‘if’.
1106
1107 2013-09-24 Thien-Thi Nguyen <[email protected]>
1108
1109 Fix bug: Construct diff command-line correctly for non-POSIX.
1110
1111 See: <https://savannah.gnu.org/bugs/?40091>.
1112 Reported by David Binderman.
1113
1114 This is a long-standing bug, first appearing in RCS 5.7,
1115 released 1995-06-16. We don't add a test because it affects
1116 non-POSIX systems, which are not easily available to the
1117 maintainers.
1118
1119 * rcs.c (buildeltatext): Change ‘==’ to ‘=’
1120 in the case of appending "--binary" to the command line.
1121
1122 2013-09-23 Thien-Thi Nguyen <[email protected]>
1123
1124 [int] Use ‘OPEN_O_BINARY’ as a C value.
1125
1126 Since base.h takes pains to #define this in all cases, might
1127 as well use it in its C-value capacity, instead of only as a
1128 CPP value, thus gaining some visibility for the compiler.
1129
1130 * b-fro.c (fro_open): Convert gating via ‘OPEN_O_BINARY’
1131 from ‘#if OPEN_O_BINARY’..‘#endif’ to C value.
1132 * ci.c (ci_main): Likewise.
1133 * rcs.c (buildeltatext): Likewise.
1134 * rcsdiff.c (rcsdiff_main): Likewise.
1135
1136 2013-08-06 Thien-Thi Nguyen <[email protected]>
1137
1138 Add homepage / "gethelp" to ‘--help’ output.
1139
1140 * gnu-h-v.c (AB, GNU): New macros.
1141 (BUGME): Use ‘AB’ for ‘PACKAGE_BUGREPORT’;
1142 add ‘GNU’ entries for homepage and general help URLs.
1143
1144 2013-05-06 Thien-Thi Nguyen <[email protected]>
1145
1146 Release: 5.9.0
1147
1148 2013-05-04 Thien-Thi Nguyen <[email protected]>
1149
1150 [build int] Presume availability of ‘ftruncate’.
1151
1152 * ci.c: Don't check for ‘HAVE_FTRUNCATE’;
1153 don't define always-erroneous replacement.
1154
1155 2013-05-04 Thien-Thi Nguyen <[email protected]>
1156
1157 [int] Presume ‘SIGCHLD’ defined.
1158
1159 * b-isr.c (maybe_reset_sigchld) [BAD_WAIT_IF_SIGCHLD_IGNORED]:
1160 Don't bother ensuring a #define for ‘SIGCHLD’.
1161
1162 2013-05-04 Thien-Thi Nguyen <[email protected]>
1163
1164 Suggest "frob" as the legacy interface command name.
1165
1166 * super.c <help text>: ...here.
1167
1168 2013-05-04 Thien-Thi Nguyen <[email protected]>
1169
1170 [int] Add abstraction: string_from_sym
1171
1172 * super.c (string_from_sym): New static func.
1173 (display_commands, display_aliases): Use it.
1174
1175 2013-05-03 Thien-Thi Nguyen <[email protected]>
1176
1177 [int] Bump max command name size to 64.
1178
1179 * super.c (MAX_COMMAND_SIZE): New #define.
1180 (display_commands, display_aliases): Use ‘MAX_COMMAND_SIZE’.
1181
1182 2013-05-03 Thien-Thi Nguyen <[email protected]>
1183
1184 Warn that option ‘-V’ is obsolete.
1185
1186 U (X) ≡ "Pass X to ‘display_version’".
1187 V ≡ "Discourage ‘-V’ usage".
1188 * gnu-h-v.h (DV_WARN): New #define;
1189 update ‘display_version’ comment accordingly.
1190 * gnu-h-v.c: #include "b-complain.h".
1191 (display_version): If ‘DV_WARN’, emit warning before version info.
1192 * ident.c (main): Pass ‘DV_WARN’ to ‘display_version’.
1193 * ci.c <help text>: V.
1194 * co.c <help text>: V.
1195 * ident.c (main): U (DV_WARN)
1196 <help text>: V.
1197 * merge.c (main): U (DV_WARN).
1198 <help text>: V.
1199 * rcs.c <help text>: V.
1200 * rcsclean.c <help text>: V.
1201 * rcsdiff.c <help text>: V.
1202 * rcsmerge.c <help text>: V.
1203 * rlog.c <help text>: V.
1204 * rcsutil.c (setRCSversion): U (DV_WARN | DV_EXIT).
1205
1206 2013-05-03 Thien-Thi Nguyen <[email protected]>
1207
1208 [int] Add conditional exiting to ‘display_version’.
1209
1210 * gnu-h-v.c (display_version): Take 2nd arg ‘flags’.
1211 If ‘DV_EXIT’, exit successfully.
1212 (check_hv): Update call to ‘display_version’.
1213 * gnu-h-v.h (DV_ONLY, DV_EXIT): New #define:s.
1214 (display_version): Update func decl.
1215 * ident.c (main): Update call to ‘display_version’.
1216 * merge.c (main): Likewise.
1217 * rcsutil.c (setRCSversion): Likewise.
1218
1219 2013-05-03 Thien-Thi Nguyen <[email protected]>
1220
1221 Use ‘getopt_long’.
1222
1223 * gnu-h-v.h: #include <getopt.h>.
1224 (nice_getopt): New func decl.
1225 (NICE_OPT): New macro.
1226 (NO_MORE_OPTIONS): New #define.
1227 * gnu-h-v.c: #include "gnu-h-v.h".
1228 (nice_getopt): New func.
1229 (EXACTLY): Delete macro.
1230 (hv_option_values): New enum.
1231 (ok): New static array of ‘struct option’.
1232 (check_hv): Use ‘nice_getopt’ and ‘switch’ on its rv.
1233 * super.c (main): Replace manual string-comparison for
1234 ‘--commands’ and ‘--aliases’ recognition with option table,
1235 ‘nice_getopt’ call, and a ‘switch’ on the rv.
1236
1237 2013-05-02 Thien-Thi Nguyen <[email protected]>
1238
1239 Add "rcs --aliases".
1240
1241 * super.c (display_commands): Don't display aliases.
1242 (display_aliases): New static func.
1243 (main): Display aliases if given "--aliases".
1244 <help text>: Add ‘--aliases’ to options.
1245
1246 2013-05-02 Thien-Thi Nguyen <[email protected]>
1247
1248 Internalize some RCS commands; make rcs(1) dispatch to them.
1249
1250 U (MAIN, AKA) ≡
1251 "(top): Delete var.
1252 (MAIN): Rename from ‘main’; take arg ‘cmd’; pass it to ‘CHECK_HV’.
1253 (AKA): New static uint8_t array.
1254 <top-level>: Use ‘YET_ANOTHER_COMMAND’".
1255 * b-yacmd.h: New file.
1256 * sub.TEMPLATE: New file.
1257 * super.c: New file.
1258 * Makefile.am (subs, bin_SCRIPTS): New vars.
1259 ($(subs)): New target.
1260 (libparts_a_SOURCES): Add b-yacmd.h.
1261 (executables): Remove ci, co, rcsclean, rcsdiff, rcsmerge, rlog.
1262 (BUILT_SOURCES): Add $(subs:=.help), super.help.
1263 (rcs_SOURCES): New var.
1264 (CLEANFILES): Add $(subs).
1265 (EXTRA_DIST): Add sub.TEMPLATE.
1266 * b-peer.h (peer_super): Rename var decl from ‘peer_co’.
1267 (PEER_SUPER): Rename macro from ‘PEER_CO’; use ‘peer_super’.
1268 * b-peer.c (peer_super): Raname from ‘peer_co’; use "rcs".
1269 * ci.c: U (ci_main, ci_aka).
1270 * co.c: U (co_main, co_aka).
1271 (VX): Bump to 3.
1272 (buildjoin): Use ‘PEER_SUPER’ and command "co".
1273 * rcs.c: U (rcs_main, rcs_aka).
1274 * rcsclean.c: U (rcsclean_main, rcsclean_aka).
1275 * rcsdiff.c: U (rcsdiff_main, rcsdiff_aka).
1276 (rcsdiff_main): Use ‘PEER_SUPER’ and command "co".
1277 * rcsmerge.c: U (rcsmerge_main, rcsmerge_aka).
1278 (rcsmerge_main): Use ‘PEER_SUPER’ and command "co".
1279 * rlog.c: U (rlog_main, rlog_aka).
1280
1281 2013-05-02 Thien-Thi Nguyen <[email protected]>
1282
1283 [int] Move ‘program’ to top-level.
1284
1285 * gnu-h-v.h (CHECK_HV): Take arg ‘cmd’; set
1286 ‘program.invoke’ and ‘program.name’ prior to ‘check_hv’ call.
1287 (DECLARE_PROGRAM): New macro.
1288 * ci.c: Use ‘DECLARE_PROGRAM’.
1289 (main): Delete local var ‘program’; update call to ‘CHECK_HV’.
1290 * co.c: Likewise.
1291 * ident.c: Likewise.
1292 * merge.c: Likewise.
1293 * rcs.c: Likewise.
1294 * rcsclean.c: Likewise.
1295 * rcsdiff.c: Likewise.
1296 * rcsmerge.c: Likewise.
1297 * rlog.c: Likewise.
1298
1299 2013-05-01 Thien-Thi Nguyen <[email protected]>
1300
1301 Include one-line description in ‘--help’ output.
1302
1303 * base.h (struct program): Add member ‘desc’.
1304 * ci.c (main): Init ‘program.desc’.
1305 * co.c (main): Likewise.
1306 * ident.c (main): Likewise.
1307 * merge.c (main): Likewise.
1308 * rcs.c (main): Likewise.
1309 * rcsclean.c (main): Likewise.
1310 * rcsdiff.c (main): Likewise.
1311 * rcsmerge.c (main): Likewise.
1312 * rlog.c (main): Likewise.
1313 * gnu-h-v.c (check_hv): For ‘--help’ output,
1314 display the program description between the usage
1315 line and the the rest of the rest of the help text.
1316
1317 2013-04-29 Thien-Thi Nguyen <[email protected]>
1318
1319 merge: Don't accept ‘-V’ with an argument.
1320
1321 * merge.c (main): If given ‘-V’ with an argument,
1322 display error message and exit failurefully.
1323
1324 2013-04-29 Thien-Thi Nguyen <[email protected]>
1325
1326 ident: Don't accept ‘-V’ with an argument.
1327
1328 * ident.c (main): If given ‘-V’ with an argument,
1329 display error message and exit failurefully.
1330
1331 2013-04-11 Thien-Thi Nguyen <[email protected]>
1332
1333 [build] Add sanity check for .help generation.
1334
1335 * Makefile.am (.c.help): After extraction, if the .help
1336 file is empty, display error message and exit failurefully.
1337
1338 2013-04-11 Thien-Thi Nguyen <[email protected]>
1339
1340 co: Add option ‘-S’ to enable "self-same" mode.
1341
1342 Suggested by James Olin Oden:
1343 <https://bugzilla.redhat.com/show_bug.cgi?id=107947>.
1344
1345 * b-excwho.c (addlock_maybe): Rename from ‘addlock’; take additional
1346 arg ‘bool selfsame’; if true, don't distinguish who holds a lock.
1347 * b-excwho.h (addlock_maybe): Update func decl.
1348 (addlock): New macro.
1349 * co.c (main): Add handling for ‘-S’; use ‘addlock_maybe’.
1350 <help text>: Add ‘-S’ to options.
1351
1352 2013-04-11 Thien-Thi Nguyen <[email protected]>
1353
1354 ident: Recognize Subversion "fixed-width keyword syntax".
1355
1356 Suggested by Carlie J. Coats, Jr. and Jiri Moskovcak:
1357 <https://bugzilla.redhat.com/show_bug.cgi?id=247998>.
1358
1359 * ident.c (match): Accept additional colon after the first
1360 is found; in that case, also allow hash before final ‘KDELIM’.
1361
1362 2013-04-10 Thien-Thi Nguyen <[email protected]>
1363
1364 [int] Remove ‘rmvlocklst’ from global state of rcs(1).
1365
1366 * rcs.c (struct adminstuff): Add member ‘byelocks’.
1367 (rmvlocklst): Delete var.
1368 (dolocks): Use ‘dc->byelocks’.
1369 (main): Use ‘dc.byelocks’.
1370
1371 2013-04-10 Thien-Thi Nguyen <[email protected]>
1372
1373 [int] Remove ‘newlocklst’ from global state of rcs(1).
1374
1375 * rcs.c (struct adminstuff): Add member ‘newlocks’.
1376 (newlocklst): Delete var.
1377 (rmnewlocklst): Take arg ‘dc’; use ‘dc->newlocks’.
1378 (dolocks): Use ‘dc->newlocks’.
1379 (main): Use ‘dc.newlocks’; update call to ‘rmnewlocklst’.
1380
1381 2013-04-10 Thien-Thi Nguyen <[email protected]>
1382
1383 [int] Remove ‘delrev’ from global state of rcs(1).
1384
1385 * rcs.c (struct adminstuff): Add member ‘delrev’.
1386 (putdelrev): Interpret arg ‘data’ to be ‘adminstuff *dc’;
1387 use ‘dc->delrev’.
1388 (removerevs): Use ‘dc->delrev’.
1389 (main): Use ‘dc.delrev’; update call to ‘parse_revpairs’.
1390
1391 2013-04-10 Thien-Thi Nguyen <[email protected]>
1392
1393 [int] Remove ‘lockhead’, ‘unlockcaller’ from global state of rcs(1).
1394
1395 * rcs.c (struct adminstuff):
1396 Add members ‘lockhead’, ‘unlockcaller’.
1397 (lockhead, unlockcaller): Delete vars.
1398 (dolocks): Use ‘dc->unlockcaller’, ‘dc->lockhead’.
1399 (main): Use ‘dc.lockhead’, ‘dc.unlockcaller’.
1400
1401 2013-04-10 Thien-Thi Nguyen <[email protected]>
1402
1403 [int] Remove ‘suppress_mail’ from global state of rcs(1).
1404
1405 * rcs.c (struct adminstuff): Add member ‘suppress_mail’.
1406 (suppress_mail): Delete var.
1407 (sendmail): Take 3rd arg ‘suppress_mail’.
1408 (breaklock): Take 2nd arg ‘suppress_mail’; update call to ‘sendmail’.
1409 (setlock, dolocks): Update calls to ‘breaklock’.
1410 (main): Use ‘dc.suppress_mail’.
1411
1412 2013-04-10 Thien-Thi Nguyen <[email protected]>
1413
1414 [int] Remove outdate vars from global state of rcs(1).
1415
1416 U (X...) ≡ "Take arg ‘dc’; use ‘dc->X’, ...";
1417 U (*) ≡ U (cuthead, cuttail, delstrt).
1418 * rcs.c (struct adminstuff):
1419 Add members ‘cuthead’, ‘cuttail’, ‘delstrt’.
1420 (cuthead, cuttail, delstrt): Delete vars.
1421 (scanlogtext): U (cuttail).
1422 (searchcutpt): U (cuthead).
1423 (removerevs): U (*); update call to ‘searchcutpt’.
1424 (buildeltatext): U (cuttail, cuthead); update call to ‘scanlogtext’.
1425 (buildtree): U (*).
1426 (main): Use ‘dc.cuthead’, ‘dc.cuttail’; update calls to
1427 ‘removerevs’, ‘buildtree’, ‘buildeltatext’, ‘scanlogtext’.
1428
1429 2013-04-10 Thien-Thi Nguyen <[email protected]>
1430
1431 [int] Remove ‘messagelst’ from global state of rcs(1).
1432
1433 * rcs.c (struct adminstuff): Add members ‘logs’, ‘tp_log’.
1434 (messagelst): Delete var.
1435 (getmessage): Take ‘dc’, not ‘tp’; use ‘dc->tp_log’.
1436 (domessages): Use ‘dc->logs’.
1437 (main): Delete auto var ‘tp_log’;
1438 update call to ‘getmessage’; use ‘dc.logs’.
1439
1440 2013-04-10 Thien-Thi Nguyen <[email protected]>
1441
1442 [int] Remove ‘assoclst’ from global state of rcs(1).
1443
1444 * rcs.c (struct adminstuff): Add members ‘assocs’, ‘tp_assoc’.
1445 (assoclst): Delete var.
1446 (getassoclst): Take ‘dc’, not ‘tp’; use ‘dc->tp_assoc’.
1447 (doassoc): Take arg ‘dc’; use ‘dc->assocs’.
1448 (main): Delete auto var ‘tp_assoc’;
1449 update calls to ‘getassoclst’, ‘doassoc’.
1450
1451 2013-04-10 Thien-Thi Nguyen <[email protected]>
1452
1453 [int] Remove ‘chaccess’ from global state of rcs(1).
1454
1455 * rcs.c (struct adminstuff): Add members ‘accesses’, ‘tp_access’.
1456 (chaccess): Delete var.
1457 (getchaccess): Take ‘dc’, not ‘tp’; use ‘dc->tp_access’.
1458 (getaccessor): Take ‘dc’, not ‘tp’; update calls to ‘getchaccess’.
1459 (doaccess): Take arg ‘dc’; use ‘dc->accesses’.
1460 (main): Delete auto var ‘tp_chacc’; update
1461 calls to ‘getaccessor’, ‘getchaccess’, ‘doaccess’.
1462
1463 2013-04-10 Thien-Thi Nguyen <[email protected]>
1464
1465 [int] Remove repo-state-change vars from global state of rcs(1).
1466
1467 * rcs.c (struct adminstuff): Add members
1468 ‘headstate’, ‘headstate_changed_p’, ‘states’, ‘tp_state’.
1469 (headstate, chgheadstate, statelst): Delete vars.
1470 (getstates): Take ‘dc’, not ‘tp’; use ‘dc->tp_state’,
1471 ‘dc->headstate_changed_p’, ‘dc->headstate’.
1472 (main): Delete auto var ‘tp_state’; update call to ‘getstates’;
1473 use ‘dc.headstate_changed_p’, ‘dc.headstate’, ‘dc.states’.
1474
1475 2013-04-10 Thien-Thi Nguyen <[email protected]>
1476
1477 [int] Remove ‘revnum’ from global state of rcs(1).
1478
1479 * rcs.c (revnum): Delete var.
1480 (removerevs, doassoc, setlock, dolocks)
1481 (domessages, rcs_setstate): Add auto var ‘numrev’.
1482
1483 2013-04-10 Thien-Thi Nguyen <[email protected]>
1484
1485 [int] Move rcs.c ‘main’ auto var ‘deltas’ into adminstuff.
1486
1487 U ≡ "Take ‘dc’, not ‘tp_deltas’";
1488 V ≡ "U; use ‘&dc->deltas’".
1489 * rcs.c (struct adminstuff): Add member ‘deltas’.
1490 (setlock): V.
1491 (dolocks): Likewise; update calls to ‘setlock’.
1492 (domessages, rcs_setstate): V.
1493 (main): Delete auto var ‘deltas’; update calls to ‘dolocks’,
1494 ‘domessages’, ‘rcs_setstate’; use ‘dc.deltas’.
1495
1496 2013-04-10 Thien-Thi Nguyen <[email protected]>
1497
1498 [int] Move a rcs.c ‘main’ auto var into a structure.
1499
1500 * rcs.c (struct adminstuff): New.
1501 (main): Replace auto var ‘exitstatus’ with ‘dc’;
1502 update calls to ‘cleanup’; use ‘dc.rv’.
1503
1504 2013-04-10 Thien-Thi Nguyen <[email protected]>
1505
1506 [int] Remove {force,lock,mtime}flag from global state of co(1).
1507
1508 * co.c (struct work): Add member ‘force’.
1509 (forceflag, lockflag, mtimeflag): Delete vars.
1510 (rmworkfile): Use ‘work->force’.
1511 (main): Update initialization form for auto var ‘work’;
1512 add auto vars ‘lockflag’, ‘mtimeflag’; use ‘work.force’.
1513
1514 2013-04-10 Thien-Thi Nguyen <[email protected]>
1515
1516 [int] Remove ‘targetdelta’ from global state of co(1).
1517
1518 * co.c (struct jstuff): Add member ‘d’.
1519 (targetdelta): Delete var.
1520 (preparejoin, buildjoin): Use ‘js->d’.
1521 (main): Use ‘jstuff.d’.
1522
1523 2013-04-10 Thien-Thi Nguyen <[email protected]>
1524
1525 [int] Remove ‘neworkptr’ from global state of co(1).
1526
1527 * co.c (neworkptr): Delete var.
1528 (cleanup): Take 2nd var ‘neworkptr’.
1529 (main): Add auto var ‘neworkptr’; update calls to ‘cleanup’.
1530
1531 2013-04-10 Thien-Thi Nguyen <[email protected]>
1532
1533 [int] Remove {expand,suffix,version,zone}arg from global state of co(1).
1534
1535 * co.c (expandarg, suffixarg, versionarg, zonearg): Delete vars.
1536 (struct jstuff): Add members ‘expand’, ‘suffix’, ‘version’, ‘zone’.
1537 (buildjoin): Use ‘js->expand’,
1538 ‘js->suffix’, ‘js->version’, ‘js->zone’.
1539 (main): Use ‘jstuff.suffix’, ‘jstuff.version’,
1540 ‘jstuff.zone’, ‘jstuff.expand’.
1541
1542 2013-04-10 Thien-Thi Nguyen <[email protected]>
1543
1544 [int] Remove ‘joinlist’, ‘lastjoin’ from global state of co(1).
1545
1546 * co.c (joinlist, lastjoin): Delete vars.
1547 (struct jstuff): Add members ‘ls’, ‘lastidx’.
1548 (jpush): Use ‘js->lastidx’.
1549 (preparejoin): Likewise; use ‘js->ls’.
1550 (buildjoin): Use ‘js->lastidx’, ‘js->ls’.
1551
1552 2011-10-14 Thien-Thi Nguyen <[email protected]>
1553
1554 [int] Remove ‘jstuff’ from global state of co(1).
1555
1556 * co.c (jstuff): Delete var.
1557 (jpush): Take 2nd arg ‘js’; use ‘js->’.
1558 (addjoin): Take 2nd arg ‘js’; update call to ‘jpush’.
1559 (preparejoin): Take 2nd arg ‘js’; use ‘js->’;
1560 update call to ‘addjoin’, ‘jpush’.
1561 (buildjoin): Take 2nd arg ‘js’; use ‘js->’.
1562 (main): Add auto var ‘jstuff’;
1563 update calls to ‘preparejoin’, ‘buildjoin’.
1564
1565 2013-04-10 Thien-Thi Nguyen <[email protected]>
1566
1567 [int] Remove ‘workstat’ from global state of co(1).
1568
1569 * co.c (struct work): New.
1570 (workstat): Delete var.
1571 (rmworkfile): Take arg ‘work’; use ‘work->st’.
1572 (main): Add auto var work; use ‘work.st’;
1573 update calls to ‘rmworkfile’.
1574
1575 2013-04-10 Thien-Thi Nguyen <[email protected]>
1576
1577 [int] Remove ‘insDelFormat’ from global state of rlog(1).
1578
1579 * rlog.c (insDelFormat): Delete var.
1580 (putadelta): Take 4th arg ‘insDelFormat’.
1581 (putrunk): Take arg ‘insDelFormat’; update call to ‘putadelta’.
1582 (putforest): Update forward func decl.
1583 (putree): Take 2nd arg ‘insDelFormat’;
1584 update calls to self, ‘putforest’.
1585 (putabranch): Take 2nd arg ‘insDelFormat’;
1586 update calls to self, ‘putadelta’.
1587 (putforest): Take 2nd arg ‘insDelFormat’;
1588 update calls to self, ‘putabranch’, ‘putree’.
1589 (main): Add auto var ‘insDelFormat’.
1590
1591 2013-04-10 Thien-Thi Nguyen <[email protected]>
1592
1593 [int] Remove ‘Revlst’ from global state of rlog(1).
1594
1595 * rlog.c (struct criteria): Add member ‘actual’.
1596 (Revlst): Delete var.
1597 (extractdelta, getnumericrev): Use ‘criteria->actual’.
1598
1599 2013-04-10 Thien-Thi Nguyen <[email protected]>
1600
1601 [int] Remove ‘statelist’ from global state of rlog(1).
1602
1603 * rlog.c (struct criteria): Add member ‘states’.
1604 (statelist): Delete var.
1605 (extractdelta): Use ‘criteria->states’.
1606 (getstate): Take 2nd arg ‘criteria’; use ‘criteria->states’.
1607 (main): Update initialization form of auto var ‘criteria’;
1608 update call to ‘getstate’.
1609
1610 2013-04-10 Thien-Thi Nguyen <[email protected]>
1611
1612 [int] Remove ‘lockerlist’ from global state of rlog(1).
1613
1614 * rlog.c (struct criteria): Add member ‘lockers’.
1615 (lockerlist): Delete var.
1616 (getlocker): Take 2nd arg ‘criteria’; use ‘criteria->lockers’.
1617 (trunclocks): Take arg ‘criteria’; use ‘criteria->lockers’.
1618 (main): Update initialization form of auto var ‘criteria’;
1619 update calls to ‘getlocker’, ‘trunclocks’.
1620
1621 2013-04-10 Thien-Thi Nguyen <[email protected]>
1622
1623 [int] Remove ‘authorlist’ from global state of rlog(1).
1624
1625 * rlog.c (struct criteria): Add member ‘authors’.
1626 (extractdelta): Take 3rd arg ‘criteria’; use ‘criteria->authors’.
1627 (exttree): Take 3rd arg ‘criteria’; update call to ‘extractdelta’.
1628 (getauthor): Take 2nd arg ‘criteria’; use ‘criteria->authors’.
1629 (main): Update initialization form of auto var ‘criteria’;
1630 update calls to ‘getauthor’, ‘exttree’.
1631
1632 2013-04-10 Thien-Thi Nguyen <[email protected]>
1633
1634 [int] Remove ‘revlist’ from global state of rlog(1).
1635
1636 * rlog.c (struct criteria): New.
1637 (revlist): Delete var.
1638 (getnumericrev): Take 2nd arg ‘criteria’; use ‘criteria->revs’.
1639 (putrevpairs): Unmark ‘data’ as ‘RCS_UNUSED’;
1640 interpret ‘data’ as ‘criteria’; use ‘criteria->revs’.
1641 (main): Add auto var ‘criteria’; update
1642 calls to ‘parse_revpairs’, ‘getnumericrev’.
1643
1644 2013-04-10 Thien-Thi Nguyen <[email protected]>
1645
1646 [int] Make ‘parse_revpairs’ accept/pass-through opaque data.
1647
1648 * rcsutil.c (parse_revpairs): Take arg ‘data’; call ‘put’ with it.
1649 * base.h (parse_revpairs): Update func decl.
1650 * rcs.c (putdelrev): Take 4th arg ‘data’; mark it ‘RCS_UNUSED’.
1651 (main): Update call to ‘parse_revpairs’.
1652 * rlog.c (putrevpairs): Take 4th arg ‘data’; mark it ‘RCS_UNUSED’.
1653 (main): Update call to ‘parse_revpairs’.
1654
1655 2013-04-10 Thien-Thi Nguyen <[email protected]>
1656
1657 [int] Remove ‘datelist’, ‘duelst’ from global state of rlog(1).
1658
1659 * rlog.c (struct date_selection): New.
1660 (datelist, duelst): Delete vars.
1661 (extdate, getdatepair): Take 2nd arg ‘datesel’;
1662 use ‘datesel->in’, ‘datesel->by’.
1663 (main): Add auto var ‘datesel’; update call to ‘getdatepair’;
1664 use ‘datsel.by’; update call to ‘extdate’.
1665
1666 2013-04-10 Thien-Thi Nguyen <[email protected]>
1667
1668 [int] Remove ‘lockflag’ from global state of rlog(1).
1669
1670 * rlog.c (lockflag): Delete var.
1671 (extractdelta): Add 2nd arg ‘lockflag’.
1672 (exttree): Likewise; update call to ‘extractdelta’, self.
1673 (main): Add auto var ‘lockflag’; update call to ‘exttree’.
1674
1675 2013-04-10 Thien-Thi Nguyen <[email protected]>
1676
1677 [int] Remove ‘branchflag’ from global state of rlog(1).
1678
1679 * rlog.c (branchflag): Delete var.
1680 (getnumericrev): Take arg BRANCHFLAG.
1681 (main): Add auto var ‘branchflag’; update call to ‘getnumericrev’.
1682
1683 2013-04-10 Thien-Thi Nguyen <[email protected]>
1684
1685 [int] Remove ‘workptr’, ‘workstat’ from global state of rcsdiff(1).
1686
1687 * rcsdiff.c (workptr, workstat): Delete vars.
1688 (struct work): New.
1689 (cleanup): Take 2nd arg WORK; use ‘work->fro’.
1690 (main): Add auto var ‘work’; update calls
1691 to ‘cleanup’; use ‘work.fro’ and ‘work.st’.
1692
1693 2013-04-10 Thien-Thi Nguyen <[email protected]>
1694
1695 [int] Remove ‘workptr’ from global state of rcsclean(1).
1696
1697 * rcsclean.c (workptr): Delete var.
1698 (cleanup): Take 2nd arg WORKPTR.
1699 (main): Add auto var ‘workptr’; update calls to ‘cleanup’.
1700
1701 2013-04-10 Thien-Thi Nguyen <[email protected]>
1702
1703 [int] Remove ‘getcurdate_buffer’ from global state of ci(1).
1704
1705 * ci.c (struct bud): Add member ‘getcurdate_buffer’.
1706 (getcurdate_buffer): Delete var.
1707 (getcurdate): Take BUD; use ‘bud->getcurdate_buffer’.
1708 (getlogmsg): Drop ‘const’ from arg ‘bud’; update call to ‘getcurdate’.
1709 (main): Update call to ‘getcurdate’.
1710
1711 2013-04-10 Thien-Thi Nguyen <[email protected]>
1712
1713 [int] Remove ‘logmsg’ from global state of ci(1).
1714
1715 * ci.c (struct reason): New.
1716 (logmsg): Delete var.
1717 (getlogmsg): Dno't take MSG; take REASON; use ‘reason->delayed’.
1718 (main): Delete auto var ‘msg’; add auto var ‘reason’;
1719 use ‘reason.upfront’; update calls to ‘getlogmsg’.
1720
1721 2013-04-10 Thien-Thi Nguyen <[email protected]>
1722
1723 [int] Remove ‘targetdelta’ from global state of ci(1).
1724
1725 * ci.c (targetdelta): Delete var.
1726 (struct bud): Add member ‘target’.
1727 (addbranch, addelta, getlogmsg): Use ‘bud->target’.
1728 (main): Use ‘bud.target’.
1729
1730 2013-04-10 Thien-Thi Nguyen <[email protected]>
1731
1732 [int] Remove ‘keepflag’ from global state of ci(1).
1733
1734 * ci.c (keepflag): Delete var.
1735 (struct bud): Add member ‘keep’.
1736 (getlogmsg): Use ‘bud->keep’.
1737 (main): Use ‘bud.keep’.
1738
1739 2013-04-10 Thien-Thi Nguyen <[email protected]>
1740
1741 [int] Remove ‘exfile’ from global state of ci(1).
1742
1743 * ci.c (exfile): Delete var.
1744 (struct work): Add member ‘ex’.
1745 (cleanup): Use ‘work->ex’.
1746 (xpandfile): Don't take UNEXFILE; instead, take WORK.
1747 (main): Init ‘work.ex’ to NULL;
1748 update call to ‘xpandfile’; use ‘work.ex’.
1749
1750 2013-04-10 Thien-Thi Nguyen <[email protected]>
1751
1752 [int] Remove ‘default_state’ from global state of ci(1).
1753
1754 * ci.c (default_state): Delete var.
1755 (main): Add auto var ‘default_state’.
1756
1757 2013-04-10 Thien-Thi Nguyen <[email protected]>
1758
1759 [int] Remove new{delnum,delta,branch} from global state of ci(1).
1760
1761 * ci.c (newdelnum, newdelta): Delete vars.
1762 (struct bud): New.
1763 (newbranch): Delete var.
1764 (addbranch): Don't take NUM; take BUD,
1765 instead; compute ‘num’ internally.
1766 (addelta): Move 2nd arg to 3rd position;
1767 take 2nd arg BUD; update calls to ‘addbranch’.
1768 (getlogmsg): Take 2nd arg BUD.
1769 (main): Add auto var ‘bud’; update calls to ‘addelta’, ‘getlogmsg’.
1770
1771 2013-04-10 Thien-Thi Nguyen <[email protected]>
1772
1773 [int] Remove ‘rcsinitflag’ from global state of ci(1).
1774
1775 * ci.c (rcsinitflag): Delete var.
1776 (addelta): Take 2nd arg RCSINITFLAG.
1777 (main): Add auto var ‘rcsinitflag’; update call to ‘addelta’.
1778
1779 2013-04-10 Thien-Thi Nguyen <[email protected]>
1780
1781 [int] Remove ‘forceciflag’, ‘keepworkingfile’ from global state of ci(1).
1782
1783 * ci.c (forceciflag, keepworkingfile): Delete var.
1784 (main): Add auto var ‘forceciflag’, ‘keepworkingfile’.
1785
1786 2013-04-10 Thien-Thi Nguyen <[email protected]>
1787
1788 [int] Remove ‘workptr’, ‘workstat’ from global state of ci(1).
1789
1790 * ci.c (workptr, workstat): Delete vars.
1791 (struct work): New.
1792 (cleanup): Take 2nd arg WORK; use it instead of ‘workptr’.
1793 (fixwork): Take 3rd arg WORK; use it instead of ‘workptr’, ‘workstat’.
1794 (main): Add auto var ‘work’; update calls to ‘cleanup’, ‘fixwork’.
1795
1796 2013-04-10 Thien-Thi Nguyen <[email protected]>
1797
1798 [int] Remove ‘assoclst’ from global state of ci(1).
1799
1800 * ci.c (assoclst): Delete var.
1801 (addsyms): Take 2nd arg LS; walk it directly.
1802 (first_meaningful_symbolic_name): Take arg LS;
1803 find its last link and use its entry as user symdef.
1804 (main): Rename auto var ‘tp_assoc’ to ‘symbolic_names’;
1805 push onto that list instead of extending it; update calls
1806 to ‘addsyms’ and ‘first_meaningful_symbolic_name’.
1807
1808 2013-04-10 Thien-Thi Nguyen <[email protected]>
1809
1810 [int] Remove ‘msg’ from global state of ci(1).
1811
1812 * ci.c (msg): Delete var.
1813 (getlogmsg): Take pointer to ‘msg’.
1814 (main): Add auto var ‘msg’; update calls to ‘getlogmsg’.
1815
1816 2013-04-09 Thien-Thi Nguyen <[email protected]>
1817
1818 [int] Remove ‘exitstatus’ from global state in programs.
1819
1820 * ci.c (exitstatus): Delete var.
1821 (cleanup): Take pointer to ‘exitstatus’.
1822 (main): Add auto var ‘exitstatus’; update call to ‘cleanup’.
1823 * co.c: Likewise.
1824 * rcs.c: Likewise.
1825 * rcsclean.c: Likewise.
1826 * rcsdiff.c: Likewise.
1827
1828 2013-04-05 Thien-Thi Nguyen <[email protected]>
1829
1830 [rcsmerge] Fix bug: Include ‘-A’, ‘-E’, ‘-e’ in ‘--help’ output.
1831
1832 Reported by Honza Horak.
1833
1834 * rcsmerge.c <help text>: ...here.
1835
1836 2013-04-05 Thien-Thi Nguyen <[email protected]>
1837
1838 Mention ineffectual options more prominently.
1839
1840 Suggested by Honza Horak.
1841
1842 * rcsdiff.c <help text>: Add ‘-T’.
1843 * rcsmerge.c <help text>: Likewise.
1844 * rlog.c <help text>: Likewise.
1845
1846 2013-04-04 Thien-Thi Nguyen <[email protected]>
1847
1848 Release: 5.8.2
1849
1850 2013-04-02 Thien-Thi Nguyen <[email protected]>
1851
1852 Fix bug: Also check terminating nul in symbol deref search.
1853
1854 Regression introduced 2010-04-21, "Add abstraction: fully_numeric".
1855
1856 * rcsrev.c (rev_from_symbol): ...here.
1857
1858 2013-03-30 Thien-Thi Nguyen <[email protected]>
1859
1860 Fix bug: Define syntax for ‘integrity’ value.
1861
1862 * b-grok.c (full): If ‘integrity’ has a value and that
1863 value includes an internal '@' (U+40), signal a syntax error.
1864
1865 2012-06-05 Thien-Thi Nguyen <[email protected]>
1866
1867 Release: 5.8.1
1868
1869 2012-05-20 Thien-Thi Nguyen <[email protected]>
1870
1871 [doc] Say "checked in" instead of "commited" (sic).
1872
1873 * rlog.c <help text>: Say "checked in" in ‘-w’ description.
1874
1875 2012-05-09 Thien-Thi Nguyen <[email protected]>
1876
1877 [int] Add abstractions: ODDP, EVENP
1878
1879 * base.h (ODDP, EVENP): New macros.
1880 * b-grok.c (maybe_read_num): Use ‘EVENP’.
1881 * ci.c (addbranch): Use ‘ODDP’, ‘EVENP’.
1882 (addelta): Use ‘EVENP’.
1883 (xpandfile): Use ‘ODDP’.
1884 * rcs.c (removerevs): Use ‘ODDP’.
1885 (setlock, dolocks, rcs_setstate): Use ‘EVENP’.
1886 * rcskeep.c (keeprev): Use ‘ODDP’.
1887 * rcsrev.c (accumulate_branchno, absent, fully_numeric): Likewise.
1888 * rlog.c (extractdelta): Likewise.
1889
1890 2012-05-08 Thien-Thi Nguyen <[email protected]>
1891
1892 [int] Add abstraction: SIZEOF_NLINES
1893
1894 * rcsedit.c (SIZEOF_NLINES): New macro.
1895 (movelines, insertline): Use ‘SIZEOF_NLINES’.
1896
1897 2012-05-08 Thien-Thi Nguyen <[email protected]>
1898
1899 [int] Incorporate test{re,}alloc into unique caller.
1900
1901 * rcsedit.c (testalloc, testrealloc): Delete funcs.
1902 (insertline): Use ‘okalloc’, ‘malloc’, ‘realloc’ directly.
1903
1904 2012-05-08 Thien-Thi Nguyen <[email protected]>
1905
1906 [int] Incorporate ‘exit_failurefully’ into unique caller.
1907
1908 * base.h (exit_failurefully): Delete func decl.
1909 * rcsutil.c (exit_failurefully): Delete func.
1910
1911 2012-05-08 Thien-Thi Nguyen <[email protected]>
1912
1913 [int] Make ‘exit_diff_trouble’ static.
1914
1915 * base.h (exit_diff_trouble): Delete func decl.
1916 * rcsutil.c (exit_diff_trouble): Make static.
1917
1918 2012-05-08 Thien-Thi Nguyen <[email protected]>
1919
1920 [int] Redo "exit errorfully" specialization/implementation.
1921
1922 * rcsutil.c (thank_you_and_goodnight): New func.
1923 * base.h (struct program): Add member ‘tyag’; delete member ‘exiterr’.
1924 (thank_you_and_goodnight): New func decl.
1925 (TYAG_ORCSERROR, TYAG_DIRTMPUNLINK, TYAG_TEMPUNLINK, TYAG_DIFF)
1926 (TYAG_IMMEDIATE, BOG_DIFF, BOG_ZONK, BOG_FULL): New #define:s.
1927 (BOW_OUT): Rewrite.
1928 * ci.c (exiterr): Delete func.
1929 (ci_main): Update ‘program’ init form.
1930 * co.c (exiterr, co_main): Likewise.
1931 * ident.c (exiterr, main): Likewise.
1932 * merge.c (exiterr, main): Likewise.
1933 * rcs.c (exiterr, rcs_main): Likewise.
1934 * rcsclean.c (exiterr, rcsclean_main): Likewise.
1935 * rcsdiff.c (exiterr, rcsdiff_main): Likewise.
1936 * rcsmerge.c (exiterr, rcsmerge_main): Likewise.
1937 * rlog.c (exiterr, rlog_main): Likewise.
1938
1939 2012-05-08 Thien-Thi Nguyen <[email protected]>
1940
1941 [int] Add abstraction: BOW_OUT
1942
1943 * base.h (BOW_OUT): New macro.
1944 * b-complain.c (die): Use ‘BOW_OUT’.
1945 * b-fb.c (Oerror): Likewise.
1946 * b-isr.c (werr, catchsigaction): Likewise.
1947 * ident.c (scanfile): Likewise.
1948 * merge.c (main): Likewise.
1949 * merger.c (merge): Likewise.
1950
1951 2012-05-08 Thien-Thi Nguyen <[email protected]>
1952
1953 [int] Expose ‘okalloc’ instead of ‘oom’.
1954
1955 * rcsedit.c (okalloc): Move func from here...
1956 * b-divvy.c (oom): Make static.
1957 (okalloc): ...to here; make non-static.
1958 * b-divvy.h (oom): Delete func decl.
1959 (okalloc): Add func decl.
1960
1961 2012-04-06 Thien-Thi Nguyen <[email protected]>
1962
1963 [C] Fix bug: Avoid ‘bool’ for temporary ‘int’ values.
1964
1965 Regression introduced 2010-03-16, "Use `bool' (and `true'
1966 and `false') more". When assigning to a bool from an int,
1967 if the int is negative, the bool will be true, losing
1968 information when that value is later compared against zero.
1969 Reported by Paul Ackersviller.
1970
1971 * ci.c (addbranch): Change type of ‘removedlock’ back to ‘int’.
1972
1973 2012-01-20 Thien-Thi Nguyen <[email protected]>
1974
1975 [build] Add configure option ‘--enable-coverage’.
1976
1977 * rcsutil.c [USE_NORMAL_EXIT] (_Exit): New #define.
1978
1979 2012-01-15 Thien-Thi Nguyen <[email protected]>
1980
1981 ci: Fix bug: Don't discard working file mtime with ‘-T’.
1982
1983 Regression introduced 2010-03-13, "Topo-sort top-level;
1984 eliminate redundant forward func decls".
1985
1986 * ci.c (ci_main): Move incorrectly-placed parens in
1987 sub-conditional-expression from "partial condition" to
1988 condition; add additional pair of parens around sub-cond-expr.
1989
1990 2012-01-13 Thien-Thi Nguyen <[email protected]>
1991
1992 Invoke diff(1) with ‘--label’ instead of ‘-L’.
1993
1994 * rcsdiff.c (setup_label): Use "--label", not "-L".
1995
1996 2011-12-26 Oliver Billmann <[email protected]> (tiny change)
1997
1998 Fix bug: Fully init ‘struct tm t’ used for ‘-zLT’ handling.
1999
2000 On the i686 machine it was "initialized" with some large negative
2001 number which will than lead to tm_yday being initialized in tm2time.
2002 But on the x86_64 machine it contained the valid value 0 which than
2003 always leads to YYYY-01-01.
2004
2005 ttn sez: Regression introduced 2011-01-13,
2006 "Fix bug: Don't clobber ‘yday’ unconditionally".
2007 To avoid this class of bug in the future, when converting
2008 an assignment from unconditional to conditional, be sure
2009 to initialize "upstream" of the conversion location,
2010 in effect, moving the unconditional assignment earlier.
2011
2012 * rcstime.c (date2str): Init also ‘t.tm_yday’.
2013
2014 2011-12-25 Thien-Thi Nguyen <[email protected]>
2015
2016 rlog: Fix bug: Remove debugging instrumentation.
2017
2018 Code introduced 2010-06-01, "Add abstractions:
2019 {NUM,DATE}_{LT,EQ,GT}, NUMF_{LT,EQ}".
2020 This is a bug fix and not merely "decruft" because
2021 in the meantime, RCS 5.8 was released. :-(
2022
2023 * rlog.c (extdate): Remove calls to ‘complain’.
2024
2025 2011-10-30 Thien-Thi Nguyen <[email protected]>
2026
2027 [dist] Decruft: Don't distribute TAGS.
2028
2029 * Makefile.am (EXTRA_DIST): Remove TAGS, $(TESTS).
2030
2031 2011-10-29 Thien-Thi Nguyen <[email protected]>
2032
2033 [int] Make ‘accumulate_range’ faster.
2034
2035 * b-divvy.c (accumulate_range): Use ‘obstack_grow’.
2036
2037 2011-10-29 Thien-Thi Nguyen <[email protected]>
2038
2039 [int] Use ‘COMMAND_LINE_VARYING’ more.
2040
2041 Omission from 2011-10-28, "Add
2042 abstraction: COMMAND_LINE_VARYING".
2043
2044 * rcsdiff.c (main): Use ‘COMMAND_LINE_VARYING’ for "-M".
2045
2046 2011-10-29 Thien-Thi Nguyen <[email protected]>
2047
2048 [int] Add abstraction: one_beyond_last_dir_sep
2049
2050 * b-beer.h (one_beyond_last_dir_sep): New func decl.
2051 * b-peer.c (one_beyond_last_dir_sep): New func.
2052 (find_peer_prog): Use ‘one_beyond_last_dir_sep’.
2053
2054 2011-10-29 Thien-Thi Nguyen <[email protected]>
2055
2056 [int] Add abstraction: VX
2057
2058 * co.c (VX): New #define.
2059 (buildjoin): Use ‘VX’.
2060
2061 2011-10-29 Thien-Thi Nguyen <[email protected]>
2062
2063 [build] Use portable Makefile subst-ref variable syntax.
2064
2065 The syntax $(VAR:%=%SUFFIX) is a GNU Make extension.
2066
2067 * Makefile.am (BUILT_SOURCES): Use $(VAR:=SUFFIX).
2068
2069 2011-10-28 Thien-Thi Nguyen <[email protected]>
2070
2071 [int] Add abstraction: COMMAND_LINE_VARYING
2072
2073 * rcsdiff.c (COMMAND_LINE_VARYING): New #define.
2074 (main): Use ‘COMMAND_LINE_VARYING’.
2075
2076 2011-10-18 Thien-Thi Nguyen <[email protected]>
2077
2078 [build int] Use gnulib to implement ‘exiting’ func attribute.
2079
2080 * base.h (exiting): Use ‘_Noreturn’ directly.
2081
2082 2011-10-18 Thien-Thi Nguyen <[email protected]>
2083
2084 [build int] Decruft: Remove obsolete handling for broken ‘printf %.2d’.
2085
2086 * rcstime.c (proper_dot_2): Delete macro.
2087 (time2date, date2str): Use format string with ".2d" directly.
2088
2089 2011-10-13 Ian Delaney <[email protected]> (tiny change)
2090
2091 Fix bug: Make sure rcsgen.c sees ‘makedirtemp’ decl.
2092
2093 * rcsgen.c: #include "b-feph.h".
2094
2095 2011-10-13 Thien-Thi Nguyen <[email protected]>
2096
2097 [int] Use program-specific variable name for extracted help.
2098
2099 * ci.c (main): Update ‘program’ initialization form.
2100 * co.c (main): Likewise.
2101 * ident.c (main): Likewise.
2102 * merge.c (main): Likewise.
2103 * rcs.c (main): Likewise.
2104 * rcsclean.c (main): Likewise.
2105 * rcsdiff.c (main): Likewise.
2106 * rcsmerge.c (main): Likewise.
2107 * rlog.c (main): Likewise.
2108
2109 2011-09-16 Thien-Thi Nguyen <[email protected]>
2110
2111 [int] Use ‘set_program_name’ from gnulib.
2112
2113 * rcsutil.c: #include "progname.h".
2114 (gnurcs_init): Use ‘set_program_name’ and ‘program->invoke’.
2115 * b-complain.c (program_name): Delete var.
2116 * b-complain.h (program_name): Delete var decl.
2117
2118 2011-09-16 Thien-Thi Nguyen <[email protected]>
2119
2120 [int] Avoid "discards qualifiers" warning from GCC 4.4.
2121
2122 This correctly finishes the incomplete lameness of 2011-06-14,
2123 "Avoid "discards qualifiers" warning from GCC 3.4". The overall
2124 change is to convert from ‘char const *’ to ‘const char *’.
2125
2126 * b-isr.c (catchsigaction): Add ‘const’ to local var.
2127
2128 2011-08-30 Thien-Thi Nguyen <[email protected]>
2129
2130 Release: 5.8
2131
2132 2011-08-08 Thien-Thi Nguyen <[email protected]>
2133
2134 Use colon in ‘--version’ output instead of semicolon.
2135
2136 Reported by Karl Berry.
2137
2138 * gnu-h-v.c (COMMAND_VERSION): Use ‘:’ not ‘;’.
2139
2140 2011-07-09 Thien-Thi Nguyen <[email protected]>
2141
2142 [build] Work around compilers that omit '\0' from tinysym init.
2143
2144 Reported by Nelson H. F. Beebe, for SunOS 5.11 cc, c99.
2145
2146 * b-anchor.c (EXPLICIT_NUL): New #define.
2147 (TINY_INIT): Use ‘EXPLICIT_NUL’.
2148
2149 2011-06-14 Thien-Thi Nguyen <[email protected]>
2150
2151 [int] Separate ISR scratch and alt sig stack allocations.
2152
2153 * b-isr.c: Don't #include <ucontext.h> or "woe/ucontext.h".
2154 (scratch_from_context): Delete func.
2155 (catchsigaction): Mark 3rd arg ‘RCS_UNUSED’; use ‘ISR_SCRATCH’.
2156 (SCRATCH_SIZE): Delete #define.
2157 (isr_init): Use ‘ZLLOC’ for ISR scratch; use
2158 separate ‘alloc’ in ‘PLEXUS’ for alternate signal stack.
2159 * Makefile.am (EXTRA_DIST): Remove woe.
2160 * woe/COPYING.LIB: Delete file.
2161 * woe/ucontext.h: Delete file.
2162 * woe/ucontext.c: Delete file.
2163
2164 2011-06-14 Thien-Thi Nguyen <[email protected]>
2165
2166 [int] Avoid "discards qualifiers" warning from GCC 3.4.
2167
2168 * b-isr.c (catchsigaction): Drop ‘const’ from local var.
2169
2170 2011-06-13 Thien-Thi Nguyen <[email protected]>
2171
2172 [int] Use ‘rewind’ directly; drop homegrown replacement.
2173
2174 Incidentally, t400, which had started--triggered by changes in
2175 gnulib--to fail towards the beginning of 2011-05, now passes.
2176 Probably some more investigation is indicated. See bleating at:
2177 http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00122.html
2178
2179 * ci.c (main): Use ‘rewind’ directly.
2180 * merger.c (merge): Likewise.
2181 * rcs.c (sendmail, buildeltatext): Likewise.
2182 * rcsedit.c (swapeditfiles): Likewise.
2183 * b-fb.h (Orewind): Delete func decl.
2184 * b-fb.c (Orewind): Delete func.
2185
2186 2011-06-12 Thien-Thi Nguyen <[email protected]>
2187
2188 [int] Decruft: Don't bother with ‘SSIZE_MAX’ check/#define.
2189
2190 * rcsutil.c (SSIZE_MAX): Delete #define
2191 and surrounding preprocessor conditional.
2192
2193 2011-06-11 Thien-Thi Nguyen <ttn@ambire>
2194
2195 [int] Avoid more signed/unsigned comparison warnings from GCC 4.4.
2196
2197 * b-fro.c (fro_spew_partial): Locally #define and #undef
2198 ‘MEMBUFSIZ’; use it instead of ‘(off_t) sizeof (buf)’.
2199 (string_from_atat): Use ‘SSIZE_MAX’.
2200
2201 2011-06-10 Thien-Thi Nguyen <ttn@ambire>
2202
2203 [int] Use ‘off_t’ for ‘behavior.mem_limit’.
2204
2205 Incidentally, this eliminates a "comparison between signed
2206 and unsigned integer expressions" warning from GCC 4.4.
2207
2208 * base.h (struct behavior): Change type of ‘mem_limit’ to ‘off_t’.
2209 * b-fro.c (fro_open): Delete cast to ‘off_t’.
2210
2211 2011-02-01 Thien-Thi Nguyen <[email protected]>
2212
2213 [grok] Fix bug: Make sure error message accumulates cleanly.
2214
2215 Omission from 2010-05-24, "Rewrite parsing".
2216
2217 * b-grok.c: #include <stdarg.h>.
2218 (ignoble): Take args FMT and varargs; discard work-in-progress
2219 cruft on ‘g->systolic’; do accumulate string here, not ...
2220 (BUMMER): ...here; update call to ‘ignoble’.
2221
2222 2011-01-31 Thien-Thi Nguyen <[email protected]>
2223
2224 [int] Include <stdarg.h> for ‘va_start’ et al.
2225
2226 * b-divvy.c: #include <stdarg.h>.
2227 * b-fb.c: Likewise.
2228
2229 2011-01-23 Thien-Thi Nguyen <[email protected]>
2230
2231 [int] Fix bug: Use "three manifestations" for ‘!DIFF3_BIN’.
2232
2233 Reported by Nelson H. F. Beebe.
2234 Regression introduced 2010-09-30, "Use ‘struct symdef’
2235 array as "three manifestations" ‘merge’ arg".
2236
2237 * merger.c (merge) [!DIFF3_BIN]: Use ‘LABEL’, not ‘label’.
2238
2239 2011-01-22 Thien-Thi Nguyen <[email protected]>
2240
2241 [dtp] Fix bug: Handle ISO week+day dates.
2242
2243 * maketime.c (ISO_day_of_week): New static func.
2244 (tm2time): Take additional arg YWEEK; if specified,
2245 compute yday, and maybe year, for later ‘yday’ processing.
2246 (maketime): Update call to ‘tm2time’.
2247 * maketime.h (tm2time): Update func decl.
2248 * rcstime.c (date2str): Update call to ‘tm2time’.
2249
2250 2011-01-22 Thien-Thi Nguyen <[email protected]>
2251
2252 [dtp] Fix bug: Encode weekday number (letter ‘X’) with modulo.
2253
2254 * partime.c (parse_pattern_letter <X>): Use modulo to encode value.
2255
2256 2011-01-14 Thien-Thi Nguyen <[email protected]>
2257
2258 [int] Decruft: Remove "yet another redolently redundant RCS rap".
2259
2260 * Makefile.am (EXTRA_DIST): Remove yarrrr.c.
2261 (YALL, YPROGS): Delete vars.
2262 ($(YPROGS)): Delete target.
2263 (y-all, y-clean): Likewise.
2264 * yarrrr.c: Delete file.
2265
2266 2011-01-14 Thien-Thi Nguyen <[email protected]>
2267
2268 [int] With ‘EXEEXT’, use ‘execvp’ instead of ‘execv’.
2269
2270 * rcsutil.c (EXECV): New #define.
2271 (runv): Use ‘EXECV’.
2272
2273 2011-01-14 Thien-Thi Nguyen <[email protected]>
2274
2275 [int] With ‘EXEEXT’, don't absolutize; instead, simply suffix.
2276
2277 * b-peer.c (LOSE): Delete macro.
2278 (invocation_full_name): Delete func.
2279 (find_peer_prog) [!EXEEXT]: Call ‘find_in_path’, ‘PFATAL’
2280 directly; mention directory and env var ‘PATH’ in error message.
2281 (find_peer_prog) [EXEEXT]: Compute the underlying filename
2282 as simply the concatenation of the meaningful and ‘EXEEXT’.
2283
2284 2011-01-13 Thien-Thi Nguyen <[email protected]>
2285
2286 [int] Make error message for peer-finding failure more informative.
2287
2288 * b-peer.c (LOSE): Use "free var" ‘name’.
2289
2290 2011-01-13 Thien-Thi Nguyen <[email protected]>
2291
2292 [int] Consider ‘EXEEXT’ when searching for peer programs.
2293
2294 * b-peer.c (invocation_full_name) [EXEEXT]: Construct a
2295 filename, appending ‘PROGRAM (invoke)’ and ‘EXEEXT’ if necessary.
2296
2297 2011-01-13 Thien-Thi Nguyen <[email protected]>
2298
2299 [int] Handle failure to find peer programs more gracefully.
2300
2301 * b-peer.c: Include "b-complain.h".
2302 (LOSE): New macro.
2303 (invocation_full_name): New static func.
2304 (find_peer_prog): Use ‘invocation_full_name’;
2305 if last slash cannot be found, don't abort;
2306 instead, display a diagnostic and exit failurefully.
2307
2308 2011-01-13 Thien-Thi Nguyen <[email protected]>
2309
2310 [dtp] Fix bug: Don't clobber ‘yday’ unconditionally.
2311
2312 * maketime.c (tm2time): If ‘yday’ is valid, compute ‘mon’
2313 and ‘mday’ from it; otherwise, compute it from ‘mon’ and ‘mday’.
2314
2315 2011-01-13 Thien-Thi Nguyen <[email protected]>
2316
2317 Fix bug: Don't confuse day of {week,year} in date parsing.
2318
2319 * partime.c (merge_partime): For both conflict detection
2320 and actual merging, don't conflate ‘.tm_wday’ and ‘.tm_yday’.
2321
2322 2011-01-11 Thien-Thi Nguyen <[email protected]>
2323
2324 [build] Use bundled woe/ucontext.h for cygwin.
2325
2326 * Makefile.am (executables): New var.
2327 (bin_PROGRAMS, BUILT_SOURCES): Use $(executables).
2328 (EXTRA_DIST): Add woe.
2329 * b-isr.c [!HAVE_UCONTEXT_H && NEED_WOE_UCONTEXT_H]:
2330 #include woe/ucontext.h.
2331 (SA_ONSTACK): #define, if not already.
2332 (ISR_STACK_SIZE): Conditionalize on
2333 ‘defined HAVE_SIGALTSTACK && define SIGSTKSZ’; if
2334 these elements are not found, default to 0 (zero).
2335 * woe: New directory.
2336 * woe/COPYING.LIB: New file.
2337 * woe/ucontext.c: New file.
2338 * woe/ucontext.h: New file.
2339
2340 2011-01-11 Thien-Thi Nguyen <[email protected]>
2341
2342 rlog: Output trailing newline for midline description.
2343
2344 * rlog.c (main <description>): Ensure trailing newline.
2345
2346 2011-01-11 Thien-Thi Nguyen <[email protected]>
2347
2348 rlog: Fix bug: Output trailing newline for midline log messages.
2349 Ch
2350 Regression introduced 2010-05-24, "Rewrite parsing".
2351
2352 * b-fro.c (atat_display): Take third arg ENSURE_NEWLINE_P;
2353 if ‘true’ and an atat is non-empty and ends without a newline,
2354 output a trailing newline.
2355 * b-fro.h (atat_display): Update func decl.
2356 * rcsedit.c (copystring): Update call to ‘atat_display’.
2357 * rlog.c (putadelta): Update call to ‘atat_display’,
2358 specifying ENSURE_NEWLINE_P ‘true’.
2359 (main <description>): Update call to ‘atat_display’.
2360
2361 2011-01-10 Thien-Thi Nguyen <[email protected]>
2362
2363 [int] Add abstractions: semi_lf, SEMI_LF
2364
2365 * rcsgen.c (semi_lf): New const string.
2366 (SEMI_LF): New macro.
2367 (putadmin, putdelta): Use ‘semi_lf’, ‘SEMI_LF’.
2368
2369 2011-01-10 Thien-Thi Nguyen <[email protected]>
2370
2371 Pass through ‘integrity’ field in RCS file.
2372
2373 * base.h (struct repo): Add member ‘integrity’.
2374 (tiny_integrity): New var decl, via ‘TINY_DECL’.
2375 * b-anchor.c (tiny_integrity): New var, via ‘TINYK’.
2376 * b-grok.c (full): Recognize ‘integrity’ prior to ‘comment’.
2377 * rcsgen.c (putadmin): Output integrity info, if available.
2378
2379 2011-01-07 Thien-Thi Nguyen <[email protected]>
2380
2381 [build] Fix bug: Account for $(EXEEXT) in .help filenames.
2382
2383 Omission from 2010-03-19, "Use GNU Automake".
2384
2385 * Makefile.am (BUILT_SOURCES): Include $(EXEEXT)
2386 in source part of ‘$(VAR:SOURCE=TARGET)’ reference.
2387
2388 2010-11-29 Thien-Thi Nguyen <[email protected]>
2389
2390 [grok] Recognize duplicate delta log; throw error.
2391
2392 Omission from 2010-05-24, "Rewrite parsing".
2393 * b-grok.c (full <edits>): Signal "duplicate delta log"
2394 error if a log already exists for a particular delta.
2395
2396 2010-11-29 Thien-Thi Nguyen <[email protected]>
2397
2398 [grok] Fix bug: Check all branch forward references for match.
2399
2400 * b-grok.c (fwref): New struct.
2401 (full): Keep track of line number of branch references, too;
2402 after reading tree, check that all refs were indeed matched.
2403
2404 2010-11-29 Thien-Thi Nguyen <[email protected]>
2405
2406 [grok] Fix bug: Check that new branch was forward referenced.
2407
2408 * b-grok.c (full): Keep track of branch references;
2409 check that new branches are properly forward-referenced.
2410
2411 2010-11-29 Thien-Thi Nguyen <[email protected]>
2412
2413 [grok] Fix bug: Check that branches begin w/ branch point.
2414
2415 * b-grok.c (full <revisions>): Check that
2416 branches begin with the branch point revision.
2417
2418 2010-11-19 Thien-Thi Nguyen <[email protected]>
2419
2420 [int] Fix bug: For unchanged checkin on branch, prune ‘newdelta’.
2421
2422 Expansion of 2010-11-14, "Fix bug: For
2423 unchanged checkin, invalidate ‘newdelta’".
2424 * ci.c (prune): New static func.
2425 (main): On unchanged checkin, use ‘prune’;
2426 incorporate ‘newdelta’ invalidation into ‘prune’.
2427
2428 2010-11-14 Thien-Thi Nguyen <[email protected]>
2429
2430 [int] Fix bug: For unchanged checkin, invalidate ‘newdelta’.
2431
2432 Regression introduced 2010-05-24, "Rewrite parsing".
2433 * ci.c (main): On unchanged checkin, where we have started
2434 to build the wrong new RCS file, invalidate ‘newdelta’.
2435
2436 2010-11-13 Thien-Thi Nguyen <[email protected]>
2437
2438 [build] Define ‘program_name’ for gnulib.
2439
2440 * b-complain.c (program_name): New var.
2441 * b-complain.h (program_name): New var decl.
2442 * rcsutil.c (gnurcs_init): Set ‘program_name’.
2443 Reported by Klaus T. Aehlig.
2444
2445 2010-11-13 Thien-Thi Nguyen <[email protected]>
2446
2447 [int] Fix bug: Use ‘gr_revno’ more.
2448
2449 Regression introduced 2010-05-08,
2450 "Add abstraction: delta_from_ref".
2451 * ci.c (addbranch): Take 4th arg TP_DELTAS; use ‘gr_revno’.
2452 (addelta): Update calls to ‘addbranch’.
2453 (main): Use ‘gr_revno’ instead of ‘delta_from_ref’.
2454 * rcs.c (setlock): Take arg TP_DELTAS; use ‘gr_revno’.
2455 (dolocks): Likewise; update calls to ‘setlock’.
2456 (domessages, rcs_setstate): Likewise.
2457 (main): Update calls to ‘dolocks’, ‘domessages’, ‘rcs_setstate’.
2458
2459 2010-11-12 Thien-Thi Nguyen <[email protected]>
2460
2461 [int] Incorporate ‘DELNUMFORM’ into unique use.
2462
2463 * rcsgen.c (rcsgen.c): Use string directly for revno, "log".
2464 * base.h (DELNUMFORM): Delete #define.
2465
2466 2010-11-12 Thien-Thi Nguyen <[email protected]>
2467
2468 ci, rcs: Make MSG in ‘-m...MSG’ optional.
2469
2470 * rcsutil.c (set_empty_log_message): New func.
2471 * base.h (set_empty_log_message): New func decl.
2472 * ci.c (getlogmsg, main): Use ‘set_empty_log_message’.
2473 * rcs.c (getmessage): Likewise.
2474
2475 2010-11-12 Thien-Thi Nguyen <[email protected]>
2476
2477 [int] Fix bug: Output leading '@' for "rcs -m" log in RCS file.
2478
2479 Omission from 2010-05-24, "Rewrite parsing".
2480 * rcs.c (scanlogtext): When replacing
2481 log text from "rcs -m", output leading '@'.
2482
2483 2010-11-10 Thien-Thi Nguyen <[email protected]>
2484
2485 [int] Use ‘oom’ more.
2486
2487 * b-divvy.c (oom): Make func not static.
2488 * b-divvy.h (oom): New func decl.
2489 * rcsedit.c (okalloc): Use ‘oom’.
2490
2491 2010-11-09 Thien-Thi Nguyen <[email protected]>
2492
2493 [doc] Fix typo: Mention rcsdiff ‘-B’ once only.
2494
2495 * rcsdiff.c: Mention ‘-B’ once only in help text.
2496 Reported by Keith Thompson.
2497
2498 2010-11-04 Thien-Thi Nguyen <[email protected]>
2499
2500 Include extra \n in RCS file to fully emulate RCS 5.7.
2501
2502 * rcsgen.c (putadmin): Output trailing newline.
2503
2504 2010-11-03 Thien-Thi Nguyen <[email protected]>
2505
2506 Revert symbolic names ordering to be compatible with RCS 5.7.
2507
2508 Translation oversight from 2010-04-28, "Replace
2509 ‘struct assoc’ with ‘struct wlink’ + ‘struct symdef’".
2510 * rcsedit.c (addsymbol): For new symbolic
2511 names, add to front of list instead of end.
2512
2513 2010-11-03 Thien-Thi Nguyen <[email protected]>
2514
2515 [int] Fix bug: Maintain ‘GROK (deltas)’ in proper order.
2516
2517 Omission from 2010-05-24, "Rewrite parsing".
2518 * b-grok.c (full): Reorder ‘repo->deltas’
2519 to reflect edits order, not index order.
2520
2521 2010-10-29 Thien-Thi Nguyen <[email protected]>
2522
2523 [int] Reuse backing store in ‘swapeditfiles’.
2524
2525 * rcsedit.c (swapeditfiles): Allocate and
2526 do basic initialization for ‘es->fedit’ once only.
2527
2528 2010-10-29 Thien-Thi Nguyen <[email protected]>
2529
2530 [int] Fix bug: For stdio operation, prep ‘finishedit’ properly.
2531
2532 Regressions introduced 2010-04-17 and 2010-05-31, in
2533 "Overhaul read-only file handling" and "Mark verbatim
2534 region; reduce transitional tell/seek", respectively.
2535 * rcsedit.c (swapeditfiles): Set the fro ‘.end’ as well.
2536 (finishedit_slow): Prior to spewing, set start point.
2537
2538 2010-10-21 Thien-Thi Nguyen <[email protected]>
2539
2540 [int] Add abstraction: local_tm
2541
2542 Omission from 2010-06-12, "Use ‘gmtime_r’, ‘localtime_r’".
2543 * maketime.c (local_tm): New func.
2544 (time2tm): Use ‘local_tm’.
2545 * maketime.h (struct maketimestuff): Add member ‘tzset_called_p’.
2546 (local_tm): New func decl.
2547 * rcstime.c (date2str): Use ‘local_tm’.
2548
2549 2010-10-17 Thien-Thi Nguyen <[email protected]>
2550
2551 [int C] Cast less.
2552
2553 * b-fro.c (fro_spew_partial): Remove unnecessary cast.
2554 * ci.c (BHDELTA): Delete macro.
2555 (addbranch): Use local var for temp ‘struct delta *’.
2556 * rcs.c (dolocks): Use local var for temp ‘const char *’.
2557
2558 2010-10-17 Thien-Thi Nguyen <[email protected]>
2559
2560 [int] Use ‘NULL’ more.
2561
2562 * b-fro.c (fro_open): In the case of ‘RM_MEM’
2563 on a zero-sized file, use ‘NULL’ for ‘f->base’.
2564
2565 2010-10-17 Thien-Thi Nguyen <[email protected]>
2566
2567 [int] Add abstraction: nfs_NOENT_p
2568
2569 * rcsedit.c (nfs_NOENT_p): New static func.
2570 (un_link, chnamemod): Use ‘nfs_NOENT_p’.
2571
2572 2010-10-17 Thien-Thi Nguyen <[email protected]>
2573
2574 [build] Add configure option: --enable-suid[=setreuid]
2575
2576 * b-excwho.c (set_uid_to): Use ‘HAVE_SETREUID’.
2577 * base.h (has_setreuid): Delete #define.
2578
2579 2010-10-15 Thien-Thi Nguyen <[email protected]>
2580
2581 [int] Don't bother with ‘psignal’.
2582
2583 * b-isr.c (complain_signal) [HAVE_PSIGNAL]:
2584 Delete code and surrounding preprocessor conditional.
2585
2586 2010-10-15 Thien-Thi Nguyen <[email protected]>
2587
2588 [int] Add abstraction: change_mode
2589
2590 * b-fb.c (change_mode): New func.
2591 * b-fb.h (change_mode): New func decl.
2592 * ci.c (fixwork): Use ‘change_mode’.
2593 * rcsedit.c (chnamemod): Likewise.
2594
2595 2010-10-15 Thien-Thi Nguyen <[email protected]>
2596
2597 [int] Fix bug: Allocate ‘REPO (r)’ also for new repo.
2598
2599 Omission from 2010-05-24, "Rewrite parsing".
2600 * b-grok.c (empty_repo): New func.
2601 (full): Use ‘empty_repo’.
2602 * b-grok.h (empty_repo): New func decl.
2603 * rcsfnms.c (InitAdmin): Use ‘empty_repo’.
2604 * ci.c (addelta): No longer check for NULL ‘REPO (r)’.
2605 * rcsgen.c (format_assocs): Likewise.
2606 * rcsmerge.c (main): Likewise.
2607 * rcs.c (main): Likewise. Also, use ‘GROK (desc)’ directly.
2608 Reported by Nelson H. F. Beebe.
2609
2610 2010-10-13 Thien-Thi Nguyen <[email protected]>
2611
2612 [int] Include program name in autogenerated tmpfile name.
2613
2614 * b-feph.c (struct ephemstuff):
2615 Drop member ‘tmpdir’; add member ‘standard’.
2616 (jam_sff): Include ‘PROGRAM (name)’ in ‘EPH (standard)’.
2617
2618 2010-10-13 Thien-Thi Nguyen <[email protected]>
2619
2620 [int] Presume availability of ‘strsignal’.
2621
2622 * b-isr.c: Don't #include "sig2str.h".
2623 (complain_signal) [!HAVE_STRSIGNAL]: Delete
2624 code and surrounding preprocessor conditional.
2625
2626 2010-10-13 Thien-Thi Nguyen <[email protected]>
2627
2628 [int] Presume availability of ‘sigaction’.
2629
2630 * b-isr.c (scratch_from_context) [!HAVE_SIGACTION]: Delete code.
2631 (catchsigaction): Don't reset the handler.
2632 [!HAVE_SIGACTION] (catchsig): Delete func.
2633 (setup_catchsig) [!HAVE_SIGACTION]: Delete code.
2634 [!HAVE_SIGACTION] (ISR_STACK_SIZE): Delete code,
2635 leaving unconditionally #define:d ‘ISR_STACK_SIZE’.
2636
2637 2010-10-13 Thien-Thi Nguyen <[email protected]>
2638
2639 [int] Use ‘getlogin_r’, not ‘getlogin’.
2640
2641 * b-excwho.c (getusername): Use ‘getlogin_r’ instead
2642 of ‘getlogin’; share local ‘buf’ with ‘getpwuid_r’.
2643 * base.h (getlogin_is_secure): Delete #define.
2644
2645 2010-10-13 Thien-Thi Nguyen <[email protected]>
2646
2647 [int] Use ‘getpwuid_r’, not ‘getpwuid’.
2648
2649 * b-excwho.c (getusername) [HAVE_GETUID && HAVE_GETPWUID]:
2650 Delete code; move #else code to...
2651 [!HAVE_GETPWUID_R]: ...here.
2652 [HAVE_GETPWUID_R]: Use ‘getpwuid_r’ to find user name.
2653
2654 2010-10-13 Thien-Thi Nguyen <[email protected]>
2655
2656 [build] Use autoconf macro to enable 64-bit file offsets.
2657
2658 * base.h (_FILE_OFFSET_BITS): Remove #define.
2659
2660 2010-10-12 Thien-Thi Nguyen <[email protected]>
2661
2662 [C] Use ‘%zu’ for ‘size_t’ arg in format string.
2663
2664 * rlog.c (main): Use ‘%zu’ in format
2665 string to output the ‘GROK (deltas_count)’.
2666
2667 2010-10-12 Thien-Thi Nguyen <[email protected]>
2668
2669 [C] Cast precision expression for ‘%.*s’ to ‘int’.
2670
2671 Omission from 2010-05-18,
2672 "Don't mutate string in ‘checkidentifier’".
2673 * rcsmap.c (checkidentifier):
2674 Cast precision expression for ‘%.*s’ to ‘int’.
2675
2676 2010-10-12 Thien-Thi Nguyen <[email protected]>
2677
2678 [C] Use ‘%zu’ for ‘size_t’ arg in format string.
2679
2680 * rcsedit.c (finisheditline): Use ‘%zu’ in
2681 format string to output the ‘finctx->script_lno’.
2682
2683 2010-10-12 Thien-Thi Nguyen <[email protected]>
2684
2685 [int] Simplify stream/fd sync; avoid ‘fflush’ on input.
2686
2687 * ci.c (main): For sending ‘workptr’ fd to diff(1),
2688 don't save current fd position, ‘fflush’ conditionally,
2689 and restore afterwards; instead, seek to beginning only.
2690 Also, do all this regardless of ‘STDIO_P (workptr)’.
2691
2692 2010-10-12 Thien-Thi Nguyen <[email protected]>
2693
2694 [int] Presume availability of ‘waitpid’.
2695
2696 * rcsutil.c (runv) [!defined HAVE_WAITPID]:
2697 Delete code and surrounding preprocessor conditional.
2698
2699 2010-10-11 Thien-Thi Nguyen <[email protected]>
2700
2701 [int] Fix typo: group ‘getusername’ cond exprs correctly.
2702
2703 Regression introduced 2010-04-11,
2704 "Move cached username into `struct behavior'".
2705 * b-excwho.c (getusername) [getlogin_is_secure]:
2706 Move close-paren back one line, thus promoting
2707 ‘&& !JAM (getlogin ())’ to top-level of expression.
2708
2709 2010-10-11 Thien-Thi Nguyen <[email protected]>
2710
2711 [int] Presume availability of ‘getcwd’.
2712
2713 * rcsfnms.c: Don't #include "b-isr.h".
2714 [!HAVE_GETCWD] (getcwd): Delete func.
2715
2716 2010-10-11 Thien-Thi Nguyen <[email protected]>
2717
2718 [int] Find invocation directory only once.
2719
2720 * base.h (struct program): Add member ‘invoke’.
2721 (struct behavior): Add member ‘invdir’.
2722 * ci.c (main): Specify ‘.invoke’ in ‘program’.
2723 * co.c (main): Likewise.
2724 * ident.c (main): Likewise.
2725 * merge.c (main): Likewise.
2726 * rcs.c (main): Likewise.
2727 * rcsclean.c (main): Likewise.
2728 * rcsdiff.c (main): Likewise.
2729 * rcsmerge.c (main): Likewise.
2730 * rlog.c (main): Likewise.
2731 * yarrrr.c [!PROGRAM_EXITERR] (PROGRAM_EXITERR): New #define.
2732 (main): Construct ‘struct program program’ as a local var.
2733 [TEST_STR2TIME] (program): Delete var.
2734 [TEST_STR2TIME] (PROGRAM_NAME): New #define.
2735 [TEST_FCMP] (program): Delete var.
2736 [TEST_FCMP] (PROGRAM_NAME): New #define.
2737 [TEST_PAIRS] (program): Delete var.
2738 [TEST_PAIRS] (PROGRAM_NAME, PROGRAM_EXITERR): New #define:s.
2739 [TEST_KEEP] (program): Delete var.
2740 [TEST_KEEP] (PROGRAM_NAME): New #define.
2741 [TEST_GROK] (program): Delete var.
2742 [TEST_GROK] (PROGRAM_NAME, PROGRAM_EXITERR): New #define:s.
2743 [TEST_REV] (program): Delete var.
2744 [TEST_REV] (PROGRAM_NAME): New #define.
2745 * b-peer.c: #include <string.h>, "b-divvy.h".
2746 (find_peer_prog): Find driver's invocation directory;
2747 use it to construct the program's underlying filename.
2748
2749 2010-10-11 Thien-Thi Nguyen <[email protected]>
2750
2751 [C] Propagate ‘const’ in casts.
2752
2753 * base.h (TINYS): Add ‘const’ to cast.
2754 * rcsgen.c (putadmin): Likewise.
2755
2756 2010-10-11 Thien-Thi Nguyen <[email protected]>
2757
2758 [C] Reduce need for casting.
2759
2760 * b-isr.c (access_page): Change P type to ‘char const *’;
2761 change local var type to ‘char volatile’; remove cast.
2762 * b-isr.h (access_page): Update func decl.
2763
2764 2010-10-11 Thien-Thi Nguyen <[email protected]>
2765
2766 [int] If writing to stderr in ISR fails, exit failurefully.
2767
2768 * b-isr.c (werr): Don't bother to ‘write’ zero-len strings;
2769 also, if ‘write’ rv is unexpected, call ‘PROGRAM (exiterr)’.
2770
2771 2010-10-11 Thien-Thi Nguyen <[email protected]>
2772
2773 [int] Use literal string for ‘PERR’, ‘MERR’ first arg.
2774
2775 * co.c (rmworkfile): Rework ‘PERR (COND-EXPRESSION, ...)’ as
2776 ‘if (COND-EXPRESSION) PERR (STR1, ...) else PERR (STR2, ...)’.
2777 * rcskeep.c (sorry): Use "%s" for ‘MERR’ first arg.
2778
2779 2010-10-11 Thien-Thi Nguyen <[email protected]>
2780
2781 [int] Presume availability of ‘mkstemp’.
2782
2783 * b-feph.c [!HAVE_MKSTEMP] (homegrown_mkstemp): Delete func.
2784 [!HAVE_MKSTEMP] (mkstemp): Delete #define.
2785
2786 2010-10-09 Thien-Thi Nguyen <[email protected]>
2787
2788 [int] Use ‘fd_safer’ more.
2789
2790 * b-feph.c: #include "unistd-safer.h".
2791 (jam_sff): Use ‘fd_safer’ for ‘msktemp’ rv.
2792
2793 2010-10-09 Thien-Thi Nguyen <[email protected]>
2794
2795 [C] Avoid signed/unsigned comparison.
2796
2797 * b-divvy.c (make_space): Use ‘size_t’ for "type width".
2798
2799 2010-10-09 Thien-Thi Nguyen <[email protected]>
2800
2801 [C] Add ‘const’ to ‘struct pool_found’ member ‘sym’.
2802
2803 * base.h (struct pool_found): Add ‘const’ to member ‘sym’.
2804 * b-anchor.c (pool_lookup): Add ‘const’ to cast.
2805
2806 2010-10-09 Thien-Thi Nguyen <[email protected]>
2807
2808 [C] Drop redundant local-var declarations.
2809
2810 * b-fro.c (string_from_atat): Drop redundant decl for ‘i’.
2811 * b-grok.c (full): Likewise for ‘count’.
2812
2813 2010-10-08 Thien-Thi Nguyen <[email protected]>
2814
2815 [build] Fix bug: Look for and use <siginfo.h>.
2816
2817 Regression introduced 2010-04-03, "Ignore <siginfo.h>".
2818 * b-isr.c: [HAVE_SIGINFO_H] #include <siginfo.h>.
2819
2820 2010-10-08 Thien-Thi Nguyen <[email protected]>
2821
2822 [int] Add abstraction: maybe_reset_sigchld
2823
2824 * b-isr.c (maybe_reset_sigchld): New func.
2825 * b-isr.h (maybe_reset_sigchld): New func decl.
2826 * rcsfnms.c: #include "b-isr.h".
2827 [!HAVE_GETCWD] (getcwd): Use ‘maybe_reset_sigchld’.
2828 * rcsutil.c (runv): Use ‘maybe_reset_sigchld’.
2829
2830 2010-10-08 Thien-Thi Nguyen <[email protected]>
2831
2832 [build] Fix bug: Look for and use <ucontext.h>.
2833
2834 Regression introduced 2010-04-03, "Ignore unused <ucontext.h>".
2835 * b-isr.c: [HAVE_UCONTEXT_H] #include <ucontext.h>.
2836
2837 2010-10-08 Thien-Thi Nguyen <[email protected]>
2838
2839 [int] Search ‘PATH’ for co / merge at runtime.
2840
2841 * b-peer.h: New file.
2842 * b-peer.c: New file.
2843 * Makefile.am (libparts_a_SOURCES): Add b-peer.h, b-peer.c.
2844 (BUILT_SOURCES): Remove bother.c.
2845 (outgoing, bothers): Delete vars.
2846 (co_SOURCES, rcsdiff_SOURCES, rcsmerge_SOURCES): Likewise.
2847 (dist-hook): Delete target.
2848 (clean-local): No longer "rm -rf 0pre".
2849 (bother.c, test-prep, FORCE): Delete targets.
2850 * co.c: Don't #include "bother.h"; #include "b-peer.h".
2851 (struct jstuff): Add member ‘merge’.
2852 (preparejoin): Init ‘jstuff.merge’ once.
2853 (buildjoin): Use ‘PEER_CO’, ‘find_peer_prog’
2854 * rcsdiff.c: Don't #include "bother.h"; #include "b-peer.h".
2855 (main): Use ‘PEER_CO’.
2856 * rcsmerge.c: Don't #include "bother.h"; #include "b-peer.h".
2857 (main): Usee ‘PEER_CO’.
2858 * base.h: Comment munging; nfc.
2859 * bother.h: Delete file.
2860
2861 2010-10-08 Thien-Thi Nguyen <[email protected]>
2862
2863 [int] Delete abstraction: exec_RCS
2864
2865 * rcsutil.c (runv): Use ‘execv’ directly.
2866
2867 2010-10-08 Thien-Thi Nguyen <[email protected]>
2868
2869 [build] Specify "outgoing" programs dependency precisely.
2870
2871 * bother.h: New file.
2872 * Makefile.am (libparts_a_SOURCES): Remove bother.c.
2873 (outgoing, bothers): New vars.
2874 (co_SOURCES, rcsdiff_SOURCES, rcsmerge_SOURCES): Likewise.
2875 (test-prep): Restrict forced remake to $(outgoing) programs.
2876 * base.h (prog_co, prog_merge): Delete var decls.
2877 * co.c: #include "bother.h".
2878 * rcsdiff.c: Likewise.
2879 * rcsmerge.c: Likewise.
2880
2881 2010-10-08 Thien-Thi Nguyen <[email protected]>
2882
2883 [build] Use $(abs_builddir) more.
2884
2885 * Makefile.am (test-prep):
2886 Use $(abs_builddir) instead of $$(pwd).
2887
2888 2010-10-08 Thien-Thi Nguyen <[email protected]>
2889
2890 [build] Make ‘test-prep’ depend on ‘all’.
2891
2892 * Makefile.am (test-prep): Add ‘all’ to dependency list.
2893
2894 2010-10-07 Thien-Thi Nguyen <[email protected]>
2895
2896 [C] Drop redundant ‘const’ declarations.
2897
2898 * Makefile.am (bother.c): Drop redundant ‘const’ decl.
2899 * b-anchor.c (ks_revno, prog_diff, prog_diff3
2900 (diff_flags, equal_line, kwsub_string): Likewise.
2901 * b-divvy.c (make_space): Likewise.
2902 * b-divvc.h (make_space): Likewise.
2903 * b-isr.c (setup_catchsig, isr_do): Likewise.
2904 * base.h (prog_co, prog_merge, prog_diff)
2905 (prog_diff3, diff_flags, equal_line): Likewise.
2906 (struct program): Likewise for members ‘name’, ‘help’.
2907 (ks_revno, kwsub_string, ctab): Likewise.
2908 * maketime.c (month_yday): Likewise.
2909 * partime.c (patterns): Likewise.
2910 * rcsfnms.c (comtable, getcwd): Likewise.
2911 * rcsmap.c (ctab): Likewise.
2912
2913 2010-10-07 Thien-Thi Nguyen <[email protected]>
2914
2915 [int] Use ‘EXIT_SUCCESS’ more.
2916
2917 * rcsutil.c (setRCSversion): Use ‘EXIT_SUCCESS’.
2918
2919 2010-10-07 Thien-Thi Nguyen <[email protected]>
2920
2921 [C] Use ‘strtol’ instead of ‘atoi’, ‘atol’.
2922
2923 * rcstime.c (date2str): Use ‘strtol’, not ‘atoi’.
2924 * rcsutil.c (gnurcs_init): Use ‘strtol’, not ‘atol’.
2925 * yarrrr.c [TEST_STR2TIME] (yarrrr): Likewise.
2926
2927 2010-10-05 Thien-Thi Nguyen <[email protected]>
2928
2929 [int] Undo bogus workaround.
2930
2931 Brain damage artifact introduced 2010-08-21, "Work
2932 around x86_64-linux-gnu memory corruption problem".
2933 * ci.c (main): Don't ‘getcurdate’ unconditionally, early on.
2934
2935 2010-10-05 Thien-Thi Nguyen <[email protected]>
2936
2937 [int] Add abstraction: gnurcs_goodbye
2938
2939 * rcsutil.c (gnurcs_goodbye): New func.
2940 * base.h (gnurcs_goodbye): New func decl.
2941 * ci.c (main): Use ‘gnurcs_goodbye’.
2942 * co.c (main): Likewise.
2943 * ident.c (main): Likewise.
2944 * merge.c (main): Likewise.
2945 * rcs.c (main): Likewise.
2946 * rcsclean.c (main): Likewise.
2947 * rcsdiff.c (main): Likewise.
2948 * rcsmerge.c (main): Likewise.
2949 * rlog.c (main): Likewise.
2950 * yarrrr.c (main): Likewise.
2951
2952 2010-10-05 Thien-Thi Nguyen <[email protected]>
2953
2954 [int] Use ‘EXIT_SUCCESS’ more.
2955
2956 * merge.c: #include <stdlib.h>.
2957 (main): Use ‘EXIT_SUCCESS’.
2958
2959 2010-10-05 Thien-Thi Nguyen <[email protected]>
2960
2961 [int] Fix bug: Close expansion context scratch space when done.
2962
2963 Omission from 2010-04-30, "Move
2964 ‘expandline’ scratch to expansion context".
2965 * b-kwxout.h (FINISH_EXPCTX): New macro.
2966 * ci.c (xpandfile): Use ‘FINISH_EXPCTX’.
2967 * rcsedit.c (finishedit_fast, finishedit_slow)
2968 (copylines, editstring): Likewise.
2969 * rcsgen.c (scandeltatext): Likewise.
2970
2971 2010-10-04 Thien-Thi Nguyen <[email protected]>
2972
2973 [int] Fix bug: Initialize notyet ‘.branches’ correctly.
2974
2975 Original circular-GIGO from 2010-05-24, "Rewrite parsing".
2976 * b-grok.c (full): For notyet ‘.branches’, use ‘NULL’ as head
2977 of the cdr-copying chain, not the to-be-initialized ‘.branches’!
2978
2979 2010-10-04 Thien-Thi Nguyen <[email protected]>
2980
2981 [v] Use Automake for building xorlf.
2982
2983 * Makefile.am (clean-local): Don't delete ‘xorlf*’.
2984 (test-prep): Don't ‘$(MAKE) xorlf’ or move it to 0pre/bin.
2985 (xorlf): Delete target.
2986
2987 2010-10-04 Thien-Thi Nguyen <[email protected]>
2988
2989 [int] Fix bug: Fully initialize delta objects.
2990
2991 Omission from 2010-05-24, "Rewrite parsing".
2992 * b-grok.c (full): If there is no "commitid"
2993 field, explicitly clear ‘d->commitid’.
2994 Reported by Paul Eggert.
2995
2996 2010-10-04 Thien-Thi Nguyen <[email protected]>
2997
2998 [int] Fix bug: Fully initialize notyet objects.
2999
3000 Omission from 2010-05-24, "Rewrite parsing".
3001 * b-grok.c (full): If there are no more revision
3002 numbers to parse, explicitly clear ‘ny->next’.
3003 Reported by Paul Eggert.
3004
3005 2010-10-04 Thien-Thi Nguyen <[email protected]>
3006
3007 [build] Delete unused macro.
3008
3009 * b-grok.c (NEWPAIR): Delete macro.
3010
3011 2010-10-04 Thien-Thi Nguyen <[email protected]>
3012
3013 [int] Fix bug: Save notyet objects in caller space.
3014
3015 Memory incoherence introduced 2010-05-24, "Rewrite parsing".
3016 * b-grok.c (full): Don't save notyet objects in
3017 ‘g->tranquil’; instead, save in caller specified space.
3018 Reported by Paul Eggert.
3019
3020 2010-10-04 Thien-Thi Nguyen <[email protected]>
3021
3022 [int] Avoid identifier ‘SHARED’ (Solaris 8 header conflict).
3023
3024 * b-divvy.c: Do s/SHARED/PLEXUS/g; do s/shared/plexus/g.
3025 * b-divvy.h: Likewise.
3026 * b-feph.c: Likewise.
3027 * b-isr.c: Likewise.
3028 * ci.c: Likewise.
3029 * co.c: Likewise.
3030 * merger.c: Likewise.
3031 * rcs.c: Likewise.
3032 * rcsclean.c: Likewise.
3033 * rcsdiff.c: Likewise.
3034 * rcsfnms.c: Likewise.
3035 * rcsgen.c: Likewise.
3036 * rcsutil.c: Likewise.
3037 * rlog.c: Likewise.
3038 Reported by Paul Eggert.
3039
3040 2010-10-01 Thien-Thi Nguyen <[email protected]>
3041
3042 [maint] Let the configure script instantiate rcsfreeze.
3043
3044 * Makefile.am (EXTRA_DIST): Remove rcsfreeze.sh.
3045 (rcsfreeze): Delete target.
3046 * rcsfreeze.sh: Add '@' around ‘PACKAGE_VERSION’.
3047
3048 2010-09-30 Thien-Thi Nguyen <[email protected]>
3049
3050 [int] Use ‘struct symdef’ array as "three manifestations" ‘merge’ arg.
3051
3052 * b-merger.h: New file.
3053 * Makefile.am (libparts_a_SOURCES): Add b-merger.h.
3054 * merger.c: #include "b-merger.h".
3055 (merge): Don't take LABEL and ARGV; instead, take
3056 THREE_MANIFESTATIONS; use ‘LABEL’ and ‘FNAME’.
3057 * base.h (merge): Update func decl.
3058 * merge.c: #include "b-merger.h".
3059 (main): Use ‘LABEL’ and ‘FNAME’; update call to ‘merge’.
3060 * rcsmerge.c: #include "b-merger.h".
3061 (main): Use ‘LABEL’ and ‘FNAME’; update call to ‘merge’.
3062
3063 2010-09-29 Thien-Thi Nguyen <[email protected]>
3064
3065 [v] Centralize tests; do complicated test last.
3066
3067 * Makefile.am (PATHPREFIX, TESTS_ENVIRONMENT, TESTS): Delete vars.
3068 (check-TESTS, installcheck): Delete targets.
3069 * alive.test: Move to ../tests/t999.test.
3070
3071 2010-09-29 Thien-Thi Nguyen <[email protected]>
3072
3073 [int] Don't redundantly align atat divvy spaces.
3074
3075 * b-grok.c (start_atat): Remove alignment check/enforcement,
3076 obsoleted by "[int] Align divvy spaces to the "widest" type width".
3077
3078 2010-09-29 Thien-Thi Nguyen <[email protected]>
3079
3080 [int] Align divvy spaces to the "widest" type width.
3081
3082 * divvy.c (make_space): Initialize the alignment of
3083 the newly created divvy space based on the "widest" type.
3084
3085 2010-09-29 Thien-Thi Nguyen <[email protected]>
3086
3087 [int] Tighten type of struct ‘divvy’ member ‘space’.
3088
3089 * b-divvy.h (struct divvy): Declare ‘space’ to be ‘struct obstack *’.
3090 * b-divvy.c (make_space): Remove now-redundant cast to ‘struct obstack *’.
3091
3092 2010-09-27 Thien-Thi Nguyen <[email protected]>
3093
3094 [C] Fix bug: Explicitly cast ‘size_t’ to ‘off_t’ for comparing.
3095
3096 * b-fro.c (fro_spew_partial): Use ‘(off_t) sizeof (buf)’ to compare.
3097
3098 2010-08-21 Thien-Thi Nguyen <[email protected]>
3099
3100 [int] Work around x86_64-linux-gnu memory corruption problem.
3101
3102 * ci.c (main): Call ‘getcurdate’ unconditionally, early on.
3103
3104 2010-08-21 Thien-Thi Nguyen <[email protected]>
3105
3106 [int] Use ‘bad_option’ more.
3107
3108 * ident.c (main): Use ‘bad_option’.
3109
3110 2010-08-19 Thien-Thi Nguyen <[email protected]>
3111
3112 [build] Specify gnulib headers location when srcdir!=builddir.
3113
3114 * Makefile.am (AM_CPPFLAGS): New var.
3115
3116 2010-08-15 Thien-Thi Nguyen <[email protected]>
3117
3118 [int] #define _POSIX_SYMLOOP_MAX if necessary.
3119
3120 * rcsedit.c (_POSIX_SYMLOOP_MAX):
3121 If not already defined, #define to 8.
3122 Reported by Mike Mestnik <[email protected]>.
3123
3124 2010-07-13 Thien-Thi Nguyen <[email protected]>
3125
3126 [int y-GROK] Use ‘exit_failurefully’ more.
3127
3128 * yarrrr.c [TEST_GROK] (exiterr): Use ‘exit_failurefully’.
3129
3130 2010-07-12 Thien-Thi Nguyen <[email protected]>
3131
3132 [int] Add abstractions: exit_failurefully, exit_diff_trouble
3133
3134 * rcsutil.c (exit_failurefully, exit_diff_trouble): New funcs.
3135 (runv): Use ‘exit_diff_trouble’.
3136 * base.h (exit_failurefully, exit_diff_trouble): New func decls.
3137 * ci.c (exiterr): Use ‘exit_failurefully’.
3138 * co.c (exiterr): Likewise.
3139 * ident.c (exiterr): Likewise.
3140 * rcs.c (exiterr): Likewise.
3141 * rcsclean.c (exiterr): Likewise.
3142 * rcsfnms.c (getcwd): Likewise.
3143 * rlog.c (exiterr): Likewise.
3144 * yarrrr.c (bow_out, scram): Likewise.
3145 * merge.c (exiterr): Use ‘exit_diff_trouble’.
3146 * rcsdiff.c (exiterr): Likewise.
3147 * rcsmerge.c (exiterr): Likewise.
3148
3149 2010-07-06 Thien-Thi Nguyen <[email protected]>
3150
3151 Fix typo: Say "GPLv3+" in --version output.
3152
3153 * gnu-h-v.c (COMMAND_VERSION): Say "GPLv3+".
3154 * rcsfreeze.sh (version): Likewise.
3155
3156 2010-06-24 Thien-Thi Nguyen <[email protected]>
3157
3158 Update license to GPLv3+.
3159
3160 * Makefile.am: Update license notice.
3161 * alive.test: Likewise.
3162 * b-anchor.c: Likewise.
3163 * b-complain.c: Likewise.
3164 * b-complain.h: Likewise.
3165 * b-divvy.c: Likewise.
3166 * b-divvy.h: Likewise.
3167 * b-esds.c: Likewise.
3168 * b-esds.h: Likewise.
3169 * b-excwho.c: Likewise.
3170 * b-excwho.h: Likewise.
3171 * b-fb.c: Likewise.
3172 * b-fb.h: Likewise.
3173 * b-feph.c: Likewise.
3174 * b-feph.h: Likewise.
3175 * b-fro.c: Likewise.
3176 * b-fro.h: Likewise.
3177 * b-grok.c: Likewise.
3178 * b-grok.h: Likewise.
3179 * b-isr.c: Likewise.
3180 * b-isr.h: Likewise.
3181 * b-kwxout.c: Likewise.
3182 * b-kwxout.h: Likewise.
3183 * base.h: Likewise.
3184 * ci.c: Likewise.
3185 * co.c: Likewise.
3186 * gnu-h-v.c: Likewise.
3187 * gnu-h-v.h: Likewise.
3188 * ident.c: Likewise.
3189 * maketime.c: Likewise.
3190 * maketime.h: Likewise.
3191 * merge.c: Likewise.
3192 * merger.c: Likewise.
3193 * partime.c: Likewise.
3194 * partime.h: Likewise.
3195 * rcs.c: Likewise.
3196 * rcsclean.c: Likewise.
3197 * rcsdiff.c: Likewise.
3198 * rcsedit.c: Likewise.
3199 * rcsfcmp.c: Likewise.
3200 * rcsfnms.c: Likewise.
3201 * rcsfreeze.sh: Likewise.
3202 * rcsgen.c: Likewise.
3203 * rcskeep.c: Likewise.
3204 * rcsmap.c: Likewise.
3205 * rcsmerge.c: Likewise.
3206 * rcsrev.c: Likewise.
3207 * rcstime.c: Likewise.
3208 * rcsutil.c: Likewise.
3209 * rlog.c: Likewise.
3210 * yarrrr.c: Likewise.
3211
3212 2010-06-23 Thien-Thi Nguyen <[email protected]>
3213
3214 Say "RCS file", not "repository file".
3215
3216 * b-grok.c (full): Say "RCS file" in error message.
3217 * ci.c: Say "RCS file" in help text.
3218 * co.c: Likewise.
3219 * rcs.c: Likewise.
3220 * rcsclean.c: Likewise.
3221 * rcsdiff.c: Likewise.
3222 * rcsfreeze.sh: Likewise.
3223 * rcsmerge.c: Likewise.
3224 * rlog.c: Likewise.
3225
3226 2010-06-22 Thien-Thi Nguyen <[email protected]>
3227
3228 Say "repository file", not "repository".
3229
3230 * b-grok.c (full): Say "repository file" in error message.
3231 * base.h: Comment munging; nfc.
3232 * ci.c: Say "repository file" in help text.
3233 * co.c: Likewise.
3234 * rcs.c: Likewise.
3235 * rcsclean.c: Likewise.
3236 * rcsdiff.c: Likewise.
3237 * rcsfreeze.sh: Likewise.
3238 * rcsmerge.c: Likewise.
3239 * rlog.c: Likewise.
3240
3241 2010-06-12 Thien-Thi Nguyen <[email protected]>
3242
3243 [int] Build atat object incrementally.
3244
3245 * b-grok.c (alloc_atat): Delete func.
3246 (start_atat, finish_atat): New static funcs.
3247 (maybe_read_atat): Use ‘start_atat’, ‘finish_atat’; grow atat
3248 object onto ‘g->systolic’; copy onto ‘g->to’ when done.
3249
3250 2010-06-12 Thien-Thi Nguyen <[email protected]>
3251
3252 [int] Use ‘gmtime_r’, ‘localtime_r’.
3253
3254 * base.h: Comment munging; nfc.
3255 * maketime.h (struct maketimestuff): Add member ‘time2tm_stash’.
3256 * maketime.c (time2tm): Use ‘gmtime_r’, ‘localtime_r’.
3257 * rcstime.c (date2str): Use ‘localtime_r’.
3258
3259 2010-06-10 Thien-Thi Nguyen <[email protected]>
3260
3261 [build] Build rcsfreeze with substituted ‘PACKAGE_VERSION’.
3262
3263 * Makefile.am (rcsfreeze): New target.
3264
3265 2010-06-10 Thien-Thi Nguyen <[email protected]>
3266
3267 Make ‘--help’ output say "repository", not "RCS file".
3268
3269 * ci.c: In ‘--help’ comment, say "repository", not "RCS file".
3270 * co.c: Likewise.
3271 * rcs.c: Likewise.
3272 * rcsclean.c: Likewise.
3273 * rcsdiff.c: Likewise.
3274 * rcsfreeze.sh: Likewise.
3275 * rcsmerge.c: Likewise.
3276 * rlog.c: Likewise.
3277
3278 2010-06-09 Thien-Thi Nguyen <[email protected]>
3279
3280 Relax syntax of id, sym to accept string of all digits.
3281
3282 * rcsmap.c (checkidentifier): Flag ‘DIGIT’ as identifier, as well.
3283 * alive.test: Update to test using state "42".
3284
3285 2010-06-01 Thien-Thi Nguyen <[email protected]>
3286
3287 [int] Add abstractions: MEM_SAME, MEM_DIFF
3288
3289 * base.h (MEM_SAME, MEM_DIFF): New macros.
3290 * b-anchor.c (looking_at): Use ‘MEM_SAME’.
3291 * rcs.c (main): Use ‘MEM_DIFF’.
3292 * rcsfcmp.c (rcsfcmp): Likewise.
3293 * rcsfnms.c (rcssuffix, pairnames): Use ‘MEM_SAME’.
3294
3295 2010-06-01 Thien-Thi Nguyen <[email protected]>
3296
3297 [int] Add abstractions: {NUM,DATE}_{LT,EQ,GT}, NUMF_{LT,EQ}
3298
3299 * base.h (GENERIC_COMPARE, GENERIC_LT, GENERIC_EQ)
3300 (GENERIC_GT, NUM_LT, NUM_EQ, NUM_GT, DATE_LT, DATE_EQ)
3301 (DATE_GT, NUMF_LT, NUMF_EQ): New macros.
3302 * ci.c (addbranch, addelta, getlogmsg, main): Use new macros.
3303 * co.c (getancestor): Likewise.
3304 * rcs.c (removerevs, setlock, dolocks, rcs_setstate, main): Likewise.
3305 * rcsrev.c (genbranch, genrevs): Likewise.
3306 * rlog.c (recentdate, extdate): Likewise.
3307
3308 2010-06-01 Thien-Thi Nguyen <[email protected]>
3309
3310 [int] Add abstraction: PROB
3311
3312 * base.h (PROB): New macro.
3313 * b-excwho.c (set_uid_to): Use ‘PROB’.
3314 * b-fb.c (fopen_safer, Orewind, aflush)
3315 (oflush, aputs, aprintf): Likewise.
3316 * b-feph.c [!HAVE_MKSTEMP] (homegrown_mkstemp): Likewise.
3317 (jam_sff): Likewise.
3318 * b-fro.c [MMAP_SIGNAL] (mmap_deallocate): Likewise.
3319 (fro_open, fro_move): Likewise.
3320 * b-grok.c (full, grok_resynch): Likewise.
3321 * b-isr.c (complain_signal, MUST, setup_catchsig, isr_init): Likewise.
3322 * ci.c (fixwork, main): Likewise.
3323 * co.c (main): Likewise.
3324 * ident.c (scanfile, main): Likewise.
3325 * partime.c (partime): Likewise.
3326 * rcs.c (main): Likewise.
3327 * rcsclean.c (get_directory, main): Likewise.
3328 * rcsedit.c (un_link, fopen_update_truncate, rcswriteopen)
3329 (chnamemod, dorewrite, donerewrite, ORCSclose): Likewise.
3330 * rcsfnms.c (pairnames, getfullRCSname): Likewise.
3331 [!HAVE_GETCWD] (getcwd): Likewise.
3332 * rcsgen.c (putdesc): Likewise.
3333 * rcsutil.c (gnurcs_init, awrite, runv): Likewise.
3334
3335 2010-06-01 Thien-Thi Nguyen <[email protected]>
3336
3337 [int] Add abstractions: SHACCR, SHSTR, SHSNIP
3338
3339 * b-divvy.h (SHACCR, SHSTR, SHSNIP): New macros.
3340 * ci.c (addelta): Use ‘SHSNIP’.
3341 * rcs.c (getassoclst, getaccessor, getstates): Likewise.
3342 * rlog.c (getnumericrev): Use ‘SHACCR’, ‘SHSTR’, ‘SHSNIP’.
3343
3344 2010-06-01 Thien-Thi Nguyen <[email protected]>
3345
3346 [int] Delete abstraction: intern0
3347
3348 * co.c (buildjoin): Don't bother re-saving the revno into ‘SINGLE’.
3349 * rcsutil.c (str_save): Use ‘intern’ directly.
3350 * b-divvy.h (intern0): Delete macro.
3351
3352 2010-05-31 Thien-Thi Nguyen <[email protected]>
3353
3354 [int] Reposition less, and also less frequently.
3355
3356 * b-grok.c (grok_resynch): Don't
3357 take ‘struct fro *f’; don't reposition.
3358 (grok_all): Update call to ‘grok_resynch’.
3359 * b-grok.h (grok_resynch): Update func decl.
3360 * ci.c (main): Don't reposition prior to
3361 resync; update call to ‘grok_resynch’.
3362 * rcs.c (scanlogtext): Do reposition after looping.
3363 * rcsfnms.c (pairnames): Don't reposition after grok.
3364 * rcsgen.c (scandeltatext): Do reposition after looping.
3365
3366 2010-05-31 Thien-Thi Nguyen <[email protected]>
3367
3368 [int] Mark verbatim region; reduce transitional tell/seek.
3369
3370 * b-fro.h (struct fro): Add member ‘verbatim’.
3371 (FIXUP_OLD): Delete macro.
3372 (VERBATIM, IGNORE_REST, SAME_AFTER): New macros.
3373 * b-fro.c (fro_spew): Use ‘->verbatim’ for region
3374 beginning; afterwards, set it to the end position.
3375 * base.h: Comment munging; nfc.
3376 * ci.c (main): Use ‘IGNORE_REST’, ‘SAME_AFTER’, ‘VERBATIM’.
3377 * co.c (main): Use ‘SAME_AFTER’.
3378 * rcs.c (scanlogtext): Don't call ‘FIXUP_OLD’.
3379 (main): Use ‘IGNORE_REST’, ‘SAME_AFTER’.
3380 * rcsclean.c (main): Use ‘SAME_AFTER’.
3381 * rcsedit.c (copystring): Don't call ‘FIXUP_OLD’.
3382 * rcsgen.c (scandeltatext, write_desc_maybe, putdesc): Likewise.
3383 * rlog.c (main): Likewise.
3384 * yarrrr.c [TEST_REV] (yarrrr): Likewise.
3385
3386 2010-05-31 Thien-Thi Nguyen <[email protected]>
3387
3388 [int] Rename ‘struct delta’ member ‘next’ to ‘ilk’.
3389
3390 * base.h (struct delta): Rename member ‘next’ to ‘ilk’.
3391 * b-grok.c (full): Update references.
3392 * ci.c (addbranch, addelta): Likewise.
3393 * rcs.c (branchpoint, removerevs, buildtree): Likewise.
3394 * rcsgen.c (putdelta, puttree): Likewise.
3395 * rcsrev.c (genbranch, genrevs): Likewise.
3396 * rlog.c (putrunk, putree, putabranch)
3397 (exttree, recentdate, extdate): Likewise.
3398 * yarrrr.c [TEST_GROK] (yarrrr): Likewise.
3399
3400 2010-05-31 Thien-Thi Nguyen <[email protected]>
3401
3402 [int y-GROK] Fix bug: Deref repo ‘locks’ entry correctly.
3403
3404 Regression introduced 2010-05-24, "Rewrite parsing".
3405 * yarrrr.c [TEST_GROK] (struct lockdef): Delete.
3406 [TEST_GROK] (yarrrr): Deref repo ‘locks’ entry as ‘struct rcslock *’.
3407
3408 2010-05-31 Thien-Thi Nguyen <[email protected]>
3409
3410 [int] Note each delta body's file position.
3411
3412 * base.h (struct delta): Add member ‘neck’.
3413 * b-grok.c (full): For each delta, note its body's file position.
3414 * rcs.c (scanlogtext): Avoid ‘fro_tello’; use saved file position.
3415 * rcsgen.c (scandeltatext): Likewise.
3416
3417 2010-05-30 Thien-Thi Nguyen <[email protected]>
3418
3419 [int] Make "need expansion" support compile-time optional, default off.
3420
3421 * base.h (WITH_NEEDEXP): New #define.
3422 * b-fro.h (struct atat): Include members only if
3423 ‘WITH_NEEDEXP’: ‘needexp_count’, ‘ineedexp’, ‘needexp’.
3424 * b-grok.c (atat_ineedexp_many, atat_ineedexp_few):
3425 Surround with ‘#if WITH_NEEDEXP’.
3426 (maybe_read_atat): Conditionalize "need
3427 expansion" support with ‘#if WITH_NEEDEXP’.
3428 * yarrrr.c [TEST_GROK] (spew_atat): Likewise.
3429
3430 2010-05-29 Thien-Thi Nguyen <[email protected]>
3431
3432 [int] Add abstraction: format_locks
3433
3434 * base.h (format_locks): New func decl.
3435 * rcsgen.c (format_locks): New func.
3436 (putadmin): Use ‘format_locks’.
3437 * rlog.c (main): Likewise.
3438
3439 2010-05-29 Thien-Thi Nguyen <[email protected]>
3440
3441 [int org] Move ‘addlock’ to b-excwho.[hc].
3442
3443 * rcsedit.c (addlock): Move func from here...
3444 * b-excwho.c: #include "b-divvy.h".
3445 (addlock): ...to here.
3446 * base.h (addlock): Move func decl from here...
3447 * b-excwho.h (addlock): ...to here.
3448
3449 2010-05-29 Thien-Thi Nguyen <[email protected]>
3450
3451 [int] Add abstraction: lock_on
3452
3453 * b-excwho.c (lock_on): New func.
3454 * b-excwho.h (lock_on): New func decl.
3455 * rcs.c (branchpoint): Use ‘lock_on’.
3456 * rcsedit.c (addlock): Likewise.
3457 * rlog.c (extractdelta): Likewise.
3458
3459 2010-05-29 Thien-Thi Nguyen <[email protected]>
3460
3461 [int] Delete abstraction: now
3462
3463 * ci.c (getcurdate): Use ‘BE (now)’ directly.
3464 * rcsedit.c (setmtime): Likewise.
3465 * rcstime.c (str2date): Likewise.
3466 * rcsutil.c (gnurcs_init): Init ‘BE (now)’.
3467 (now): Delete func.
3468 * base.h (now): Delete func decl.
3469
3470 2010-05-29 Thien-Thi Nguyen <[email protected]>
3471
3472 [int] Factor constant string "revision number".
3473
3474 * b-anchor.c (ks_revno): New var.
3475 * b-grok.c (struct grok): Add member ‘bor_no’.
3476 (ks_revision_number): Delete var.
3477 (maybe_read_num, must_read_num, MUST_REVNO): Use ‘ks_revno’.
3478 (must_colon_revno): Use ‘g->bor_no’.
3479 (full): Init ‘g->bor_no’.
3480 * base.h (ks_revno): New var decl.
3481 * ci.c (main): Use ‘ks_revno’.
3482 * co.c (main): Likewise.
3483 * rcs.c (getmessage): Likewise.
3484 * rcsclean.c (main): Likewise.
3485 * rcsdiff.c (main): Likewise.
3486 * rcskeep.c (keeprev): Likewise.
3487 * rcsmerge.c (main): Likewise.
3488 * rcsrev.c (genbranch, genrevs, fully_numeric): Likewise.
3489 * yarrrr.c [TEST_REV] (yarrrr): Likewise.
3490
3491 2010-05-28 Thien-Thi Nguyen <[email protected]>
3492
3493 [int] Make b-grok.c macro ‘BUMMER’ variadic.
3494
3495 * b-grok.c (ignoble): Don't accept args ‘blurb’, ‘precisely’;
3496 don't do initial ‘accf’.
3497 (BUMMER): Make macro variadic; call ‘accf’ here.
3498 (eof_too_soon): Update call to ‘BUMMER’.
3499 (full): Use ‘BUMMER’ more.
3500
3501 2010-05-28 Thien-Thi Nguyen <[email protected]>
3502
3503 [int] Use local variables more.
3504
3505 * b-complain.c (vcomplain): Use local variables more; reduce
3506 access via ‘PROGRAM’, ‘BE’, ‘MANI’, ‘PREV’, ‘REPO’, ‘GROK’, ‘FLOW’.
3507 * b-fb.c (oflush): Likewise.
3508 * b-feph.c (makedirtemp, keepdirtemp): Likewise.
3509 * b-kwxout.c (keyreplace): Likewise.
3510 * ci.c (addelta, getcurdate, main): Likewise.
3511 * co.c (cleanup, rmworkfile, main): Likewise.
3512 * merger.c (merge): Likewise.
3513 * rcs.c (dolocks, buildeltatext, main): Likewise.
3514 * rcsclean.c (main): Likewise.
3515 * rcsdiff.c (main): Likewise.
3516 * rcsedit.c (enterstring, rcswriteopen, checkaccesslist)
3517 (dorewrite, donerewrite, ORCSerror): Likewise.
3518 * rcsfnms.c (pairnames, getfullRCSname): Likewise.
3519 * rcsgen.c (scandeltatext, putdesc, putadmin): Likewise.
3520 * rcskeep.c (getoldkeys): Likewise.
3521 * rcsmerge.c (main): Likewise.
3522 * rcsrev.c (fully_numeric, tiprev): Likewise.
3523 * rlog.c (getnumericrev, main): Likewise.
3524 * yarrrr.c [TEST_PAIRS] (yarrrr): Likewise.
3525
3526 2010-05-28 Thien-Thi Nguyen <[email protected]>
3527
3528 [int] Replace ‘myself’ with new abstraction ‘stat_mine_p’.
3529
3530 * b-excwho.c (stat_mine_p): New func.
3531 (myself): Delete func.
3532 * b-excwho.h (stat_mine_p): New func decl.
3533 (myself): Delete func decl.
3534 * ci.c (removelock, addelta, fixwork): Use ‘stat_mine_p’.
3535 * co.c (rmworkfile): Likewise.
3536 * rcsedit.c (checkaccesslist): Likewise.
3537
3538 2010-05-28 Thien-Thi Nguyen <[email protected]>
3539
3540 [int org] Move some funcs/macros to b-excwho.c, a subset to b-excwho.h.
3541
3542 * b-feph.c: #include "b-excwho.h".
3543 * b-isr.c: #include "b-excwho.h".
3544 * rcsutil.c (cacheid): Move macro from here...
3545 (ruid, myself, euid): Move funcs from here...
3546 [HAVE_SETUID] (set_uid_to, nosetid, seteid, setrid):
3547 Move funcs from here...
3548 * b-excwho.c [HAVE_SETUID && !HAVE_SETEUID] (seteuid):
3549 Move #define to here...
3550 (PEBKAC): New macro.
3551 (cacheid): ...to here.
3552 (ruid): ...to here; make static.
3553 (myself): ...to here.
3554 [HAVE_SETUID] (euid): to here; make static.
3555 [HAVE_SETUID] (set_uid_to): ...to here.
3556 (nosetid, seteid, setrid): ...to here;
3557 surround func body with #if ‘HAVE_SETUID’.
3558 * base.h [HAVE_SETUID && !HAVE_SETEUID] (seteuid): ...from here.
3559 (ruid): Delete func decl.
3560 (myself): Move func decl from here...
3561 [HAVE_SETUID] (euid): Delete func decl.
3562 [HAVE_SETUID] (nosetid, seteid, setrid): Move func decl from here...
3563 [!HAVE_SETUID] (nosetid, seteid, setrid): Delete macros.
3564 * b-excwho.h (myself, nosetid, seteid, setrid): ...to here.
3565
3566 2010-05-28 Thien-Thi Nguyen <[email protected]>
3567
3568 [int org] Move ‘getusername’ to b-excwho.[hc].
3569
3570 * rlog.c: #include "b-excwho.h".
3571 * rcsutil.c [HAVE_PWD_H]: Don't #include <pwd.h>.
3572 (getusername): Move func from here...
3573 * b-excwho.c: #include <stdlib.h>, <unistd.h>, "b-complain.h".
3574 [HAVE_PWD_H]: #include <pwd.h>.
3575 (getusername): ...to here.
3576 * base.h (getusername): Move func decl from here...
3577 * b-excwho.h (getusername): ...to here.
3578
3579 2010-05-27 Thien-Thi Nguyen <[email protected]>
3580
3581 [int org] Move ‘getcaller’ to b-excwho.[hc].
3582
3583 * rcsedit.c (getcaller): Move func from here...
3584 * b-excwho.c: Update copyright notice.
3585 (getcaller): ...to here.
3586 * base.h (getcaller): Move func decl from here...
3587 * b-excwho.h: Update copyright notice.
3588 (getcaller): ...to here.
3589
3590 2010-05-27 Thien-Thi Nguyen <[email protected]>
3591
3592 [int] Use ‘struct wlink’ more.
3593
3594 * ci.c (addelta, main): Do s/struct hshentries/struct wlink/g;
3595 use ->entry, ->next instead of ->first, ->rest, respectively; use
3596 local var of type ‘struct delta *’ to deref ->entry where necessary.
3597 * co.c (main): Likewise.
3598 * rcs.c (searchcutpt, removerevs, buildeltatext, main): Likewise.
3599 * rcsclean.c (main): Likewise.
3600 * rcsgen.c (buildrevision): Likewise.
3601 * rcsrev.c (store1, genbranch, genrevs, gr_revno): Likewise.
3602 * yarrrr.c [TEST_REV]: #include "b-esds.h".
3603 [TEST_REV] (yarrrr): Likewise.
3604 * base.h (struct hshentries): Delete.
3605 (buildrevision, genrevs, gr_revno): Update func decls.
3606
3607 2010-05-27 Thien-Thi Nguyen <[email protected]>
3608
3609 [int] Rename ‘struct hshentry’ to ‘struct delta’.
3610
3611 * b-grok.c: Do s/struct hshentry/struct delta/g.
3612 * b-kwxout.c: Likewise.
3613 * b-kwxout.h: Likewise.
3614 * base.h: Likewise.
3615 * ci.c: Likewise.
3616 * co.c: Likewise.
3617 * rcs.c: Likewise.
3618 * rcsclean.c: Likewise.
3619 * rcsdiff.c: Likewise.
3620 * rcsedit.c: Likewise.
3621 * rcsfcmp.c: Likewise.
3622 * rcsgen.c: Likewise.
3623 * rcsmerge.c: Likewise.
3624 * rcsrev.c: Likewise.
3625 * rlog.c: Likewise.
3626 * yarrrr.c: Likewise.
3627
3628 2010-05-27 Thien-Thi Nguyen <[email protected]>
3629
3630 [int] Use ‘str_save’ more.
3631
3632 * co.c (getancestor, main): Use ‘str_save’.
3633 * merger.c (normalize_arg): Likewise.
3634 * rcsclean.c (get_directory): Likewise.
3635 * rcsdiff.c (main): Likewise.
3636
3637 2010-05-27 Thien-Thi Nguyen <[email protected]>
3638
3639 [int] Use ‘SINGLE’ et al more (instead of ‘SHARED’).
3640
3641 * b-divvy.h (FZLLOC): New macro.
3642 * b-fro.c (fro_open): Use ‘FZLLOC’, ‘SINGLE’.
3643 * b-grok.c (full): Use ‘FZLLOC’.
3644 * b-kwxout.c (keyreplace): Use ‘SINGLE’.
3645 * rcsedit.c (swapeditfiles): Use ‘FZLLOC’.
3646 * rcsfnms.c (InitAdmin): Clear ‘REPO (r)’.
3647 (pairnames): Use ‘SINGLE’.
3648 * rcsrev.c (fully_numeric): Use ‘SINGLE’.
3649
3650 2010-05-26 Thien-Thi Nguyen <[email protected]>
3651
3652 [int] Move ‘program’ references from global scope into ‘top’.
3653
3654 * gnu-h-v.c (display_version, check_hv): Take additional arg
3655 ‘struct program *prog’; use it instead of ‘PROGRM (foo)’.
3656 * gnu-h-v.h (display_version, check_hv): Update func decls.
3657 (CHECK_HV): Update macro.
3658 * rcsutil.c (gnurcs_init): Take ‘struct program *’; save into ‘top’.
3659 (setRCSversion): Update call to ‘display_version’.
3660 * base.h (program): Delete var decl.
3661 (struct top): Add member ‘program’.
3662 (PROGRAM): Update to look in ‘top->program’.
3663 (gnurcs_init): Update func decl.
3664 * ci.c (program): Delete var.
3665 (main): Add local var ‘struct program *program’;
3666 update call to ‘gnurcs_init’.
3667 * co.c (program, main): Likewise.
3668 * ident.c (program, main): Likewise;
3669 also update call to ‘display_version’.
3670 * merge.c (program, main): Likewise;
3671 also update call to ‘display_version’.
3672 * rcs.c (program, main): Likewise.
3673 * rcsclean.c (program, main): Likewise.
3674 * rcsdiff.c (program, main): Likewise.
3675 * rcsmerge.c (program, main): Likewise.
3676 * rlog.c (program, main): Likewise.
3677 * yarrrr.c [TEST_STR2TIME] (program): Make var static.
3678 [TEST_FCMP] (program): Likewise.
3679 [TEST_PAIRS] (program): Likewise.
3680 [TEST_KEEP] (program): Likewise.
3681 [TEST_GROK] (program): Likewise.
3682 [TEST_REV] (program): Likewise.
3683 (main): Update call to ‘gnurcs_init’.
3684
3685 2010-05-26 Thien-Thi Nguyen <[email protected]>
3686
3687 [int] Add abstraction: lock_drop
3688
3689 * b-excwho.c (lock_drop): New func.
3690 * b-excwho.h (lock_drop): New func decl.
3691 * ci.c (removelock): Use ‘lock_drop’.
3692 * co.c (rmlock): Likewise.
3693 * rcs.c (breaklock): Likewise.
3694 * rcsclean.c (unlock): Likewise.
3695 * rcsedit.c (findlock): Likewise.
3696
3697 2010-05-26 Thien-Thi Nguyen <[email protected]>
3698
3699 [int] Add abstractions: lock_memq, lock_login_memq, lock_delta_memq
3700
3701 * b-excwho.c: #include "b-esds.h".
3702 (lock_memq): New func.
3703 * b-excwho.h (lock_memq): New func decl.
3704 (lock_login_memq, lock_delta_memq): New macros.
3705 * ci.c (removelock): Use ‘lock_delta_memq’.
3706 * co.c (rmlock): Likewise.
3707 * rcs.c (breaklock, branchpoint): Likewise.
3708 * rcsclean.c (unlock): Likewise.
3709 * rcsedit.c (findlock): Use ‘lock_login_memq’.
3710
3711 2010-05-26 Thien-Thi Nguyen <[email protected]>
3712
3713 [int] Add abstraction: currently_setuid_p
3714
3715 * b-excwho.c (currently_setuid_p): New func.
3716 * b-excwho.h (currently_setuid_p): New func decl.
3717 * ci.c (main): Use ‘currently_setuid_p’; remove surrounding
3718 preproc cond ‘defined HAVE_SETUID && defined HAVE_GETUID’.
3719 * rcsedit.c (getcaller): Use ‘currently_setuid_p’; remove
3720 preproc cond ‘defined HAVE_SETUID’ and its #else branch.
3721 * rcsutil.c: #include "b-excwho.h".
3722 (set_uid_to): Use ‘currently_setuid_p’.
3723
3724 2010-05-26 Thien-Thi Nguyen <[email protected]>
3725
3726 [int] Compare delta objects instead of their revision numbers.
3727
3728 * co.c (rmlock): Dont ‘STR_SAME’; instead compare objects (with ‘==’).
3729 * rcs.c (breaklock): Likewise.
3730
3731 2010-05-26 Thien-Thi Nguyen <[email protected]>
3732
3733 [int] Add abstraction: caller_login_p
3734
3735 Here, "I" means "#include "b-excwho.h";
3736 "U" means "Use ‘caller_login_p’".
3737 * b-excwho.h: New file.
3738 * b-excwho.c: New file.
3739 * Makefile.am (libparts_a_SOURCES): Add b-excwho.h, b-excwho.c.
3740 * ci.c: I.
3741 (removelock, addbranch): U.
3742 * co.c: I.
3743 (rmlock): U.
3744 * rcs.c: I.
3745 (breaklock): U.
3746 * rcsclean.c: I.
3747 (unlock): U.
3748 * rcsedit.c: I.
3749 (findlock, addlock, checkaccesslist): U.
3750
3751 2010-05-25 Thien-Thi Nguyen <[email protected]>
3752
3753 Consult env var RCS_MEM_LIMIT to set the memory limit.
3754
3755 * base.h (struct behavior): Add member ‘mem_limit’.
3756 * rcsutil.c (gnurcs_init): Set ‘BE (mem_limit)’.
3757 * b-fro.c (REASONABLE_MMAP_SIZE): Delete #define.
3758 (fro_open): Use ‘BE (mem_limit)’ to determine read method.
3759
3760 2010-05-25 Thien-Thi Nguyen <[email protected]>
3761
3762 [int] Fix bug: Output proper range for ‘RM_STDIO’ fro.
3763
3764 Regression introduced 2010-04-27, "Add abstraction: fro_spew_partial".
3765 * b-fro.c (fro_spew_partial): In the case of ‘RM_STDIO’,
3766 compute remaining size using range end, not range beginning.
3767
3768 2010-05-25 Thien-Thi Nguyen <[email protected]>
3769
3770 [int] Bump mmap limit down to 256 kilobytes.
3771
3772 * b-fro.c (REASONABLE_MMAP_SIZE): Bump down to 262144.
3773
3774 2010-05-24 Thien-Thi Nguyen <[email protected]>
3775
3776 [int] Rewrite parsing.
3777
3778 * b-grok.h: New file.
3779 * b-grok.c: New file.
3780 * b-complain.c (fatal_syntax): Don't output line number if 0.
3781 * b-complain.h (SYNTAX_ERROR): Specify 0 for line number.
3782 * b-fro.h (struct atat): New.
3783 (string_from_atat, atat_put, atat_display): New func decls.
3784 (ATAT_END, ATAT_TEXT_END, FIXUP_OLD): New macros.
3785 * b-fro.c: #include <string.h>.
3786 (string_from_atat, atat_put, atat_display): New funcs.
3787 * b-kwxout.c (expandline): Don't assign to ‘NEXT (c)’, ‘LEX (lno)’.
3788 * base.h (struct hshentry): Add members ‘log’, ‘text’;
3789 delete members ‘insertlns’, ‘deletelns’.
3790 (struct behavior): Delete member ‘receptive_to_next_hash_key’.
3791 (struct parse_state): Delete.
3792 (struct repo): New.
3793 (struct repository): Add member ‘r’; delete members ‘admin’, ‘ndelt’.
3794 (struct top): Delete member ‘parse_state’.
3795 (LEX, NEXT, ADMIN): Delete macros.
3796 (GROK): New macro.
3797 (copystring, enterstring, editstring): Update func decls.
3798 (write_desc_maybe): New func decl.
3799 (Lexinit, nextlex, eoflex, getlex, getkeyopt, getkey, getkeystring)
3800 (getid, getnum, must_get_delta_num, readstring, printstring, savestring)
3801 (getadmin, gettree, getdesc, free_NEXT_str): Delete func decls.
3802 * ci.c: #include "b-grok.h".
3803 (removelock): Use ‘GROK (locks)’.
3804 (addelta): Use ‘REPO (r)’, ‘GROK (branch)’.
3805 (main): No longer call ‘gettree’, ‘Lexinit’, ‘getadmin’.
3806 Instead, use ‘grok_resynch’.
3807 * co.c (rmlock): Use ‘GROK (locks)’.
3808 (main): No longer call ‘gettree’, ‘getdesc’;
3809 use ‘GROK (branch)’, ‘write_desc_maybe’.
3810 * rcs.c (scanlogtext): Take pointer to list of deltas;
3811 rewrite to walk list of deltas instead of scanning input;
3812 update calls to ‘editstring’, ‘enterstring’.
3813 (doaccess): Use ‘GROK (access)’.
3814 (breaklock, branchpoint): Use ‘GROK (locks)’.
3815 (doassoc): Use ‘GROK (symbols)’.
3816 (dolocks): Use ‘GROK (locks)’, ‘GROK (branch)’.
3817 (buildeltatext): Take pointer to list of deltas;
3818 update calls to ‘scanlogtext’.
3819 (main): Use ‘GROK (access)’, ‘GROK (branch)’, GROK (deltas);
3820 no longer call ‘gettree’; update call to ‘buildeltatext’.
3821 * rcsclean.c (unlock): Use ‘GROK (locks)’.
3822 (main): No longer call ‘gettree’, ‘getdesc’;
3823 use ‘GROK (branch)’, ‘write_desc_maybe’.
3824 * rcsdiff.c (main): No longer call ‘gettree’; use ‘GROK (branch)’.
3825 * rcsedit.c (struct editstuff): Add member ‘script_lno’.
3826 (SYNTAX_ERROR): Re-#define macro.
3827 (struct finctx): New.
3828 (finisheditline): Take ‘struct finctx *’; on error,
3829 describe the failed action precisely, with line number.
3830 (finishedit_fast): Construct finctx; update calls to ‘finisheditline’.
3831 (copystring): Rewrite.
3832 (enterstring): Take ‘struct atat *’; update call to ‘copystring’;
3833 don't assign to ‘LEX (lno)’, ‘NEXT (c)’.
3834 (editstring): Take ‘struct atat *’; keep track of edit
3835 script line number; don't assign to ‘LEX (lno)’, ‘NEXT (c)’.
3836 (findlock, addlock): Use ‘GROK (locks)’.
3837 (addsymbol): Use ‘GROK (symbols)’.
3838 (checkaccesslist): Use ‘GROK (access)’.
3839 (dorewrite): Use '\n' directly instead of getting it from ‘NEXT (c)’.
3840 (getdiffcmd): Don't assign to ‘LEX (lno)’, ‘NEXT (c)’.
3841 * rcsfnms.c: #include "b-grok.h".
3842 (InitAdmin): Don't init ‘ADMIN (defbr)’, ‘ADMIN (allowed)’,
3843 ‘ADMIN (assocs)’, ‘ADMIN (locks)’; don't call ‘Lexinit’.
3844 (pairnames): Init ‘FLOW (erroneousp)’, ‘BE (Oerrloop)’;
3845 don't call ‘Lexinit’, ‘getadmin’; grok on successful open.
3846 * rcsgen.c (scandeltatext): Take pointer to list of deltas;
3847 rewrite to walk list of deltas instead of scanning input;
3848 update calls to ‘enterstring’, ‘copystring’, ‘editstring’.
3849 (buildrevision): Use ‘GROK (deltas)’; update calls to ‘scandeltatext’.
3850 (write_desc_maybe): New func.
3851 (putdesc): Use ‘write_desc_maybe’, ‘FIXUP_OLD’.
3852 (format_assocs): Don't do anything if ‘!REPO (r)’; use ‘GROK (symbols)’.
3853 (putadmin); Use ‘REPO (r)’, ‘GROK (branch)’,
3854 ‘GROK (access)’, ‘GROK (locks)’.
3855 * rcsmap.c (checkidentifier): Fix typo introduced 2010-05-18,
3856 "Move some funcs out of rcslex.c to rcsmap.c".
3857 * rcsmerge.c (main): No longer call ‘gettree’; use ‘GROK (branch)’.
3858 * rcsrev.c (rev_from_symbol): Use ‘GROK (symbols)’.
3859 (fully_numeric, tiprev): Use ‘GROK (branch)’.
3860 * rcsutil.c (free_NEXT_str): Delete func.
3861 * rlog.c: #incude <errno.h>.
3862 (read_positive_integer, count_a_d): New static funcs.
3863 (putadelta): Use ‘count_a_d’, ‘atat_display’.
3864 (getscript, readdeltalog): Delete funcs.
3865 (extractdelta, trunclocks): Use ‘GROK (locks)’.
3866 (getnumericrev): Use ‘GROK (branch)’.
3867 (main): Use ‘GROK (locks)’, ‘GROK (branch)’, ‘GROK (access)’,
3868 ‘GROK (deltas_count)’, ‘GROK (desc)’, ‘atat_display’, ‘FIXUP_OLD’;
3869 no longer call ‘gettree’.
3870 * rcslex.c: Delete file.
3871 * rcssyn.c: Delete file.
3872 * yarrrr.c [TEST_GROK]: New section.
3873 [TEST_LEX]: Delete section.
3874 [TEST_SYN]: Delete section.
3875 * Makefile.am (libparts_a_SOURCES):
3876 Add b-grok.h, b-grok.c; delete rcslex.c, rcssyn.c.
3877 (YALL): Add GROK; delete LEX, SYN.
3878
3879 2010-05-24 Thien-Thi Nguyen <[email protected]>
3880
3881 [int] Rename ‘ADMIN (log_lead)’ to ‘REPO (log_lead)’.
3882
3883 * base.h (struct repository): Add member ‘log_lead’;
3884 in sub-‘struct admin’, delete member ‘log_lead’.
3885 * b-kwxout.c (keyreplace): Update refs.
3886 * rcs.c (main): Likewise.
3887 * rcsfcmp.c (rcsfcmp): Likewise.
3888 * rcsfnms.c (InitAdmin): Likewise.
3889 * rcsgen.c (putadmin): Likewise.
3890 * rcssyn.c (getadmin): Likewise.
3891 * rlog.c (main): Likewise.
3892 * yarrrr.c [TEST_FCMP] (yarrrr): Likewise.
3893
3894 2010-05-22 Thien-Thi Nguyen <[email protected]>
3895
3896 [int] Rename ‘ADMIN (head)’ to ‘REPO (tip)’.
3897
3898 * base.h (struct repository): Add member ‘tip’;
3899 in sub-‘struct admin’, delete member ‘head’.
3900 * ci.c (addelta, main): Update refs.
3901 * rcs.c (getstates, breaklock, dolocks, buildtree, main): Likewise.
3902 * rcsclean.c (main): Likewise.
3903 * rcsdiff.c (main): Likewise.
3904 * rcsedit.c (dorewrite): Likewise.
3905 * rcsfnms.c (InitAdmin): Likewise.
3906 * rcsgen.c (putadmin): Likewise.
3907 * rcsmerge.c (main): Likewise.
3908 * rcsrev.c (genrevs, fully_numeric, tiprev): Likewise.
3909 * rcssyn.c (getadmin): Likewise.
3910 * rlog.c (putrunk, readdeltalog, getnumericrev, main): Likewise.
3911
3912 2010-05-21 Thien-Thi Nguyen <[email protected]>
3913
3914 [int] In ‘struct hshentry’, rename member ‘log’ to ‘pretty_log’.
3915
3916 * base.h (struct hshentry): Rename member ‘log’ to ‘pretty_log’.
3917 * b-kwxout.c (keyreplace): Update.
3918 * ci.c (main): Likewise.
3919 * rcs.c (scanlogtext, domessages): Likewise.
3920 * rcsfcmp.c (rcsfcmp): Likewise.
3921 * rcsgen.c (scandeltatext, putdtext, putdftext): Likewise.
3922 * rcssyn.c (getdelta): Likewise.
3923 * rlog.c (putadelta, readdeltalog, exttree): Likewise.
3924 * yarrrr.c [TEST_FCMP] (yarrrr): Likewise.
3925
3926 2010-05-20 Thien-Thi Nguyen <[email protected]>
3927
3928 [int] Use ‘struct link’ for ‘ADMIN (locks)’ list.
3929
3930 * base.h (struct repository): Change
3931 type of member ‘admin.locks’ to ‘struct link *’.
3932 * ci.c (removelock): Use ‘struct link’ for list-walk local vars.
3933 * co.c (rmlock): Likewise.
3934 * rcs.c (breaklock, branchpoint, dolocks): Likewise.
3935 * rcsclean.c (unlock): Likewise.
3936 * rcsedit.c (findlock, addlock): Likewise.
3937 * rcsgen.c (putadmin): Likewise.
3938 * rcssyn.c (getadmin, gettree): Likewise.
3939 * rlog.c (extractdelta, trunclocks, main): Likewise.
3940
3941 2010-05-20 Thien-Thi Nguyen <[email protected]>
3942
3943 [int] Use ‘struct link’ for ‘ADMIN (assocs)’ list.
3944
3945 * base.h (struct repository): Change
3946 type of member ‘admin.assocs’ to ‘struct link *’.
3947 * rcsedit.c (addsymbol): To rebind, cons a new ‘struct symdef’
3948 and splice it into the list position of the original association.
3949 * rcs.c (doassoc): Use ‘struct link’ for list-walk local vars.
3950 * rcsgen.c (format_assocs): Likewise.
3951 * rcsrev.c (rev_from_symbol): Likewise.
3952 * rcssyn.c (getadmin): Likewise.
3953
3954 2010-05-20 Thien-Thi Nguyen <[email protected]>
3955
3956 [int] Incorporate ‘fro_get_prev_byte’ into unique caller.
3957
3958 * b-kwxout.c (keyreplace): Use ‘fro_move’, ‘GETCHAR’.
3959 * b-fro.c (fro_get_prev_byte): Delete func.
3960 * b-fro.h (fro_get_prev_byte): Delete func decl.
3961
3962 2010-05-20 Thien-Thi Nguyen <[email protected]>
3963
3964 [int] Add abstraction: fro_move
3965
3966 * b-fro.c (fro_bob): Delete func.
3967 (fro_move): New func.
3968 * b-fro.h (fro_bob): Convert from func decl to macro.
3969 (fro_move): New func decl.
3970
3971 2010-05-20 Thien-Thi Nguyen <[email protected]>
3972
3973 [int org] Move some funcs out of rcssyn.c to rcsedit.c.
3974
3975 * rcssyn.c (unexpected_EOF, initdiffcmd, badDiffOutput)
3976 (diffLineNumberTooLarge, getdiffcmd): Move funcs from here...
3977 * rcsedit.c: #include <ctype.h>.
3978 (unexpected_EOF, initdiffcmd, badDiffOutput)
3979 (diffLineNumberTooLarge, getdiffcmd): ...to here.
3980 * base.h: Reorder func decls; nfc.
3981
3982 2010-05-19 Thien-Thi Nguyen <[email protected]>
3983
3984 [int] Use ‘?:’ more.
3985
3986 * rlog.c (putadelta): Use ‘?:’ instead of ‘if’ statement.
3987
3988 2010-05-18 Thien-Thi Nguyen <[email protected]>
3989
3990 [int] Add abstraction: SYNTAX_ERROR
3991
3992 * b-complain.c (fatal_syntax): Take line number as first arg.
3993 * b-complain.h (fatal_syntax): Update func decl.
3994 (SYNTAX_ERROR): New macro.
3995 * b-fro.c: Do g/fatal_syntax/SYNTAX_ERROR/g.
3996 * rcsedit.c: Likewise.
3997 * rcsgen.c: Likewise.
3998 * rcslex.c: Likewise.
3999 * rcssyn.c: Likewise.
4000 * rlog.c: Likewise.
4001 * yarrrr.c: Likewise.
4002
4003 2010-05-18 Thien-Thi Nguyen <[email protected]>
4004
4005 [int org] Move ‘LEX (erroneousp)’ to ‘FLOW (erroneousp)’.
4006
4007 * base.h (struct parse_state): Move member ‘erroneousp’ from here...
4008 (struct flow): ...to here.
4009 * b-complain.c: Do s/LEX (erroneousp)/FLOW (erroneousp)/g.
4010 * ci.c: Likewise.
4011 * co.c: Likewise.
4012 * merge.c: Likewise.
4013 * rcs.c: Likewise.
4014 * rcsclean.c: Likewise.
4015 * rcsdiff.c: Likewise.
4016 * rcsedit.c: Likewise.
4017 * rcskeep.c: Likewise.
4018 * rcslex.c: Likewise.
4019 * rcsmerge.c: Likewise.
4020 * rlog.c: Likewise.
4021
4022 2010-05-18 Thien-Thi Nguyen <[email protected]>
4023
4024 [int org] Move some funcs out of rcslex.c to rcsmap.c.
4025
4026 * rcslex.c (checkidentifier, checkid, checksym, checksid)
4027 (checkssym): Move funcs from here...
4028 * rcsmap.c (checkidentifier, checkid, checksym, checksid)
4029 (checkssym): ...to here.
4030 * base.h: Reorder func decls; nfc.
4031
4032 2010-05-18 Thien-Thi Nguyen <[email protected]>
4033
4034 [int] Dose some funcs with ‘const’.
4035
4036 * rcslex.c (checkidentifier, checkid, checksym):
4037 Return/take ‘char const *’.
4038 (checksid, checkssym): Take ‘char const *’.
4039 * base.h (checkidentifier, checkid, checksym)
4040 (checksid, checkssym): Update func decls.
4041
4042 2010-05-18 Thien-Thi Nguyen <[email protected]>
4043
4044 [int] Don't mutate string in ‘checkidentifier’.
4045
4046 * rcslex.c (checkidentifier): Don't NUL-terminate arg to
4047 error message; instead, use ‘%.*s’ in error message format string.
4048
4049 2010-05-18 Thien-Thi Nguyen <[email protected]>
4050
4051 [int org] Move ‘redefined’ from rcslex.c to rcsutil.c.
4052
4053 * base.h (redefined): Move func decl; nfc.
4054 * rcslex.c (redefined): Move func from here...
4055 * rcsutil.c (redefined): ...to here.
4056
4057 2010-05-18 Thien-Thi Nguyen <[email protected]>
4058
4059 [int org] Move some funcs out of rcslex.c to b-fb.[hc].
4060
4061 * b-fb.c (Ozclose, Orewind, aflush, oflush, afputc, aputs)
4062 (aprintf): Move funcs from rcslex.c to here.
4063 * b-fb.h (Ozclose, Orewind, aflush, oflush, afputc, aputs)
4064 (aprintf): Move func decls from base.h to here; add ‘extern’.
4065 * rcsclean.c: #include "b-fb.h".
4066 * rcssyn.c: Likewise.
4067 * rlog.c: Likewise.
4068 * base.h (Ozclose, Orewind, aflush, oflush, afputc, aputs)
4069 (aprintf): Delete func decls.
4070 * rcslex.c (Ozclose, Orewind, aflush, oflush, afputc, aputs)
4071 (aprintf): Delete funcs.
4072
4073 2010-05-18 Thien-Thi Nguyen <[email protected]>
4074
4075 [int] Mutate strings in rcs(1) ‘argv’ less.
4076
4077 * rcs.c (getassoclst, getaccessor, getstates):
4078 Cons a new string in ‘SHARED’ instead of mutating the arg.
4079
4080 2010-05-17 Thien-Thi Nguyen <[email protected]>
4081
4082 [int] Add abstractions: EDIT_SCRIPT_SHORT, EDIT_SCRIPT_OVERFLOW
4083
4084 * rcsedit.c (EDIT_SCRIPT_SHORT, EDIT_SCRIPT_OVERFLOW): New macros.
4085 (editEndsPrematurely, editLineNumberOverflow): Delete funcs.
4086 (insertline, deletelines, copylines): Use ‘EDIT_SCRIPT_OVERFLOW’.
4087 (editstring): Likewise; also, use ‘EDIT_SCRIPT_SHORT’.
4088
4089 2010-05-17 Thien-Thi Nguyen <[email protected]>
4090
4091 [int] Fix bug: Make ‘take’ handle branch number.
4092
4093 Regression introduced 2010-04-21,
4094 "Use ‘TAKE’, not ‘partialno’; zonk the latter".
4095 * rcsrev.c (take): Stop looping at terminating NUL;
4096 in that case, accumulate up to the NUL as well.
4097 * base.h (take): Update var name in func decl.
4098
4099 2010-05-13 Thien-Thi Nguyen <[email protected]>
4100
4101 [int] Centralize ‘COMPAT2’ support.
4102
4103 * b-anchor.c [COMPAT2] (tiny_suffix): New ‘struct tinysym’.
4104 * base.h [COMPAT2] (tiny_suffix): New ‘struct tinysym’ decl.
4105 * rcssyn.c [COMPAT2] (tiny_suffix): Delete.
4106
4107 2010-05-13 Thien-Thi Nguyen <[email protected]>
4108
4109 [int] Use ‘tmpfile’.
4110
4111 * rcs.c (sendmail, buildeltatext): Use ‘tmpfile’.
4112
4113 2010-05-13 Thien-Thi Nguyen <[email protected]>
4114
4115 rcs: Fix syntax error when ‘--with-mailer=MAILER’.
4116
4117 Regression introduced 2010-03-30, "Abstract writes to stderr".
4118 * rcs.c (sendmail): Add missing semicolon.
4119
4120 2010-05-09 Thien-Thi Nguyen <[email protected]>
4121
4122 [int] Use #define for ‘rcsdir’; rename its -len var conventionally.
4123
4124 * rcsfnms.c (rcsdir): Convert string var to #define.
4125 (rcsdirlen): Rename from ‘rcslen’.
4126 (rcssuffix): Use ‘rcsdirlen’.
4127 (fin2open): Use ‘rcsdirlen’ directly.
4128
4129 2010-05-08 Thien-Thi Nguyen <[email protected]>
4130
4131 [int] For collecting deltas, replace file-static var w/ local var.
4132
4133 * ci.c (gendeltas): Delete var.
4134 (addelta): Take ‘struct hshentries **’; pass it to ‘gr_revno’.
4135 (main): Use local var for collecting deltas; update call to ‘addelta’.
4136 * co.c (gendeltas): Delete var.
4137 (main): Use local var for collecting deltas.
4138 * rcs.c (gendeltas): Delete var.
4139 (removerevs, main): Use local var for collecting deltas.
4140
4141 2010-05-08 Thien-Thi Nguyen <[email protected]>
4142
4143 [int] Add abstraction: delta_from_ref
4144
4145 * base.h (delta_from_ref): New func decl.
4146 * rcsrev.c (delta_from_ref): New func.
4147 (branchtip): Use ‘delta_from_ref’.
4148 * ci.c (addbranch, main): Likewise.
4149 * co.c (addjoin): Likewise.
4150 * rcs.c (setlock, dolocks, domessages, rcs_setstate): Likewise.
4151 * rcsdiff.c (main): Likewise.
4152 * rcsmerge.c (main): Likewise.
4153
4154 2010-05-07 Thien-Thi Nguyen <[email protected]>
4155
4156 [int] Fix bug: Resolve ‘BRNUM.’ correctly.
4157
4158 Regression introduced 2010-04-21, "Add abstraction: fully_numeric".
4159 * rcsrev.c (fully_numeric): When expanding "BRNUM."--note
4160 trailing dot--append only the non-branch part of the tip revision.
4161
4162 2010-05-07 Thien-Thi Nguyen <[email protected]>
4163
4164 [int] Make ‘genrevs’, ‘gr_revno’ able to inhibit storing.
4165
4166 * rcsrev.c (STORE_MAYBE, CLEAR_MAYBE): New macros.
4167 (genbranch, genrevs): Use ‘STORE_MAYBE’, ‘CLEAR_MAYBE’.
4168 (branchtip): Update call to ‘gr_revno’ to specify no storage.
4169 * co.c (addjoin): Likewise.
4170 * rcsdiff.c (main): Likewise.
4171 * rcsmerge.c (main): Likewise.
4172
4173 2010-05-06 Thien-Thi Nguyen <[email protected]>
4174
4175 [int] Avoid ‘next’ as a local variable name.
4176
4177 * rcsedit.c (checkaccesslist): Rewrite ‘do-while’ as ‘for’ loop.
4178 * rcsrev.c (genbranch, genrevs): Rename local var ‘next’ to ‘d’.
4179 (rev_from_symbol): Rename local var ‘next’ to ‘ls’.
4180
4181 2010-05-06 Thien-Thi Nguyen <[email protected]>
4182
4183 [int] Use ‘struct wlink’ for hash table buckets.
4184
4185 * base.h (struct hshentry): Delete member ‘nexthsh’.
4186 (struct parse_state): Change type of ‘hshtab’ to ‘struct wlink **’.
4187 * rcslex.c: #include "b-esds.h".
4188 (lookup): Update to walk ‘struct wlink’ list; for new
4189 entries, push -- use ‘wprepend’ -- instead of appending.
4190
4191 2010-05-06 Thien-Thi Nguyen <[email protected]>
4192
4193 [int] Replace ‘struct branchhead’ with ‘struct wlink’.
4194
4195 Here, "U" means "Update to walk ‘struct wlink’ list".
4196 * base.h (struct branchhead): Delete.
4197 (struct hshentry): Change type of member ‘branches’ to ‘struct wlink *’.
4198 * ci.c (newbranch): Change type to ‘struct wlink’.
4199 (BHDELTA): New macro.
4200 (addbranch): U; use ‘BHDELTA’.
4201 * rcs.c (buildtree): U.
4202 * rcsgen.c (putdelta, puttree): U.
4203 * rcsrev.c (genbranch): U.
4204 * rcssyn.c (getdelta): U.
4205 * rlog.c (putadelta, putforest, exttree, recentdate, extdate): U.
4206
4207 2010-05-06 Thien-Thi Nguyen <[email protected]>
4208
4209 [int] Use ‘struct wlink’ for ‘ADMIN (locks)’ list.
4210
4211 Here, "U" means "Update to walk ‘struct wlink’ list".
4212 * base.h (struct rcslock): Delete member ‘nextlock’.
4213 (struct repository): In sub-‘struct admin’,
4214 change type of member ‘locks’ to ‘struct wlink *’.
4215 * ci.c (removelock): U.
4216 * co.c (rmlock): U.
4217 * rcs.c (breaklock, branchpoint): U.
4218 (dolocks): Update access to ‘ADMIN (locks)’.
4219 * rcsclean.c (unlock): U.
4220 * rcsedit.c (findlock): U.
4221 (addlock): U; use ‘wprepend’.
4222 * rcsgen.c (putadmin): U.
4223 * rcssyn.c (getadmin): U; use ‘wextend’.
4224 (gettree): U.
4225 * rlog.c (extractdelta, trunclocks, main): U.
4226
4227 2010-05-06 Thien-Thi Nguyen <[email protected]>
4228
4229 [int] Add abstraction: wprepend
4230
4231 * b-esds.h (wprepend): New func decl.
4232 * b-esds.c (PREPEND_BODY): New macro.
4233 (prepend): Use ‘PREPEND_BODY’.
4234 (wprepend): New func.
4235
4236 2010-05-06 Thien-Thi Nguyen <[email protected]>
4237
4238 [int] Replace ‘struct Status’ with ‘struct link’ + ‘struct u_state’.
4239
4240 * rcs.c (struct u_state): New.
4241 (struct Status): Delete.
4242 (statelst): Change type to ‘struct link’.
4243 (nextstate): Delete var.
4244 (getstates): Take ‘struct link **’; use ‘extend’.
4245 (main): Update call to ‘getstates’; update
4246 ‘statelst’ access to walk ‘struct link’ list.
4247
4248 2010-05-06 Thien-Thi Nguyen <[email protected]>
4249
4250 [int] Replace ‘struct Datepairs’ with ‘struct link’ + ‘struct daterange’.
4251
4252 * rlog.c (struct daterange): New.
4253 (struct Datepairs): Delete.
4254 (datelist, duelst): Change type to ‘struct link *’.
4255 (recentdate): Take ‘struct daterange *’.
4256 (extdate): Update to walk ‘struct link’ list.
4257 (PUSH): Move prior to ‘getdatepair’; nfc.
4258 (getdatepair): Use ‘struct daterange’ object; use ‘PUSH’.
4259 (main): Update to walk ‘struct link’ list; also, discard
4260 incomplete ‘duelst’ entry, substituting it with a new object.
4261
4262 2010-05-05 Thien-Thi Nguyen <[email protected]>
4263
4264 [int] Incorporate ‘xpandstring’ into unique caller.
4265
4266 * rcsgen.c: #include "b-kwxout.h".
4267 (scandeltatext): Incorporate ‘xpandstring’.
4268 * rcsedit.c (xpandstring): Delete func.
4269 * base.h (xpandstring): Delete func decl.
4270
4271 2010-05-05 Thien-Thi Nguyen <[email protected]>
4272
4273 [int] Free edit state when done.
4274
4275 * rcsedit.c (unmake_editstuff): New func.
4276 * base.h (unmake_editstuff): New func decl.
4277 * rcs.c (main): Use ‘unmake_editstuff’.
4278 * rcsgen.c (buildrevision): Likewise.
4279
4280 2010-05-05 Thien-Thi Nguyen <[email protected]>
4281
4282 [int] Replace ‘Iptr_type’ with ‘char *’.
4283
4284 * b-fro.h (Iptr_type): Delete typedef.
4285 (struct fro): Change type to ‘char *’ for members ‘ptr’, ‘lim’, ‘base’.
4286 * b-fro.c (fro_open): Use ‘char *’ directly.
4287 * rcsedit.c (struct editstuff): Likewise.
4288 (movelines, insertline, snapshotline, snapshotedit_fast)
4289 (finisheditline, finishedit_fast, enterstring): Likewise.
4290
4291 2010-05-05 Thien-Thi Nguyen <[email protected]>
4292
4293 [int] Replace ‘struct Message’ with ‘struct link’ + ‘struct u_log’.
4294
4295 * rcs.c (struct u_log): New.
4296 (struct Message): Delete.
4297 (messagelst): Change type to ‘struct link’.
4298 (nextmessage): Delete var.
4299 (getmessage): Take ‘struct link **’; use ‘extend’.
4300 (domessages): Update to walk ‘struct link’ list.
4301 (main): Update call to ‘getmessage’; update ‘messagelst’ access.
4302
4303 2010-05-05 Thien-Thi Nguyen <[email protected]>
4304
4305 [int] Replace ‘struct Revpairs’ with ‘struct link’ + ‘struct revrange’.
4306
4307 * rlog.c (struct revrange): New.
4308 (struct Revpairs): Delete.
4309 (revlist, Revlst): Change type to ‘struct link *’.
4310 (extractdelta): Update to walk ‘struct link’ list.
4311 (PUSH): New macro.
4312 (getnumericrev): Update to walk ‘struct link’ list; use ‘PUSH’.
4313 (putrevpairs): Use ‘PUSH’.
4314
4315 2010-05-05 Thien-Thi Nguyen <[email protected]>
4316
4317 [int] Add abstraction: prepend
4318
4319 * b-esds.h (prepend): New func decl.
4320 * b-esds.c (prepend): New func.
4321
4322 2010-05-04 Thien-Thi Nguyen <[email protected]>
4323
4324 [int] Use ‘struct u_symdef’ more.
4325
4326 * rcs.c (struct u_symdef): Move from here...
4327 * base.h (struct u_symdef): ...to here.
4328 * ci.c: #include "b-esds.h".
4329 (struct Symrev): Delete.
4330 (assoclst): Change type to ‘struct link’.
4331 (nextassoc): Delete var.
4332 (addsyms): Update to walk ‘struct link’ list.
4333 (addassoclst): Delete func.
4334 (first_meaningful_symbolic_name): New static func.
4335 (main): Combine ‘-n’, ‘-N’ handling; update ‘assoclst’
4336 init and access; use ‘first_meaningful_symbolic_name’.
4337
4338 2010-05-04 Thien-Thi Nguyen <[email protected]>
4339
4340 [int] Use ‘struct link’ more.
4341
4342 * rcs.c (struct chaccess): Delete member ‘nextchaccess’.
4343 (chaccess): Change type to ‘struct link’.
4344 (nextchaccess): Delete var.
4345 (getchaccess): Take ‘struct link **’; use ‘extend’.
4346 (getaccessor): Take ‘struct link **’; update call to ‘getchaccess’.
4347 (doaccess): Update to walk ‘struct link’ list.
4348 (main): Update calls to ‘getaccessor’, ‘getchaccess’.
4349
4350 2010-05-04 Thien-Thi Nguyen <[email protected]>
4351
4352 rcs: Fix bug: Correctly erase/append access-list entries.
4353
4354 Regression introduced 2010-04-28,
4355 "Use ‘struct link’ instead of ‘struct access’".
4356 * rcs.c (doaccess): Rewrite list walking for both erase/append.
4357
4358 2010-05-04 Thien-Thi Nguyen <[email protected]>
4359
4360 [int] Replace ‘struct Symrev’ with ‘struct link’ + ‘struct u_symdef’.
4361
4362 * rcs.c (struct Symrev): Delete.
4363 (struct u_symdef): New.
4364 (assoclst): Change type to ‘struct link’.
4365 (nextassoc): Delete var.
4366 (getassoclst): Don't take ‘flag’; instead, take ‘struct link **’;
4367 compute override flag from first char in ‘sp’; add local macro
4368 to skip whitespace; create a ‘struct u_symdef’; use ‘extend’.
4369 (doassoc): Update to walk ‘struct link’ list.
4370 (main): Update call to ‘getassoclst’; combine ‘-n’, ‘-N’ handling.
4371
4372 2010-05-04 Thien-Thi Nguyen <[email protected]>
4373
4374 rcs: Fix bug: Correctly delete symbolic name.
4375
4376 Regression introduced 2010-04-28,
4377 "Replace ‘struct assoc’ with ‘struct wlink’ + ‘struct symdef’".
4378 * rcs.c (doassoc): Use local variable of type
4379 ‘struct symdef *’ to assign from ‘void *’ instead of
4380 typecast; also, assign from ‘tp->entry’, not ‘tp’.
4381
4382 2010-05-04 Thien-Thi Nguyen <[email protected]>
4383
4384 [int] Fix bug: Make ‘keepdate’ actually keep the date.
4385
4386 Regression introduced 2010-04-12,
4387 "Use spaces for "ci -k" support".
4388 * rcskeep.c (keepdate): Use ‘intern’, not ‘finish_string’.
4389
4390 2010-05-03 Thien-Thi Nguyen <[email protected]>
4391
4392 [int] Add abstraction: parse_revpairs
4393
4394 * rcsutil.c (parse_revpairs): New func.
4395 * base.h (parse_revpairs): New func decl.
4396 * rcs.c (putdelrev): New static func.
4397 (getdelrev): Delete func.
4398 (main): Use ‘parse_revpairs’.
4399 * rlog.c (putrevpairs): New static func.
4400 (getrevpairs): Delete func.
4401 (main): Use ‘parse_revpairs’.
4402
4403 2010-05-03 Thien-Thi Nguyen <[email protected]>
4404
4405 ident: Make error message more conventional.
4406
4407 * ident.c (reportError): Delete func.
4408 (scanfile, main): Use ‘syserror_errno’.
4409
4410 2010-05-03 Thien-Thi Nguyen <[email protected]>
4411
4412 [int] Use ‘struct link’ more.
4413
4414 * rlog.c (struct rcslockers): Delete.
4415 (struct stateattri, struct authors): Likewise.
4416 (authorlist, lockerlist, statelist): Change type to ‘struct link *’.
4417 (getlocker, getauthor, getstate): Use ‘extend’.
4418 (extractdelta, trunclocks): Update to walk ‘struct link *’ list.
4419 * rcs.c (struct Lockrev): Delete.
4420 (newlocklst, rmvlocklst): Change type to ‘struct link *’.
4421 (rmnewlocklst): Return ‘struct link *’.
4422 (dolocks): Update to walk ‘struct link *’ list.
4423 (main): Use ‘extend’.
4424
4425 2010-05-02 Thien-Thi Nguyen <[email protected]>
4426
4427 [int] Use ‘bool’ more.
4428
4429 * base.h (struct hshentry): Change type of member ‘selector’ to bool.
4430
4431 2010-04-30 Thien-Thi Nguyen <[email protected]>
4432
4433 Freeze RCS file syntax; drop ‘newphrase’ support.
4434
4435 * base.h (struct hshentry): Delete members ‘ig’, ‘igtext’.
4436 (struct parse_state): Delete member ‘ignore’.
4437 (struct repository): Delete member ‘description’.
4438 (warnignore, getphrases, ignorephrases): Delete func decls.
4439 * ci.c (main): Don't init ‘newdelta.ig’, ‘newdelta.igtext’.
4440 * rcs.c (scanlogtext): Expect ‘text’ after ‘log’.
4441 * rcsfnms.c (InitAdmin): Don't init ‘ADMIN (description)’.
4442 * rcsgen.c (scandeltatext): Expect ‘text’ after ‘log’.
4443 (putadmin): Don't bother w/ ‘ADMIN (description)’ output.
4444 (putdelta, putdftext): Don't bother w/ "ignored phrases" output.
4445 * rcslex.c (warnignore): Delete func.
4446 (Lexinit): Don't bother w/ ‘LEX (ignore)’ init.
4447 (getphrases): Delete func.
4448 * rcssyn.c (getadmin): Don't init ‘ADMIN (description)’.
4449 (ignorephrases): Delete func.
4450 (getdelta): Don't bother lookng for "ignorable phrases".
4451 * rlog.c (readdeltalog): Expect ‘text’ after ‘log’.
4452
4453 2010-04-30 Thien-Thi Nguyen <[email protected]>
4454
4455 [int] Clean up base.h; nfc.
4456
4457 * base.h: Reorder top-level forms;
4458 add variable names to func decls.
4459 (expand_names): Delete now-unused var decl.
4460
4461 2010-04-30 Thien-Thi Nguyen <[email protected]>
4462
4463 [int] Add abstraction: format_assocs
4464
4465 * base.h (format_assocs): New func decl.
4466 * rcsgen.c (format_assocs): New func.
4467 (putadmin): Use ‘format_assocs’.
4468 * rlog.c (main): Likewise.
4469 * alive.test: Update expected rlog(1) output.
4470
4471 2010-04-30 Thien-Thi Nguyen <[email protected]>
4472
4473 Recognize ‘commitid SYMBOL’ in RCS file delta tree.
4474
4475 * base.h (struct hshentry): Add member ‘commitid’.
4476 (tiny_commitid): New var decl, via ‘TINY_DECL’.
4477 * b-anchor.c (tiny_commitid): New var, via ‘TINYK’.
4478 * rcssyn.c (getdelta): Recognize ‘commitid’; validate/save its value.
4479 * rcsgen.c (putdelta): Output ‘commitid’ info, if available.
4480 * rlog.c (putadelta): Likewise.
4481
4482 2010-04-30 Thien-Thi Nguyen <[email protected]>
4483
4484 [int] Move ‘expandline’ scratch to expansion context.
4485
4486 * b-kwxout.h (struct expctx): Add member ‘lparts’.
4487 * b-kwxout.c (LPARTS): Delete #define.
4488 (ENSURE_LPARTS): Delete macro.
4489 (expandline): Create/use space directly in expansion context.
4490 * base.h (struct manifestation): Delete member ‘lparts’.
4491
4492 2010-04-29 Thien-Thi Nguyen <[email protected]>
4493
4494 [int] For rcsedit.c, use es->foo directly.
4495
4496 * rcsedit.c (EDIT): Delete macro.
4497 (insertline): Use ‘es->foo’ instead of ‘EDIT (foo)’.
4498 (deletelines, snapshotedit_fast, finishedit_fast, swapeditfiles)
4499 (finishedit_slow, snapshotedit_slow, copylines, copystring)
4500 (enterstring, editstring): Likewise.
4501
4502 2010-04-29 Thien-Thi Nguyen <[email protected]>
4503
4504 [int] Tighten ‘finishedit_fast’.
4505
4506 * rcsedit.c (finisheditline): Take ‘struct expctx *’.
4507 (finishedit_fast): Create expansion context, pass to ‘finisheditline’.
4508
4509 2010-04-28 Thien-Thi Nguyen <[email protected]>
4510
4511 [int] Replace ‘struct assoc’ with ‘struct wlink’ + ‘struct symdef’.
4512
4513 Here, "U" means "Update to use ‘struct wlink’ + ‘struct symdef’".
4514 * base.h (struct assoc): Delete.
4515 (struct symdef): New.
4516 (struct repository): Use ‘struct wlink’ for ‘admin.assocs’.
4517 * rcs.c (doassoc): U.
4518 * rcsedit.c (addsymbol): U.
4519 * rcsgen.c (putadmin): U.
4520 * rcsrev.c: #include "b-esds.h".
4521 (rev_from_symbol): U.
4522 (lookupsym): Use ‘rev_from_symbol’.
4523 * rcssyn.c (getadmin): U.
4524 * rlog.c (main): U.
4525
4526 2010-04-28 Thien-Thi Nguyen <[email protected]>
4527
4528 [int] Use ‘struct link’ instead of ‘struct access’.
4529
4530 Here, "U" means "Update to use ‘struct link’".
4531 * base.h (struct access): Delete.
4532 (struct repository): Use ‘struct link’ for ‘admin.allowed’.
4533 * rcs.c: #include "b-esds.h".
4534 (doaccess, main): U.
4535 * rcsedit.c: #include "b-esds.h".
4536 (checkaccesslist): U.
4537 * rcsgen.c: #include "b-esds.h".
4538 (putadmin): U.
4539 * rcssyn.c: #include "b-esds.h".
4540 (getadmin): U.
4541 * rlog.c: #include "b-esds.h".
4542 (main): U.
4543
4544 2010-04-28 Thien-Thi Nguyen <[email protected]>
4545
4546 [int] Add abstractions: STR_DIFF, STR_SAME
4547
4548 * base.h (STR_DIFF, STR_SAME): New macros.
4549 * ci.c (removelock, addbranch, main): Use one or both of them.
4550 * co.c (rmlock): Likewise.
4551 * rcs.c (rmnewlocklst, doaccess, breaklock, doassoc)
4552 (rcs_setstate, main): Likewise.
4553 * rcsclean.c (unlock): Likewise.
4554 * rcsedit.c (findlock, addlock, addsymbol, checkaccesslist): Likewise.
4555 * rcslex.c (lookup): Likewise.
4556 * rcsmerge.c (main): Likewise.
4557 * rcsrev.c (genbranch, genrevs, lookupsym, namedrev): Likewise.
4558 * rlog.c (extractdelta, trunclocks): Likewise.
4559
4560 2010-04-28 Thien-Thi Nguyen <[email protected]>
4561
4562 [int] Rework remaining function-static variables.
4563
4564 * ci.c (newbranch): New file-static var, moved to here...
4565 (addbranch): ...from here.
4566 (getcurdate_buffer): New file-static var, renamed/moved to here...
4567 (getcurdate): ...from ‘buffer’, here.
4568 (FIRST): New #define.
4569 (logmsg): New file-static var, move to here...
4570 (getlogmsg): ...from here; also, construct "empty checkin"
4571 and "initial revision" messages dynamically.
4572 (default_state): New file-static var, moved to here...
4573 (main): ...from here.
4574 * rcsmerge.c (quietarg): New #define.
4575 (main): Delete func-static var ‘quietarg’.
4576 * rlog.c (putdelta): Delete func-static
4577 var ‘emptych’; use ‘EMPTYLOG’ directly.
4578
4579 2010-04-27 Thien-Thi Nguyen <[email protected]>
4580
4581 [int] New abstractions: extend, wextend
4582
4583 * b-esds.h: New file.
4584 * b-esds.c: New file.
4585 * Makefile.am (libparts_a_SOURCES): Add b-esds.h, b-esds.c.
4586 * co.c: #include "b-esds.h".
4587 (struct link): Delete.
4588 (struct jstuff): Delete members ‘prev’, ‘cur’; add ‘head’, ‘tp’.
4589 (jpush): Use ‘extend’.
4590 (preparejoin): Accumulate ‘joinlist’ components in order.
4591 * rcsclean.c: #include "b-esds.h".
4592 (struct link): Delete.
4593 (get_directory): Use ‘wextend’.
4594
4595 2010-04-27 Thien-Thi Nguyen <[email protected]>
4596
4597 [int] Add abstraction: fro_spew_partial
4598
4599 * b-fro.h (struct range): New.
4600 (struct fro): Add member ‘end’.
4601 (fro_spew_partial): New func decl.
4602 * b-fro.c (fro_open): Save file-end offset.
4603 (fro_spew_partial): New func.
4604 (fro_spew): Use ‘fro_spew_partial’.
4605
4606 2010-04-26 Thien-Thi Nguyen <[email protected]>
4607
4608 [int] Make ‘struct maketimestuff’ definition global.
4609
4610 * maketime.h (maketimestuff): Move struct def to here...
4611 * maketime.c: Don't #include "b-divvy.h".
4612 (maketimestuff): ...from here.
4613 (init_maketimestuff): Delete func.
4614 * rcsutil.c (gnurcs_init): Init ‘BE (maketimestuff)’ directly.
4615
4616 2010-04-26 Thien-Thi Nguyen <[email protected]>
4617
4618 [int] Allocate edit state lazily.
4619
4620 Here, "F" means "Take ‘struct editstuff *’ as first arg".
4621 * rcsedit.c (EDIT): Update macro.
4622 (make_editstuff): New func.
4623 (insertline, deletelines, snapshotedit_fast, finishedit_fast)
4624 (swapeditfiles, finishedit_slow, snapshotedit_slow, finishedit)
4625 (snapshotedit, copylines): F.
4626 (ensure_editstuff): Delete func.
4627 (copystring): F; don't call ‘ensure_editstuff’.
4628 (enterstring): Likewise.
4629 (editstring): F.
4630 (rcswriteopen): Don't call ‘ensure_editstuff’.
4631 * rcsgen.c (scandeltatext): F.
4632 (buildrevision): Create a ‘struct editstuff’ to pass around.
4633 * rcs.c (scanlogtext, buildeltatext): F.
4634 (main): Create a ‘struct editstuff’ to pass around.
4635 * base.h (struct behavior): Remove member ‘editstuff’.
4636 (make_editstuff): New func decl.
4637 (copystring, enterstring, finishedit)
4638 (snapshotedit, editstring): Update func decls.
4639
4640 2010-04-25 Thien-Thi Nguyen <[email protected]>
4641
4642 [int] Move ‘testalloc’, ‘testrealloc’; make them static.
4643
4644 * rcsedit.c: #include <stdlib.h>.
4645 (okalloc, testalloc, testrealloc): New static funcs.
4646 * rcsutil.c (okalloc, testalloc, testrealloc): Delete funcs.
4647 * base.h (testalloc, testrealloc): Delete func decls.
4648
4649 2010-04-25 Thien-Thi Nguyen <[email protected]>
4650
4651 [int] Use ‘SHARED’ more.
4652
4653 * ci.c (addassoclst): Use ‘ZLLOC’.
4654 * rcs.c (getassoclst, getchaccess)
4655 (getmessage, getstates, main): Likewise.
4656 (rmnewlocklst): Don't ‘tfree’.
4657 * rlog.c (getlocker, getauthor, getstate)
4658 (getdatepair, getrevpairs): Use ‘ZLLOC’.
4659 * base.h (talloc, tfree): Delete macros.
4660
4661 2010-04-25 Thien-Thi Nguyen <[email protected]>
4662
4663 [int] Bifurcate ‘fro_getbyte’ to fro_{try,must}_getbyte.
4664
4665 * b-fro.c (GETBYTE_BODY): New macro.
4666 (fro_getbyte): Delete func.
4667 (fro_try_getbyte, fro_must_getbyte): New funcs.
4668 (fro_get_prev_byte): Use ‘fro_must_getbyte’.
4669 * b-fro.h (fro_getbyte): Delete func decl.
4670 (fro_try_getbyte, fro_must_getbyte): New func decls.
4671 (GETCHAR_OR) Use ‘fro_try_getbyte’.
4672 (GETCHAR): Use ‘fro_must_getbyte’.
4673
4674 2010-04-25 Thien-Thi Nguyen <[email protected]>
4675
4676 [int] Add abstraction: must_get_colon_delta_num
4677
4678 * rcssyn.c (must_get_colon_delta_num): New static func.
4679 (getadmin): Use it.
4680
4681 2010-04-25 Thien-Thi Nguyen <[email protected]>
4682
4683 [int] Add abstraction: must_get_delta_num
4684
4685 * rcslex.c (must_get_delta_num): New func.
4686 * base.h (must_get_delta_num): New func decl.
4687 * rcs.c (scanlogtext): Use ‘must_get_delta_num’.
4688 * rcsgen.c (scandeltatext): Likewise.
4689 * rlog.c (readdeltalog): Likewise.
4690
4691 2010-04-25 Thien-Thi Nguyen <[email protected]>
4692
4693 [int] Use ‘strlen’ less.
4694
4695 * rcs.c (main): Use ‘commsymlen’.
4696 * rcsfnms.c (pairnames): Use ‘intern’, ‘maybe.bestfit.size’.
4697 * rcslex.c (lookup): Use ‘intern’.
4698 * rcstime.c (date2str): Track write count via ‘sprintf’ rv.
4699
4700 2010-04-24 Thien-Thi Nguyen <[email protected]>
4701
4702 Enable 64-bit file offsets.
4703
4704 * base.h (_FILE_OFFSET_BITS): New #define.
4705
4706 2010-04-24 Thien-Thi Nguyen <[email protected]>
4707
4708 [int] Make ‘tiny_branches’ global.
4709
4710 * base.h (tiny_branches): New var decl (via ‘TINY_DECL’).
4711 * b-anchor.c (tiny_branches): New var (via ‘TINYK’).
4712 * rcssyn.c (tiny_branches): Delete static var.
4713
4714 2010-04-24 Thien-Thi Nguyen <[email protected]>
4715
4716 [build] Use gnulib module ‘obstack-printf’.
4717
4718 * b-divvy.c (accf): New func.
4719 (accumulate_nonzero_bytes): Delete func.
4720 * b-divvy.h (accf): New func decl.
4721 (accumulate_nonzero_bytes): Delete func decl.
4722 (accs): New macro.
4723 * b-feph.c (jam_sff): Use ‘accf’.
4724 * ci.c (ACCB, ACCS): Delete macros.
4725 (ACCF): New macro.
4726 (JAM, ADD, incnum, getlogmsg): Use ‘ACCF’.
4727 * co.c (buildjoin): Use ‘accf’.
4728 * merger.c (normalize_arg): Likewise.
4729 * rcsdiff.c (setup_label, main): Likewise.
4730 * rcsedit.c (naturalize, rcswriteopen): Use ‘accs’.
4731 * rcsfnms.c (getfullRCSname): Use ‘accf’.
4732 * rcslex.c (getphrases): Use ‘accs’.
4733 * rcsrev.c (accumulate_branchno): Likewise.
4734 (fully_numeric): Use ‘accf’, ‘accs’.
4735 * rcsutil.c (minus_p, accumulate_arg_quoted): Use ‘accf’.
4736 (runv): Use ‘accs’, ‘accf’.
4737 * rlog.c (getnumericrev): Use ‘accf’.
4738
4739 2010-04-23 Thien-Thi Nguyen <[email protected]>
4740
4741 [int] Tighten ‘InitAdmin’.
4742
4743 * rcsfnms.c (bindex, suffix_matches): Delete func.
4744 (InitAdmin): Use ‘strrchr’, ‘strcasecmp’.
4745
4746 2010-04-22 Thien-Thi Nguyen <[email protected]>
4747
4748 [int] Use tinysym for parsing "RCS file keywords".
4749
4750 * b-anchor.c (TINY_INIT, TINYK): New macros.
4751 (tiny_ciklog, tiny_access, tiny_author, tiny_branch, tiny_comment)
4752 (tiny_date, tiny_desc, tiny_expand, tiny_head, tiny_locks, tiny_log)
4753 (tiny_next, tiny_state, tiny_strict, tiny_symbols, tiny_text):
4754 New ‘struct tinysym’ objects, via ‘TINY_DECL’, ‘TINYK’.
4755 (looking_at): New func.
4756 * base.h (KS): Delete macro.
4757 (Kaccess, Kauthor, Kbranch, Kcomment, Kdate, Kdesc)
4758 (Kexpand, Khead, Klocks, Klog, Knext, Kstate, Kstrict)
4759 (Ksymbols, Ktext, ciklog, ciklog_len): Delete #define:s.
4760 (TINY, TINY_DECL): New macros.
4761 (tiny_ciklog, tiny_access, tiny_author, tiny_branch, tiny_comment)
4762 (tiny_date, tiny_desc, tiny_expand, tiny_head, tiny_locks, tiny_log)
4763 (tiny_next, tiny_state, tiny_strict, tiny_symbols, tiny_text):
4764 New ‘struct tinysym’ object decls, via ‘TINY_DECL’.
4765 (looking_at): New func decl.
4766 (getkeyopt, getphrases, getkey, getkeystring)
4767 (ignorephrases): Update func decls.
4768 (TINYS, TINYKS): New macros.
4769 * b-kwxout.c (keyreplace): Use ‘looking_at’, ‘TINY (ciklog)’.
4770 * rcsfcmp.c (rcsfcmp): Likewise.
4771 * ci.c (getlogmsg): Use ‘TINYKS’.
4772 * rcsedit.c (dorewrite): Likewise.
4773 * rcs.c (scanlogtext): Pass ‘&TINY (foo)’.
4774 * rcsgen.c (scandeltatext): Likewise.
4775 (putdesc, putadmin, putdelta, putdftext): Use ‘TINYKS’.
4776 * rcslex.c (getkeyopt, getkey, getkeystring): Take ‘struct tinysym *’.
4777 (getphrases): Likewise; use ‘intern’.
4778 * rcssyn.c (Kbranches): Replace #define with ‘TINY_DECL (branches)’.
4779 [COMPAT2] (Ksuffix): Replace #define with ‘TINY_DECL (suffix)’.
4780 (getsemi): Take ‘struct tinysym *’.
4781 (getadmin): Pass ‘&TINY (foo)’.
4782 (ignorephrases): Take ‘struct tinysym *’; use ‘looking_at’.
4783 (getkeyval): Take ‘struct tinysym *’; use ‘TINYS’.
4784 (getdelta, getdesc): Pass ‘&TINY (foo)’.
4785 * rlog.c (readdeltalog): Likewise.
4786
4787 2010-04-22 Thien-Thi Nguyen <[email protected]>
4788
4789 [int] Tighten ‘recognize_kwsub’, ‘str2expmode’.
4790
4791 * b-anchor.c (pool_lookup, recognize_kwsub):
4792 Don't take START, LEN; instead take a ‘struct cbuf *’.
4793 (str2expmode): New func.
4794 (recognize_keyword): Update call to ‘pool_lookup’.
4795 * rcssyn.c (getadmin): Update call to ‘recognize_kwsub’.
4796 * base.h (recognize_kwsub): Update func decl.
4797 (str2expmode): Convert from macro to func decl.
4798
4799 2010-04-21 Thien-Thi Nguyen <[email protected]>
4800
4801 [int] Prune now-obsolete ‘struct buf’.
4802
4803 * base.h (buf): Delete struct.
4804
4805 2010-04-21 Thien-Thi Nguyen <[email protected]>
4806
4807 [int] Replace ‘Ofclose’ with ‘Ozclose’ or plain ‘fclose’.
4808
4809 * co.c (main): Use ‘Ozclose’.
4810 * merger.c (merge): Likewise.
4811 * rcs.c (buildeltatext): Likewise.
4812 * rcsclean.c (main): Use ‘fclose’.
4813 * rcslex.c (Ofclose): Incorporate into ‘Ozclose’.
4814 * rcsmerge.c (main): Use ‘fclose’.
4815 * rlog.c (main): Use ‘Ozclose’.
4816 * base.h (Ofclose): Delete func decl.
4817
4818 2010-04-21 Thien-Thi Nguyen <[email protected]>
4819
4820 [int C] Factor func-finish code.
4821
4822 * rcsgen.c (buildrevision): Move common finish to end of func.
4823
4824 2010-04-21 Thien-Thi Nguyen <[email protected]>
4825
4826 [int] Prune some now-obsoleted macros/funcs.
4827
4828 * base.h (bufautobegin): Delete macro.
4829 (bufalloc, bufautoend, fbuf_save): Delete func decls.
4830 * rcsfnms.c (bufalloc, bufautoend): Delete funcs.
4831 * rcsutil.c (fbuf_save): Delete func.
4832
4833 2010-04-21 Thien-Thi Nguyen <[email protected]>
4834
4835 [int] Use ‘SHARED’ more.
4836
4837 * b-kwxout.c (keyreplace): Save $Log leader temporarily in ‘SHARED’.
4838 * ci.c (getlogmsg): For -k, save log message in ‘SHARED’.
4839 * rcsdiff.c [DIFF_L] (setup_label): Don't take
4840 ‘struct buf *’; construct label in ‘SHARED’.
4841 (main) [DIFF_L]: Update calls to ‘setup_label’.
4842
4843 2010-04-21 Thien-Thi Nguyen <[email protected]>
4844
4845 [int] Prune some now-obsoleted funcs.
4846
4847 * base.h (bufenlarge, bufscat, bufscpy): Delete func decls.
4848 * rcsfnms.c (bufrealloc, bufenlarge, bufscat, bufscpy): Delete funcs.
4849
4850 2010-04-21 Thien-Thi Nguyen <[email protected]>
4851
4852 [int] Replace ‘expandsym’ with ‘fully_numeric_no_k’.
4853
4854 * base.h (expandsym): Delete func decl.
4855 (fully_numeric_no_k): New macro.
4856 * co.c (addjoin, main): Use ‘fully_numeric_no_k’.
4857 * rcs.c (numrev): Change var type to ‘struct cbuf’.
4858 (removerevs, doassoc, setlock, dolocks, domessages)
4859 (rcs_setstate, main): Use ‘fully_numeric_no_k’.
4860 * rcsrev.c (expandsym): Delete func.
4861 * rlog.c (getnumericrev): Use ‘fully_numeric_no_k’.
4862 * yarrrr.c [TEST_REV] (yarrrr): Likewise.
4863
4864 2010-04-21 Thien-Thi Nguyen <[email protected]>
4865
4866 [int] Use ‘BRANCHNO’, not ‘getbranchno’; zonk the latter.
4867
4868 * rcsrev.c (take): If ‘count’ is zero, take it
4869 to be the number of fields right for a branch number.
4870 (getbranchno): Delete func.
4871 * base.h (getbranchno): Delete func decl.
4872 (BRANCHNO): New macro.
4873 * ci.c (addbranch): Use ‘BRANCHNO’.
4874 * rcs.c (removerevs): Likewise.
4875 * rlog.c (putadelta): Likewise.
4876
4877 2010-04-21 Thien-Thi Nguyen <[email protected]>
4878
4879 [int] Use ‘TAKE’, not ‘partialno’; zonk the latter.
4880
4881 * base.h (take): New func decl.
4882 (partialno): Delete func decl.
4883 (TAKE): Move macro to here...
4884 * rcsrev.c (TAKE): ... from here.
4885 (take): Make non-static.
4886 (partialno): Delete func.
4887 * co.c (getancestor): Use ‘TAKE’.
4888 * rlog.c (getnumericrev): Likewise.
4889
4890 2010-04-21 Thien-Thi Nguyen <[email protected]>
4891
4892 [int] Add abstraction: take
4893
4894 * rcsrev.c (take): New static func.
4895 (TAKE): New macro.
4896 (getbranchno, absent, partialno, genbranch, genrevs): Use ‘TAKE’.
4897
4898 2010-04-21 Thien-Thi Nguyen <[email protected]>
4899
4900 [int] Use ‘fully_numeric’, not ‘fexpandsym’; zonk the latter.
4901
4902 * ci.c: #include "b-divvy.h".
4903 (newdelnum): Change type to ‘struct cbuf’.
4904 (ACCB, ACCS, OK, JAM, ADD): New macros.
4905 (incnum): Take ‘struct cbuf *’; accumulate into ‘SHARED’.
4906 (addbranch): Likewise.
4907 (addelta): Accumulate into ‘SHARED’; pass new string to ‘cmpnum’.
4908 (main): Use ‘fully_numeric’.
4909 * rcsclean.c (main): Use ‘fully_numeric’.
4910 * rcsdiff.c (main): Likewise.
4911 * rcsmerge.c: #include "b-divvy.h".
4912 (main): Use ‘fully_numeric’.
4913 * rcsrev.c (fexpandsym): Delete func.
4914 (expandsym): Use ‘fully_numeric’.
4915 * base.h (fexpandsym): Delete func decl.
4916
4917 2010-04-21 Thien-Thi Nguyen <[email protected]>
4918
4919 [int] Add abstraction: fully_numeric
4920
4921 * base.h (fully_numeric): New func decl.
4922 * rcsrev.c (split, accumulate_branchno, rev_from_symbol):
4923 New static funcs.
4924 (fully_numeric): New func.
4925 (fexpandsym): Use ‘fully_numeric’.
4926 (expandsym): Move after ‘fexpandsym’; nfc.
4927
4928 2010-04-20 Thien-Thi Nguyen <[email protected]>
4929
4930 [build] Move conditionally-compiled test programs to yarrrr.c.
4931
4932 * yarrrr.c: New file.
4933 * Makefile.am (EXTRA_DIST): Add yarrrr.c.
4934 (YALL, YPROGS): New vars.
4935 (y-STR2TIME, y-FCMP, y-PAIRS, y-KEEP, y-LEX, y-REV, y-SYN)
4936 (y-all, y-clean): New targets.
4937 * base.h: Comment munging; nfc.
4938 * maketime.c [TEST]: Delete #ifdef .. #endif block.
4939 * rcsfcmp.c [FCMPTEST]: Likewise.
4940 * rcsfnms.c [PAIRTEST]: Likewise.
4941 * rcskeep.c [KEEPTEST]: Likewise.
4942 * rcslex.c [LEXDB]: Likewise.
4943 * rcsrev.c [REVTEST]: Likewise.
4944 * rcssyn.c [SYNTEST]: Likewise.
4945
4946 2010-04-19 Thien-Thi Nguyen <[email protected]>
4947
4948 [int] Add abstraction: minus_p
4949
4950 * base.h (minus_p): New func decl.
4951 * rcsutil.c (minus_p): New func.
4952 * rcsdiff.c (main): Use ‘minus_p’.
4953 * rcsmerge.c (main): Likewise.
4954
4955 2010-04-19 Thien-Thi Nguyen <[email protected]>
4956
4957 [int] For ‘co -j’, save merge(1)-command args in ‘SINGLE’.
4958
4959 * co.c (buildjoin): Save arg strings in ‘SINGLE’.
4960
4961 2010-04-19 Thien-Thi Nguyen <[email protected]>
4962
4963 [int] Encapsulate ‘pairnames’ probe protocol state entirely.
4964
4965 * base.h (maybe): New struct.
4966 (open_rcsfile_fn): Rename from ‘open_rcsfile_fn_t’; rewrite arglist.
4967 (rcswriteopen, rcsreadopen, pairnames): Update func decls.
4968 * rcsedit.c (naturalize): Take ‘struct maybe *’; use its space
4969 intead of a local one; don't save new filename in ‘SINGLE’.
4970 (rcswriteopen): Take ‘struct maybe *’; update call to ‘naturalize’;
4971 save not-yet-validated filenames in ‘m->space’; don't save to
4972 ‘SINGLE’ until after validation; pass ‘m->status’ to ‘fro_open’.
4973 * rcsfnms.c (rcsreadopen): Take ‘struct maybe *’.
4974 (maybe): Delete struct.
4975 (finopen): Update call to ‘m->open’; update ‘m->bestfit’ assignment.
4976 (fin2open): Build the strings in ‘m->space’; point ‘m->tentative’.
4977 (pairnames): Update type name of ‘rcsopen’ in arglist; set
4978 ‘maybe.status’; make a space for ‘maybe.space’; update ‘maybe.bestfit’
4979 init; update call to ‘rcsopen’; close space before returning.
4980
4981 2010-04-19 Thien-Thi Nguyen <[email protected]>
4982
4983 [int] Add abstraction: bad_option
4984
4985 * base.h (bad_option): New func decl.
4986 * rcsutil.c (bad_option): New func.
4987 * ci.c (main): Use ‘bad_option’.
4988 * co.c (main): Likewise.
4989 * merge.c (badoption): Delete func.
4990 (main): Use ‘bad_option’.
4991 * rcs.c (main): Likewise.
4992 * rcsclean.c (main): Likewise.
4993 * rcsdiff.c (main): Likewise.
4994 * rcsfnms.c [PAIRTEST] (main): Likewise.
4995 * rcsmerge.c (main): Likewise.
4996 * rlog.c (main): Likewise.
4997
4998 2010-04-19 Thien-Thi Nguyen <[email protected]>
4999
5000 rcsclean: On unknown option, don't display usage info.
5001
5002 * rcsclean.c (main): Don't display usage info.
5003
5004 2010-04-19 Thien-Thi Nguyen <[email protected]>
5005
5006 Don't say "path" when referring to file names.
5007
5008 Files whose only changes were to comments are omitted.
5009 * base.h (ABSFNAME): Rename from ‘ROOTPATH’.
5010 (SIZEABLE_FILENAME_LEN): Rename from ‘SIZEABLE_PATH’.
5011 * rcs.c (main): Say "filename" in error message.
5012 * rcsedit.c (naturalize): Use ‘SIZEABLE_FILENAME_LEN’, ‘ABSFNAME’.
5013 (rcswriteopen): Rename local var; say "filename" in error messages.
5014 * rcsfnms.c (rcsreadopen): Rename arg; nfc.
5015 (getfullRCSname): Use ‘ABSFNAME’.
5016 [!HAVE_GETCWD] (getcwd): Rename arg; nfc.
5017 [PAIRTEST] (main): Say "filename" in diagnostic.
5018
5019 2010-04-19 Thien-Thi Nguyen <[email protected]>
5020
5021 [int] Move cached cwd to ‘struct behavior’.
5022
5023 * base.h (behavior): Add member ‘cwd’; delete member ‘fnstuff’.
5024 (init_fnstuff): Delete func decl.
5025 * rcsfnms.c (fnstuff): Delete struct.
5026 (FN): Delete macro.
5027 (init_fnstuff): Delete func.
5028 (getfullRCSname): Use ‘BE (cwd)’ instead of ‘FN (cwd)’.
5029 * rcsutil.c (gnurcs_init): Don't init fnstuff.
5030
5031 2010-04-19 Thien-Thi Nguyen <[email protected]>
5032
5033 [build] Trim some unused #include directives.
5034
5035 * rcsfnms.c: Don't #include <stdint.h>,
5036 <sys/time.h>, <fcntl.h>, <sys/wait.h>.
5037
5038 2010-04-19 Thien-Thi Nguyen <[email protected]>
5039
5040 [build] Revert forced-‘if’ introduced 2010-04-12.
5041
5042 * rcsfnms.c (getfullRCSname): Revert ‘if (!0)’.
5043
5044 2010-04-19 Thien-Thi Nguyen <[email protected]>
5045
5046 [int] Encapsulate parameters for ‘pairnames’ subroutines.
5047
5048 * rcsfnms.c (fnstuff): Delete members ‘RCSb’, ‘RCSbuf’, ‘RCSerrno’.
5049 (maybe): New struct.
5050 (finopen): Take a ‘struct maybe *’; extract ‘filename’, ‘open’ and
5051 ‘mustread’ from it; if succesful, modify its ‘bestfit’ and ‘eno’.
5052 (fin2open): Use '\0' instead of naked 0; take a ‘struct maybe *’;
5053 init its member ‘filename’; pass it to ‘finopen’.
5054 (pairnames): Construct a ‘struct maybe’ to pass to ‘fin2open’;
5055 if filename found, save its ‘bestfit’ to ‘REPO (filename)’.
5056
5057 2010-04-18 Thien-Thi Nguyen <[email protected]>
5058
5059 [int C] Use ‘open_rcsfile_fn_t’ more.
5060
5061 * rcsfnms.c (finopen, fin2open):
5062 Use ‘open_rcsfile_fn_t’ in arglist.
5063
5064 2010-04-18 Thien-Thi Nguyen <[email protected]>
5065
5066 merge: On bad or incorrect # of options, don't display usage info.
5067
5068 * merge.c (usage): Delete var.
5069 (badoption, main): Don't display usage info.
5070
5071 2010-04-18 Thien-Thi Nguyen <[email protected]>
5072
5073 [int] Move temporary filename funcs to b-feph.[hc].
5074
5075 * b-feph.h: New file.
5076 * b-feph.c: New file.
5077 * Makefile.am (libparts_a_SOURCES): Add b-feph.h, b-feph.c.
5078 * base.h (maker): New enum.
5079 (sff): New struct.
5080 (behavior): Add members ‘sff’, ‘ephemstuff’.
5081 (makedirtemp, dirtempunlink, keepdirtemp, set_temporary_file_name)
5082 (maketemp, tempunlink): Delete func decls.
5083 (SFFI_LOCKDIR, SFFI_NEWDIR): New #define:s.
5084
5085 Here,
5086 "I" means "#include "b-feph.h"";
5087 "B" means "Call ‘makedirtemp’ with boolean value".
5088 * ci.c: I.
5089 (xpandfile): B.
5090 * co.c: I.
5091 (main): B.
5092 * merge.c: I.
5093 * merger.c: I.
5094 * rcs.c: I.
5095 * rcsclean.c: I.
5096 * rcsdiff.c: I.
5097 * rcsedit.c: #include "b-feph.h".
5098 (maker): Delete enum.
5099 (sff): Delete struct.
5100 (SFFI_LOCKDIR, SFFI_NEWDIR, SFF_COUNT): Delete #define:s.
5101 (editstuff): Convert member ‘sff’ type from array to pointer.
5102 (lockname, newRCSname): Use ‘BE (sff)’.
5103 (rcswriteopen): Likewise. Also, modify ‘BE (sff)’ directly.
5104 (keepdirtemp, makedirtemp, dirtempunlink): Delete funcs.
5105 * rcsfnms.c: #include "b-feph.h".
5106 (TEMPNAMES): Delete #define.
5107 (fnstuff): Delete members ‘tpnames’, ‘tmpdir’.
5108 [!HAVE_MKSTEMP] (homegrown_mkstemp): Delete func.
5109 [!HAVE_MKSTEMP] (mkstemp): Delete #define.
5110 (set_temporary_file_name, maketemp, tempunlink): Delete funcs.
5111 * rcsgen.c [BAD_CREAT0] (putadmin): B.
5112 * rcsmerge.c: I.
5113 * rcsutil.c: I.
5114 (gnurcs_init): Init ‘BE (ephemstuff)’.
5115
5116 2010-04-18 Thien-Thi Nguyen <[email protected]>
5117
5118 [int] When constructing the lockfile name, save directly to ‘SHARED’.
5119
5120 * rcsedit.c (rcswriteopen): Use ‘SHARED’
5121 for lockfile name mangling instead of ‘struct buf’.
5122
5123 2010-04-18 Thien-Thi Nguyen <[email protected]>
5124
5125 [int C] Make ‘bufrealloc’ static.
5126
5127 * rcsfnms.c (bufrealloc): Make static.
5128 * base.h (bufrealloc): Delete func decl.
5129
5130 2010-04-18 Thien-Thi Nguyen <[email protected]>
5131
5132 [int] When reading from stdin, save directly to ‘SHARED’.
5133
5134 * rcsgen.c (getsstdin): Don't take ‘struct buf *’; save
5135 directly to ‘SHARED’; rewrite sole-dot-on-line detection/handling.
5136 (putdesc): Update call to ‘getsstdin’.
5137 * ci.c (getlogmsg): Update call to ‘getlogmsg’.
5138 * base.h (getsstdin): Update func decl.
5139
5140 2010-04-17 Thien-Thi Nguyen <[email protected]>
5141
5142 [int] Add abstraction: accumulate_range
5143
5144 * b-divvy.h (accumulate_range): New func decl.
5145 * b-divvy.c (accumulate_range): New func.
5146 * rcsedit.c (naturalize): Use ‘accumulate_range’.
5147 * rcslex.c (getphrases): Likewise.
5148
5149 2010-04-17 Thien-Thi Nguyen <[email protected]>
5150
5151 [int C] Use ‘fseeko’ more.
5152
5153 * rcslex.c (Orewind): Use ‘fseeko’ instead of ‘fseek’.
5154
5155 2010-04-17 Thien-Thi Nguyen <[email protected]>
5156
5157 [int C] Use ‘ftello’ more.
5158
5159 * ci.c (main): Use ‘ftello’ instead of ‘ftell’.
5160
5161 2010-04-17 Thien-Thi Nguyen <[email protected]>
5162
5163 [int] Overhaul read-only file handling.
5164
5165 * b-fro.h: New file.
5166 * b-fro.c: New file.
5167 * Makefile.am (libparts_a_SOURCES): Add b-fro.h, b-fro.c.
5168 * b-fb.h (Ieof): Delete func decl.
5169 * b-fb.c (Ieof): Delete func.
5170 * base.h [HAVE_SYS_MMAN_H]: Don't #include <sys/mman.h>.
5171 (large_memory, maps_memory): Delete #define:s.
5172 (RILE): Delete typedef.
5173 (declarecache, setupcache, cache, uncache, Igeteof, cachegeteof, Iget)
5174 (cacheget, cacheunget, Ifileno, Ioffset_type, Irewind, Itell, GETC):
5175 Delete macros.
5176 (Igetmore): Delete func decl.
5177 (open_rcsfile_fn_t): Update typedef.
5178 (parse_state): Delete member ‘rilebuf’.
5179 (flow): Update type of member ‘from’.
5180 (rcswriteopen, rcsfcmp, rcsreadopen, putdftext, getoldkeys):
5181 Update return value and parameter types and in func decls.
5182 (Ifclose, Izclose, hey_trundling, I_open, Iopen, testIeof)
5183 (Irewind): Delete func decls.
5184 (fexpandsym, getdiffcmd): Update parameter types and in func decls.
5185 (fastcopy): Delete func decl.
5186 (TEECHAR): New macro.
5187
5188 Here,
5189 "I" means "#include "b-fro.h"";
5190 "U" means "Use ‘struct fro *’ instead of ‘RILE *’; remove caching;
5191 use interface provided by b-fro.h and/or ‘TEECHAR’";
5192 "M" means "Merge ‘large_memory’/‘!large_memory’";
5193 "R" means "Rework to operate based on ‘STDIO_P (...)’ at runtime".
5194 * b-kwxout.c: I.
5195 (keyreplace, expandline): U.
5196 * b-kwxout.h (expctx): Update type of member ‘from’.
5197 * ci.c: I.
5198 (workptr): Update type of static var.
5199 (cleanup, fixwork, xpandfile): U.
5200 (main): U; rework input snapshot, flushing, rewind
5201 based on ‘STDIO_P (workptr)’ at runtime.
5202 * co.c: I.
5203 (cleanup): U; rework ‘FLOW (res)’ closing
5204 based on ‘STDIO_P (FLOW (from))’ at runtime.
5205 (main): U.
5206 * merger.c: I.
5207 (merge): U.
5208 * rcs.c: I.
5209 (cleanup, main): U.
5210 * rcsclean.c: I.
5211 (workptr): Update type of static var.
5212 (cleanup, main): U.
5213 * rcsdiff.c: I.
5214 (workptr): Update type of static var.
5215 (cleanup, main): U.
5216 * rcsedit.c: I; remove all cpp cond directives for ‘large_memory’,
5217 ‘maps_memory’, ‘MMAP_SIGNAL’; disambiguate bifurcated funcs by
5218 renaming with _fast and _slow suffixes; generally, R.
5219 (editstuff): Include unconditionally members
5220 ‘fedit’, ‘line’, ‘gap’, ‘gapsize’, ‘lim’.
5221 (movelines): Define macro unconditionally.
5222 (snapshotedit_fast): U; rename from ‘snapshotedit’ in ‘large_memory’.
5223 (snapshotedit_slow): U; rename from ‘snapshotedit’ in ‘!large_memory’.
5224 (finishedit_fast): U; rename from ‘finishedit’ in ‘large_memory’.
5225 (finishedit_slow): U; rename from ‘finishedit’ in ‘!large_memory’.
5226 (fopen_update_truncate): U; M; R.
5227 (swapeditfiles): U; on ‘EDIT (fedit)’ jam, specify ‘RM_STDIO’.
5228 (copylines): U; M; R.
5229 (enterstring): U; R.
5230 (UNUSED_IF_LARGE_MEMORY): Delete macro.
5231 (editstuff): U; R.
5232 (rcswriteopen, donerewrite): U.
5233 * rcsfcmp.c: I.
5234 (discardkeyval): U.
5235 (rcsfcmp): U, R.
5236 [FCMPTEST] (main): U.
5237 * rcsfnms.c: I.
5238 (rcsreadopen, finopen, fin2open): U.
5239 [PAIRTEST] (main): U.
5240 * rcsgen.c: I.
5241 (putdtext, putdftext): U.
5242 * rcskeep.c: I.
5243 (get0val, keepid, getval, keepdate, keeprev, getoldkeys): U.
5244 * rcslex.c: I.
5245 (Lexinit, nextlex, eoflex, getphrases)
5246 (readstring, printstring, savestring): U.
5247 (Iclose, mmap_deallocate, read_deallocate, nothing_to_deallocate)
5248 (hey_trundling, fd2_RILE, fd2RILE, Igetmore, I_open, Iopen, Ifclose)
5249 (Izclose, testIeof, Irewind): Delete macros/funcs.
5250 [LEXDB] (main): U.
5251 * rcsmerge.c: I.
5252 (main): U.
5253 * rcsrev.c (fexpandsym): U.
5254 [REVTEST] (main): U.
5255 * rcssyn.c: I.
5256 (getdiffcmd): U.
5257 [SYNTEST] (main): U.
5258 * rcsutil.c (fastcopy): Delete func.
5259 * rlog.c: I.
5260 (cleanup, getscript): U.
5261
5262 2010-04-17 Thien-Thi Nguyen <[email protected]>
5263
5264 [build] Move some basic file operation funcs to b-fb.[hc].
5265
5266 * b-fb.h: New file.
5267 * b-fb.c: New file.
5268 * Makefile.am (libparts_a_SOURCES): Add b-fb.h, b-fb.c.
5269 * b-kwxout.c: #include "b-fb.h".
5270 * base.h (behavior): Move member ‘Oerrloop’ to here ...
5271 (parse_state): ... from here.
5272 (Ieof, Ierror, testIerror, Oerror, testOerror)
5273 (fopenSafer, fdSafer): Delete func decls.
5274 * ci.c: #include "b-fb.h".
5275 (xpandfile): Use ‘fopen_safer’.
5276 * co.c: #include "b-fb.h".
5277 (main): Use ‘fopen_safer’.
5278 * merger.c: #include "b-fb.h".
5279 (merge): Use ‘fopen_safer’.
5280 * rcs.c: #include "b-fb.h".
5281 (sendmail, buildeltatext): Use ‘fopen_safer’.
5282 * rcsedit.c: #include "unistd-safer.h", "b-fb.h".
5283 [large_memory] (fopen_update_truncate): Use ‘fopen_safer’.
5284 (rcswriteopen): Use ‘fd_safer’.
5285 * rcsgen.c: #include "b-fb.h".
5286 (putdesc, putadmin): Use ‘fopen_safer’.
5287 * rcslex.c: #include "unistd-safer.h", "b-fb.h".
5288 (Lexinit): Update ‘Oerrloop’ init.
5289 (Iopen): Use ‘fd_safer’.
5290 (Ieof, Ierror, testIerror, Oerror, testOerror): Delete funcs.
5291 (Ifclose): Update ‘Oerrloop’ ref.
5292 * rcssyn.c: #include "b-fb.h".
5293 * rcsutil.c: #include "b-fb.h".
5294 (dupSafer, fdSafer, fopenSafer): Delete funcs.
5295 * rlog.c: #include "b-fb.h".
5296
5297 2010-04-16 Thien-Thi Nguyen <[email protected]>
5298
5299 [int] Always stash ignored phrases, regardless of ‘large_memory’.
5300
5301 * rcslex.c (warnignore): Always make space.
5302 (getphrases): Always accumulate into ‘LEX (ignore)’.
5303 (Lexinit): Clear ‘LEX (ignore)’ if set.
5304
5305 2010-04-14 Thien-Thi Nguyen <[email protected]>
5306
5307 [int] Fix bug: Specify proper expansion context in `finishedit'.
5308
5309 A translation error was introduced 2010-03-27 by:
5310 "Move "expansion + output" to b-kwxout.[hc]; use exp context".
5311 * rcsedit.c (finishedit): Specify `delimstuffed' to
5312 be false in the expansion context passed to `expandline'.
5313
5314 2010-04-13 Thien-Thi Nguyen <[email protected]>
5315
5316 [build] Use gnulib module `readlink'.
5317
5318 * rcsedit.c (naturalize) [!HAVE_READLINK]: Delete this portion.
5319
5320 2010-04-13 Thien-Thi Nguyen <[email protected]>
5321
5322 [int] Use a space to stash ignored phrases.
5323
5324 * base.h (parse_state): Delete member `ignoredp'; add `ignore'.
5325 * rcslex.c (warnignore): Initialize space
5326 for ignored phrases, if not `large_memory'.
5327 (Lexinit): If there is space for ignored phrases, clear it.
5328 (getphrases): Save ignored phrases in `LEX (ignore)'; rename
5329 local macro from `savech_' to `SAVECH'; make it a statement;
5330 update its callers finish with a semicolon; #undef it at eofunc.
5331
5332 2010-04-13 Thien-Thi Nguyen <[email protected]>
5333
5334 [int C] Use a space for symlink-resolution scratch.
5335
5336 * rcsedit.c (naturalize): Rename from `resolve_symlink';
5337 define unconditionally; bifurcate internals for the case of
5338 !HAVE_READLINK; take out-arg `symbolicp'; set to indicate
5339 symlink resolution occurred; use space for local allocation.
5340 (rcswriteopen): Use `naturalize';
5341 do failed-symlink-check unconditionally.
5342
5343 2010-04-12 Thien-Thi Nguyen <[email protected]>
5344
5345 [int] Use a space for `expandline' scratch.
5346
5347 * base.h (manifestation): Remove member `keyval'; add `lparts'.
5348 * b-kwxout.c: #include "b-divvy.h".
5349 (LPARTS): New #define.
5350 (ENSURE_LPARTS): New macro.
5351 (expandline): Create and use space `LPARTS' for scanning scratch.
5352
5353 2010-04-12 Thien-Thi Nguyen <[email protected]>
5354
5355 [int] Use spaces for "ci -k" support.
5356
5357 * rcskeep.c (sorry): New static func.
5358 (badly_terminated): Use `sorry'; also, take `savep', if set,
5359 finish and then brush off the partially constructed string.
5360 (get0val): Save directly to `SINGLE'; return `char *';
5361 don't take `struct buf *'; instead take `bool savep'.
5362 (keepid): Return `char *'; don't take `struct buf *'.
5363 (getval): Return `char *'; don't take `struct buf *';
5364 instead take `bool savep'.
5365 (keepdate): Use `SHARED' temporarily for date and time strings.
5366 (checknum): Incorporate into unique caller.
5367 (keeprev): Return `char *'; set `PREV (rev)' directly.
5368 (getoldkeys): Don't keep local `struct buf' objects;
5369 use strings saved in `SINGLE' and `PREV (foo)' directly.
5370
5371 2010-04-12 Thien-Thi Nguyen <[email protected]>
5372
5373 [int] Re{name,base} abstraction from `ftalloc' to `FALLOC'.
5374
5375 * b-divvy.h (FALLOC): New macro.
5376 * rcs.c: #include "b-divvy.h".
5377 (doaccess): Use `FALLOC'.
5378 * rcsedit.c (addlock, addsymbol): Likewise.
5379 * rcslex.c (lookup): Likewise.
5380 * rcsrev.c: #include "b-divvy.h".
5381 (store1): Use `FALLOC'.
5382 * rcssyn.c: #include "b-divvy.h".
5383 (getadmin, getdelta): Use `FALLOC'.
5384 * rcsutil.c (ftestalloc): Delete func.
5385 * rlog.c: #include "b-divvy.h".
5386 (getnumericrev): Use `FALLOC'.
5387 * base.h (ftestalloc): Delete func decl.
5388 (ftalloc): Delete macro.
5389
5390 2010-04-12 Thien-Thi Nguyen <[email protected]>
5391
5392 [int C] Use `obstack_free' more.
5393
5394 * b-divvy.c (brush_off) [DEBUG]: Display info to stderr.
5395 (forget, close_space): Use `obstack_free' directly.
5396
5397 2010-04-12 Thien-Thi Nguyen <[email protected]>
5398
5399 [int] Add abstractions: zlloc, ZLLOC
5400
5401 * b-divvy.h (zlloc): New func decl.
5402 (ZLLOC): New macro.
5403 * b-divvy.c (zlloc): New func.
5404 * maketime.c: Don't #include <string.h>.
5405 (init_maketimestuff): Use `ZLLOC'.
5406 * rcsedit.c (ensure_editstuff): Likewise.
5407 * rcsfnms.c (init_fnstuff): Likewise.
5408 * rcslex.c (fd2_RILE): Likewise.
5409 * rcsutil.c (gnurcs_init): Likewise.
5410
5411 2010-04-12 Thien-Thi Nguyen <[email protected]>
5412
5413 [int] Move filename state into `struct fnstuff'; use spaces more.
5414
5415 * base.h (behavior): Add member `fnstuff'.
5416 (init_fnstuff): New func decl.
5417 * rcsfnms.c (fnstuff): New struct.
5418 (FN): New macro.
5419 (init_fnstuff): New func.
5420 (RCSbuf, RCSb, RCSerrno, tpnames): Delete vars.
5421 (set_temporary_file_name): Use `FN (tmpdir)'.
5422 (maketemp, tempunlink): Use `FN (tmpnames)'.
5423 (finopen, fin2open): Use `FN (RCSbuf)', `FN (RCSb)', `FN (RCSerrno)'.
5424 (pairnames): Use `SINGLE' space for `MANI (filename)' alloc;
5425 use `FN (RCSbuf)', `FN (RCSerrno)'.
5426 (getfullRCSname): Use `SHARED' for `getcwd' alloc;
5427 use `SINGLE' for expanded filename alloc.
5428 (getcwd): Remove spurious `static' for local var; add `const'.
5429 * rcsutil.c (gnurcs_init): call `init_fnstuff'.
5430
5431 2010-04-12 Thien-Thi Nguyen <[email protected]>
5432
5433 [int] Move remaining maketime state into `struct maketimestuff'.
5434
5435 * base.h (behavior): Add member `maketimestuff'.
5436 * maketime.c: #include <string.h>, "b-divvy.h".
5437 (maketimestuff): New struct.
5438 (MAKETIMESTUFF): New macro.
5439 (init_maketimestuff): New func.
5440 (time2tm): Use `MAKETIMESTUFF (TZ)'.
5441 (tm2time): Use `MAKETIMESTUFF (t_cache)', `MAKETIMESTUFF (tm_cache)'.
5442 * maketime.h (init_maketimestuff): New func decl.
5443 * rcsutil.c: #include "maketime.h".
5444 (gnurcs_init): Call `init_maketimestuff'.
5445
5446 2010-04-11 Thien-Thi Nguyen <[email protected]>
5447
5448 [int] Move SIGCHLD-handler manual-reset state to `struct behavior'.
5449
5450 * base.h (behavior): Add member `fixed_SIGCHLD'.
5451 * rcsutil.c (runv): Use `BE (fixed_SIGCHLD)' to
5452 record that the SIGCHLD handler was set to SIG_DFL.
5453
5454 2010-04-11 Thien-Thi Nguyen <[email protected]>
5455
5456 [int] Move cached "now time" into `struct behavior'.
5457
5458 * base.h (behavior): Add member `now'.
5459 * rcsutil.c (now): Cache now time in `BE (now)'.
5460
5461 2010-04-11 Thien-Thi Nguyen <[email protected]>
5462
5463 [int] Use `SHARED' space for `system' command construction.
5464
5465 * rcsutil.c [!HAVE_WORKING_FORK] (bufargcat): Delete func.
5466 [!HAVE_WORKING_FORK] (accumulate_arg_quoted): New static func.
5467 (runv) [!HAVE_WORKING_FORK]: Use `SHARED'
5468 space to construct string for `system' call.
5469
5470 2010-04-11 Thien-Thi Nguyen <[email protected]>
5471
5472 [int] Move cached username into `struct behavior'.
5473
5474 * base.h (behavior): Add member `username'.
5475 * rcsutil.c (getusername): Cache username in `BE (username)'.
5476
5477 2010-04-11 Thien-Thi Nguyen <[email protected]>
5478
5479 [int] Move remaining edit state into `struct editstuff'.
5480
5481 * base.h (behavior): Add member `editstuff'.
5482 * rcsedit.c: #include "b-divvy.h".
5483 (editstuff): New struct.
5484 (fedit, editname, editline, linecorr, sff)
5485 (line, gap, gapsize, linelim): Delete vars.
5486 (EDIT): New macro.
5487 (lockname, newRCSname): Update.
5488 (ensure_editstuff): New static func.
5489 (insertline, deletelines, snapshotedit, finishedit, swapeditfiles)
5490 (copylines, editstring, keepdirtemp, dirtempunlink):
5491 Use `EDIT (foo)' instead of deletes vars.
5492 (copystring, enterstring, rcswriteopen, makedirtemp): Likewise.
5493 Also, call `ensure_editstuff'.
5494
5495 2010-04-10 Thien-Thi Nguyen <[email protected]>
5496
5497 [int] Add abstractions: SHARED, SINGLE
5498
5499 * b-divvy.h (SHARED, SINGLE): New #define:s.
5500 * b-isr.c: Do s/shared/SHARED/g; do s/single/SINGLE/g.
5501 * co.c: Likewise.
5502 * merger.c: Likewise.
5503 * rcsclean.c: Likewise.
5504 * rcsdiff.c: Likewise.
5505 * rcsfnms.c: Likewise.
5506 * rcsgen.c: Likewise.
5507 * rcskeep.c: Likewise.
5508 * rcslex.c: Likewise.
5509 * rcsutil.c: Likewise.
5510
5511 2010-04-10 Thien-Thi Nguyen <[email protected]>
5512
5513 [int] Make `putdesc' reentrant.
5514
5515 * rcsgen.c: #include "b-divvy.h".
5516 (putdesc): Take pointer to `struct cbuf', save description text
5517 there; route input from stdin and file to go into `shared' space.
5518 * base.h (putdesc): Update func decl.
5519 * ci.c (main): Update call to `putdesc'.
5520 * rcs.c (main): Likewise.
5521
5522 2010-04-10 Thien-Thi Nguyen <[email protected]>
5523
5524 [int] Move remaining parse state into `struct parse_state'.
5525
5526 * base.h (parse_state.next): Add member `hsh'.
5527 (parse_state): Add members `rilebuf', `Oerrloop', `ignoredp', `hshtab'.
5528 * rcslex.c (nexthsh, hshtab, ignored_phrases): Delete vars.
5529 (warnignore): Use `LEX (ignoredp)'.
5530 (lookup): Use `LEX (hshtab)', `NEXT (hsh)'.
5531 (Lexinit): Allocate `LEX (hshtab)' if necessary;
5532 clear `LEX (Oerrloop)'; use `LEX (ignoredp)'.
5533 (getnum): Use `NEXT (hsh)'.
5534 (fd2_RILE): Init `LEX (rilebuf)' if necessary.
5535 (Oerrloop): Delete var.
5536 (Oerror, oflush): Use `LEX (Oerrloop)'.
5537 [LEXDB] (main): Use `LEX (hshtab)'.
5538
5539 2010-04-10 Thien-Thi Nguyen <[email protected]>
5540
5541 [int] Use a space for the token buffer.
5542
5543 * base.h (manifestation): Add member `tokbuf'.
5544 * rcslex.c (tokbuf): Delete var.
5545 (lookup): Take `char *', not `struct buf *';
5546 save to `single' directly.
5547 (Lexinit): Init `LEX (tokbuf)' as a space.
5548 (nextlex): Accumulate bytes into `LEX (tokbuf)'; avoid realloc.
5549
5550 2010-04-10 Thien-Thi Nguyen <[email protected]>
5551
5552 [int] Do ISR allocation early on, for all programs.
5553
5554 * rcsutil.c (gnurcs_init): Init `ISR_SCRATCH' here.
5555 * rcsedit.c (rcswriteopen): Don't init `ISR_SCRATCH'.
5556 * rcslex.c (fd2_RILE): Likewise.
5557 * b-isr.h (ISR_ENABLE): Delete unused macro.
5558
5559 2010-04-10 Thien-Thi Nguyen <[email protected]>
5560
5561 [int C] Get rid of `bufremember'.
5562
5563 * base.h (bufremember): Delete func decl.
5564 * rcsfnms.c (bufremember): Delete func.
5565 * rcslex.c (getphrases) [!large_memory]: Use `intern' directly.
5566
5567 2010-04-10 Thien-Thi Nguyen <[email protected]>
5568
5569 [int C] Add to `single' space directly when keeping a date.
5570
5571 * rcskeep.c: #include "b-divvy.h".
5572 (keepdate): Don't call `fbuf_save'; add directly to `single'.
5573
5574 2010-04-10 Thien-Thi Nguyen <[email protected]>
5575
5576 [int] Fix bug: Apply tmpdir `SLASH'-suffixing to all candidates.
5577
5578 * rcsfnms.c (set_temporary_file_name): Use `getenv' directly;
5579 do `SLASH'-suffixing for any `tmpdir' found, not just `P_tmpdir'.
5580
5581 2010-04-10 Thien-Thi Nguyen <[email protected]>
5582
5583 [int] Add abstraction: accumulate_nonzero_bytes
5584
5585 * b-divvy.h (accumulate_nonzero_bytes): New func decl.
5586 * b-divvy.c (accumulate_nonzero_bytes): New func.
5587 * merger.c (normalize_arg): Use `accumulate_nonzero_bytes'.
5588 * rcsdiff.c (main): Likewise.
5589 * rcsfnms.c (set_temporary_file_name): Likewise.
5590
5591 2010-04-10 Thien-Thi Nguyen <[email protected]>
5592
5593 [int C] Use `shared' space for temporary filename templating.
5594
5595 * rcsfnms.c (set_temporary_file_name): Save `tmpdir' in `shared'.
5596 Also use `shared' temporarily for template string.
5597
5598 2010-04-09 Thien-Thi Nguyen <[email protected]>
5599
5600 [int C] Use `shared' space for filename arg normalization.
5601
5602 * rcsdiff.c (main): Use `shared' space for prepending "./".
5603
5604 2010-04-09 Thien-Thi Nguyen <[email protected]>
5605
5606 [int C] Get rid of `trealloc'.
5607
5608 * rcsedit.c (insertline): Use `testrealloc' directly.
5609 * rcsfnms.c (bufrealloc): Likewise.
5610 * base.h (trealloc): Delete macro.
5611
5612 2010-04-09 Thien-Thi Nguyen <[email protected]>
5613
5614 [int C] Get rid of `tnalloc'.
5615
5616 * rcsedit.c (insertline): Use `testalloc' directly.
5617 * rcsfnms.c (bufalloc): Likewise.
5618 * rcslex.c (fd2_RILE): Likewise.
5619 * base.h (talloc): Likewise.
5620 (tnalloc): Delete macro.
5621
5622 2010-04-09 Thien-Thi Nguyen <[email protected]>
5623
5624 [int] Use `shared' space for rcsdiff `diffvstr' construction.
5625
5626 * rcsdiff.c: #include "b-divvy.h".
5627 (main): Use `shared' space for `diffvstr' construction.
5628
5629 2010-04-09 Thien-Thi Nguyen <[email protected]>
5630
5631 [int] Use `single' space for log message handling.
5632
5633 * rcslex.c (savestring): Don't write to `target';
5634 use `single' space instead.
5635 * rcsgen.c (cleanlogmsg): Take first arg as `const'.
5636 (scandeltatext): Update calls to `savestring', `cleanlogmsg'.
5637 * rcs.c (scanlogtext): Likewise.
5638 * rcssyn.c (Commleader): Delete now-unused `struct buf'.
5639 (getadmin): Update calls to `savestring'.
5640 * rlog.c (readdeltalog): Likewise.
5641 * base.h (cleanlogmsg, savestring): Update func decls.
5642 (manifestation): Delete now-unused member `log'.
5643
5644 2010-04-09 Thien-Thi Nguyen <[email protected]>
5645
5646 [int] Use `pointer_array' more.
5647
5648 * rcsutil.c (getRCSINIT): Use `pointer_array'.
5649
5650 2010-04-09 Thien-Thi Nguyen <[email protected]>
5651
5652 [int] Use spaces for `co -j' parsing.
5653
5654 * co.c: #include "b-divvy.h".
5655 (joinlength): Delete var.
5656 (link, jstuff): New structs.
5657 (jstuff): New static `struct jstuff'.
5658 (jpush): New func.
5659 (addjoin): Use `jpush'.
5660 (preparejoin): Likewise. Rework `joinlist' init.
5661
5662 2010-04-09 Thien-Thi Nguyen <[email protected]>
5663
5664 [int] Use `shared' space for `merge' arg normalization.
5665
5666 * merger.c: #include "b-divvy.h".
5667 (normalize_arg): Rewrite.
5668 (merge): Update call to `normalize_arg'; don't `tfree'.
5669
5670 2010-04-09 Thien-Thi Nguyen <[email protected]>
5671
5672 [int] Use `single' space for file(pair)-related allocation.
5673
5674 * base.h (fremember): Delete func decl.
5675 (ftalloc): Update.
5676 (ftnalloc): Delete macro.
5677 (ffree1): Delete func decl.
5678 (free_NEXT_str): New func decl.
5679 * rcsdiff.c (main): Use `ftestalloc'.
5680 * rcslex.c: #include "b-divvy.h".
5681 (getkeyopt): Use `free_NEXT_str'.
5682 (getphrases): Likewise. Also, use `intern0'.
5683 * rcssyn.c: Use `free_NEXT_str'.
5684 * rcsutil.c (alloclist): Delete struct.
5685 (alloced): Delete pointer to `struct alloclist'.
5686 (fremember): Delete func.
5687 (ftestalloc): Use `alloc'.
5688 (ffree): Use `forget'.
5689 (ffree1): Delete func.
5690 (free_NEXT_str): New func.
5691 (str_save): Use `intern0', into `shared'.
5692 (fbuf_save): Use `intern0', into `single'.
5693
5694 2010-04-09 Thien-Thi Nguyen <[email protected]>
5695
5696 [int] Allocate `tempname' in `shared'.
5697
5698 * rcsfnms.c: #include "b-divvy.h".
5699 (maketemp): Rewrite.
5700
5701 2010-04-09 Thien-Thi Nguyen <[email protected]>
5702
5703 [int] Allocate ISR scratch in `shared'.
5704
5705 * b-isr.c: #include "b-divvy.h".
5706 (isr_init): Allocate "isr scratch" in `shared'.
5707 * b-isr.h (ISR_DISABLE): Don't `tfree' isr scratch.
5708
5709 2010-04-09 Thien-Thi Nguyen <[email protected]>
5710
5711 [int] Use spaces for rcsclean `get_directory'.
5712
5713 * rscclean.c: #include "b-divvy.h".
5714 (get_directory): Rewrite.
5715
5716 2010-04-09 Thien-Thi Nguyen <[email protected]>
5717
5718 [int] Consolidate top-level structs; dynamically allocate in `main'.
5719
5720 * base.h (behavior): Delete var decl.
5721 (manifestation, parse_state, repository, flow): Likewise.
5722 (top): New struct.
5723 (top): New pointer to `struct top'.
5724 (BE, MANI, LEX, REPO, FLOW): Update.
5725 (gnurcs_init): New func decl.
5726 * b-complain.c (vcomplain): Don't flush if `top' is NULL.
5727 * rcsutil.c: #include "b-divvy.h".
5728 (gnurcs_init): New func.
5729 (behavior): Delete `struct behavior'.
5730 (flow): Delete `struct flow'.
5731 * rcsfnms.c (manifestation): Delete `struct manifestation'.
5732 (repository): Delete `struct repository'.
5733 * rcslex.c (parse_state): Delete `struct parse_state'.
5734 * ci.c (top): New pointer to `struct top'.
5735 (main): Don't call `unbuffer_standard_error';
5736 instead call `gnurcs_init'.
5737 * co.c: Likewise.
5738 * ident.c: Likewise.
5739 * merge.c: Likewise.
5740 * rcs.c: Likewise.
5741 * rcsclean.c: Likewise.
5742 * rcsdiff.c: Likewise.
5743 * rcsmerge.c: Likewise.
5744 * rlog.c: Likewise.
5745
5746 2010-04-09 Thien-Thi Nguyen <[email protected]>
5747
5748 [int] Add abstraction: make_space (et al)
5749
5750 * b-divvy.h: New file.
5751 * b-divvy.c: New file.
5752 * Makefile.am (libparts_a_SOURCES): Add b-divvy.h, b-divvy.c.
5753
5754 2010-04-07 Thien-Thi Nguyen <[email protected]>
5755
5756 [test] Test rlog with two (working) filenames.
5757
5758 * alive.test: Add a simple test with two filenames.
5759
5760 2010-04-07 Thien-Thi Nguyen <[email protected]>
5761
5762 [int C] Use `fbuf_save' more.
5763
5764 * rcsfnms.c (bufremember): Use `fbuf_save'.
5765
5766 2010-04-07 Thien-Thi Nguyen <[email protected]>
5767
5768 [test] Test multi-line log messages.
5769
5770 * alive.test: Make some log messages multi-line.
5771
5772 2010-04-06 Thien-Thi Nguyen <[email protected]>
5773
5774 [build] Ignore `getwd', `getabsname'.
5775
5776 * base.h (needs_getabsname): Delete #define.
5777 * rcsfnms.c (getfullRCSname): Remove #if needs_getabsname block.
5778 Remove preproc cond block that falls back to `getwd'.
5779 [!HAVE_GETCWD] (getcwd): Simplify surrounding preproc cond.
5780
5781 2010-04-06 Thien-Thi Nguyen <[email protected]>
5782
5783 [build] Use gnulib module `same-inode'.
5784
5785 Here, all .c files have implicit "#include "same-inode.h"".
5786 * base.h (same_file): Delete macro.
5787 * ci.c (main): Use `SAME_INODE'.
5788 * co.c (main): Likewise.
5789 * rcsclean.c (main): Likewise.
5790 * rcsedit.c (chnamemod): Likewise.
5791 * rcsfnms.c (getfullRCSname): Likewise.
5792
5793 2010-04-06 Thien-Thi Nguyen <[email protected]>
5794
5795 [int] Overhaul interrupt handling.
5796
5797 Here, "I" means "#include "b-isr.h"";
5798 and "U" means "Use `IGNOREINTS', `RESTOREINTS'";
5799 and "E (foo)" means "Use `ISR_ENABLE', `ISR_DO (foo)'".
5800 * b-isr.h: New file.
5801 * b-isr.c: New file.
5802 * Makefile.am (libparts_a_SOURCES): Add b-isr.h, b-isr.c.
5803 * base.h (behavior): Add to this struct member `isr'.
5804 (catchints, ignoreints, restoreints): Delete func decls.
5805 [HAVE_MMAP && large_memory && has_NFS && MMAP_SIGNAL]
5806 (catchmmapints, readAccessFilenameBuffer): Likewise.
5807 [HAVE_MMAP && large_memory && !(has_NFS && MMAP_SIGNAL)]
5808 (catchmmapints): Delete macro.
5809 * ci.c: I.
5810 (main): U.
5811 * co.c: I.
5812 (main): U.
5813 * rcsedit.c: I.
5814 (rcswriteopen): U; E (CATCHINTS).
5815 (dorewrite, donerewrite): U.
5816 * rcsfnms.c (maketemp): Remove spurious isr-enabling.
5817 * rcslex.c: I.
5818 (fd2_RILE): E (CATCHMMAPINTS); use `access_page'.
5819 * rcsutil.c: I; don't #include <signal.h>, "sig2str.h".
5820 (heldsignal, holdlevel, unsupported_SA_SIGINFO, bufsiginfo)
5821 (heldsiginfo, accessName, regsigs, mmapsigs): Delete vars.
5822 (readAccessFilenameBuffer, complain_signal, catchsig, catchsigaction)
5823 (ignoreints, restoreints, check_sig, setup_catchsig, catchints)
5824 (catchmmapints): Delete funcs.
5825
5826 2010-04-05 Thien-Thi Nguyen <[email protected]>
5827
5828 [build] Fix bug: Don't #undef MMAP_SIGNAL.
5829
5830 Regression introduced 2010-03-02,
5831 "Move mmap-related checks to configure.in".
5832 * base.h [!MMAP_SIGNAL]: Don't #undef MMAP_SIGNAL.
5833
5834 2010-04-04 Thien-Thi Nguyen <[email protected]>
5835
5836 [int] Move some file/function-static state into `struct behavior'.
5837
5838 * base.h (behavior): Add to this struct members
5839 `unbufferedp', `version_set', `stick_with_euid', `ruid',
5840 `euid', `ruid_cached', `euid_cached', `already_setuid'.
5841 * b-complain.c (unbufferedp): Delete var.
5842 (unbuffer_standard_error, vcomplain): Use `BE (unbufferedp)'.
5843 * rcsutil.c (setRCSversion): Delete func-static
5844 var `oldversion'; use `BE (version_set)' instead.
5845 (cacheid): Rewrite macro.
5846 (ruid, euid): Update call to `cacheid'.
5847 (set_uid_to): Delete func-static var `looping';
5848 use `BE (already_setuid)', instead.
5849 (stick_with_euid): Delete var.
5850 (nosetid, seteid, setrid): Use `BE (stick_with_euid)'.
5851
5852 2010-04-04 Thien-Thi Nguyen <[email protected]>
5853
5854 Fix bug: Notice if the system does not support SA_SIGINFO correctly.
5855
5856 * rcsutil.c (catchsigaction): Arrange to ignore siginfo_t info
5857 if `unsupported_SA_SIGINFO', not if `!unsupported_SA_SIGINFO'.
5858
5859 2010-04-04 Thien-Thi Nguyen <[email protected]>
5860
5861 [int] Add abstraction: PROGRAM
5862
5863 * base.h (PROGRAM): New macro.
5864 * b-complain.c: Throughout, use `PROGRAM (foo)' instead of program.foo.
5865 * base.h: Likewise.
5866 * gnu-h-v.c: Likewise.
5867 * gnu-h-v.h: Likewise.
5868 * ident.c: Likewise.
5869 * merger.c: Likewise.
5870 * rcslex.c: Likewise.
5871 * rcsutil.c: Likewise.
5872
5873 2010-04-04 Thien-Thi Nguyen <[email protected]>
5874
5875 [int C] Use `strlen' less.
5876
5877 * gnu-h-v.c (EXACTLY): Look for NUL at end
5878 of string instead of comparing its length.
5879
5880 2010-04-04 Thien-Thi Nguyen <[email protected]>
5881
5882 [int C] Remove unused #define.
5883
5884 * base.h (RCSTMPPREFIX): Delete #define.
5885
5886 2010-04-04 Thien-Thi Nguyen <[email protected]>
5887
5888 [int] Add abstraction: hey_trundling
5889
5890 * base.h (hey_trundling): New func decl.
5891 (advise_access): Delete func decl / macro (two cppcond branches).
5892 (if_advise_access): Delete macro.
5893 * rcslex.c (hey_trundling): New func.
5894 (advise_access): Delete func and surrounding #if ... #endif.
5895 (fd2RILE): Use `hey_trundling'.
5896 * co.c (main): Likewise.
5897 * rcs.c (main): Likewise.
5898 * rcsclean.c (main): Likewise.
5899 * rcsedit.c (enterstring): Likewise.
5900
5901 2010-04-04 Thien-Thi Nguyen <[email protected]>
5902
5903 [build] Use gnulib module `sys_wait'.
5904
5905 * base.h: Don't #include <sys/wait.h>.
5906 (WEXITSTATUS, WIFEXITED, WTERMSIG, WIFSIGNALED):
5907 Delete conditional #define:s.
5908 * rcsfnms.c: #include <sys/wait.h>.
5909 * rcsutil.c: Likewise.
5910
5911 2010-04-04 Thien-Thi Nguyen <[email protected]>
5912
5913 [int C] Remove some now-obsolete conditional #define:s.
5914
5915 * base.h (P_tmpdir, S_IRUSR, S_IWUSR, S_IRGRP, S_IWGRP)
5916 (S_IROTH, S_IWOTH, S_ISREG): Delete conditional #define:s.
5917
5918 2010-04-04 Thien-Thi Nguyen <[email protected]>
5919
5920 [build] Use gnulib module `fcntl'.
5921
5922 Here, "U" means "Convert #ifdef F_DUPFD
5923 foo #else bar #endif block to expression foo".
5924 * base.h (open_can_creat): Delete #define.
5925 [!O_CREAT] (O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_TRUNC): Likewise.
5926 [!O_EXCL] (O_EXCL): Likewise.
5927 * rcsedit.c (create): Define macro unconditionally.
5928 * rcsfnms.c: #include <fcntl.h> unconditionally.
5929 [!HAVE_GETCWD && !HAVE_GETWD] (getcwd): U.
5930 * rcslex.c: #include <fcntl.h> unconditionally.
5931 * rcsutil.c: Likewise.
5932 (dupSafer): U.
5933 [F_DUPFD] (dup): Delete macro redefinition.
5934 (movefd): U.
5935 (fdreopen): Take `open_can_creat' to be 1.
5936 (runv): U.
5937
5938 2010-04-03 Thien-Thi Nguyen <[email protected]>
5939
5940 [build] Ignore <siginfo.h>.
5941
5942 * base.h: Don't #include <siginfo.h>.
5943
5944 2010-04-03 Thien-Thi Nguyen <[email protected]>
5945
5946 [build] Ignore unused <ucontext.h>.
5947
5948 * base.h: Don't #include <ucontext.h>.
5949
5950 2010-04-03 Thien-Thi Nguyen <[email protected]>
5951
5952 [int C] Move #include <pwd.h> to .c files.
5953
5954 * base.h: Don't #include <pwd.h>.
5955 * rcsutil.c [HAVE_PWD_H]: #include <pwd.h>.
5956
5957 2010-04-03 Thien-Thi Nguyen <[email protected]>
5958
5959 [int C] Move #include <fcntl.h> to .c files.
5960
5961 * base.h: Don't #include <fcntl.h>.
5962 * rcsedit.c [HAVE_FCNTL_H]: #include <fcntl.h>.
5963 * rcslex.c: Likewise.
5964 * rcsutil.c: Likewise.
5965
5966 2010-04-03 Thien-Thi Nguyen <[email protected]>
5967
5968 [build] Use gnulib module `dirent'.
5969
5970 * rcsclean.c: #include <dirent.h> unconditionally.
5971 (get_directory): Define func unconditionally.
5972 (main): Call `get_directory' unconditionally.
5973
5974 2010-04-03 Thien-Thi Nguyen <[email protected]>
5975
5976 [int] Presume <signal> provides SIG{HUP,INT,PIPE,QUIT,TERM,XCPU,XFSZ}.
5977
5978 * rcsutil.c (regsigs): Remove #ifdef foo and #endif, for
5979 foo: SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, SIGXCPU, SIGXFZ.
5980
5981 2010-04-03 Thien-Thi Nguyen <[email protected]>
5982
5983 [int] Presume <signal.h> provides `SA_SIGINFO'.
5984
5985 * rcsutil.c: Throughout, take `defined SA_SIGINFO' to be 1.
5986
5987 2010-04-03 Thien-Thi Nguyen <[email protected]>
5988
5989 [int] Presume `siginfo_t' has member `si_errno'.
5990
5991 * rcsutil.c (catchsigaction): Take `defined HAVE_SI_ERRNO' to be 1.
5992
5993 2010-04-03 Thien-Thi Nguyen <[email protected]>
5994
5995 [int] Use gnulib module `sig2str'; push `psignal' cppcond down.
5996
5997 * rcsutil.c: #include "sig2str.h".
5998 (complain_signal): New static func.
5999 [!HAVE_PSIGNAL] (psignal): Delete #define.
6000 [!HAVE_PSIGNAL] (my_psignal): Delete func.
6001 (catchsigaction, runv): Use `complain_signal'.
6002
6003 2010-04-03 Thien-Thi Nguyen <[email protected]>
6004
6005 [build] Also link against lib/libgnu.a.
6006
6007 * Makefile.am (LDADD): Add options to link against ../lib/libgnu.a.
6008
6009 2010-04-03 Thien-Thi Nguyen <[email protected]>
6010
6011 [build] Use gnulib module `double-slash-root'.
6012
6013 * rcsfnms.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): If not #define:d,
6014 #define to 0.
6015 (dir_useful_len): Use `DOUBLE_SLASH_IS_DISTINCT_ROOT'.
6016
6017 2010-04-03 Thien-Thi Nguyen <[email protected]>
6018
6019 [build] Move the config header (and template) from src/ to lib/.
6020
6021 * base.h: Don't #include "auto-sussed.h";
6022 instead, #include "config.h".
6023 * Makefile.am (AM_CPPFLAGS): Delete var.
6024
6025 2010-04-03 Thien-Thi Nguyen <[email protected]>
6026
6027 [build] Remove now-obsolete support for !HAVE_SIGNAL_H.
6028
6029 * base.h [!HAVE_SIGNAL_H] (catchints, ignoreints, restoreints):
6030 Delete macros, with surrounding cpp #if block.
6031 * rcsutil.c: Remove #if defined HAVE_SIGNAL_H, matching #endif.
6032
6033 2010-04-03 Thien-Thi Nguyen <[email protected]>
6034
6035 [int C] Move #include <signal.h> to .c files.
6036
6037 * base.h: Don't #include <signal.h>; remove surrounding
6038 cpp cond #ifdef HAVE_SIGNAL_H ... #endif block.
6039 * rcsutil.c: #include <signal.h>.
6040
6041 2010-04-03 Thien-Thi Nguyen <[email protected]>
6042
6043 [int C] Use GCC attributes individually.
6044
6045 * b-complain.h (generic_fatal, fatl_syntax): Use attribute
6046 declarations `printf_string' and `exiting' directly.
6047 * base.h (printf_string_exiting): Delete macro.
6048
6049 2010-04-03 Thien-Thi Nguyen <[email protected]>
6050
6051 [int C] Move #include <utime.h> to .c files.
6052
6053 * base.h: Don't #include <utime.h>; remove surrounding
6054 cpp cond #ifdef HAVE_UTIME_H ... #endif block.
6055 * rcsedit.c [HAVE_UTIME_H]: #include <utime.h>.
6056
6057 2010-04-03 Thien-Thi Nguyen <[email protected]>
6058
6059 [int C] Move #include <time.h> to .c files.
6060
6061 * base.h: Don't #include <time.h>.
6062 * maketime.c: #include <time.h>.
6063 * partime.c: Likewise.
6064 * rcstime.c: Likewise.
6065 * rcsutil.c: Likewise.
6066
6067 2010-04-03 Thien-Thi Nguyen <[email protected]>
6068
6069 [int] Presume <unistd.h> provides STD{IN,OUT,ERR}_FILENO.
6070
6071 * base.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete
6072 #define:s, and surrouding #ifndef STDIN_FILENO cpp cond block.
6073
6074 2010-04-03 Thien-Thi Nguyen <[email protected]>
6075
6076 [int] Presume <unistd.h> provides `getlogin' decl.
6077
6078 * base.h (getlogin): Delete func decl.
6079
6080 2010-04-03 Thien-Thi Nguyen <[email protected]>
6081
6082 [int C] Move #include <unistd.h> to .c files.
6083
6084 * base.h: Don't #include <unistd.h>; remove surrounding
6085 cpp cond #ifdef HAVE_UNISTD_H ... #endif block.
6086 * ci.c: #include <unistd.h>.
6087 * rcsedit.c: Likewise.
6088 * rcsfnms.c: Likewise.
6089 * rcsgen.c: Likewise.
6090 * rcslex.c: Likewise.
6091 * rcsutil.c: Likewise.
6092
6093 2010-04-03 Thien-Thi Nguyen <[email protected]>
6094
6095 [int C] Move #include <string.h> to .c files.
6096
6097 * base.h: Don't #include <string.h>.
6098 * b-anchor.c: #include <string.h>.
6099 * b-kwxout.c: Likewise.
6100 * ci.c: Likewise.
6101 * co.c: Likewise.
6102 * merger.c: Likewise.
6103 * rcs.c: Likewise.
6104 * rcsclean.c: Likewise.
6105 * rcsdiff.c: Likewise.
6106 * rcsedit.c: Likewise.
6107 * rcsfcmp.c: Likewise.
6108 * rcsfnms.c: Likewise.
6109 * rcsgen.c: Likewise.
6110 * rcskeep.c: Likewise.
6111 * rcslex.c: Likewise.
6112 * rcsmerge.c: Likewise.
6113 * rcsrev.c: Likewise.
6114 * rcssyn.c: Likewise.
6115 * rcstime.c: Likewise.
6116 * rcsutil.c: Likewise.
6117 * rlog.c: Likewise.
6118
6119 2010-04-03 Thien-Thi Nguyen <[email protected]>
6120
6121 [int] Presume <errno.h> provides `ELOOP', `ENOTSUP'.
6122
6123 * rcsedit.c (resolve_symlink) [!ELOOP]: Remove cpp cond block.
6124 * rcsutil.c (setup_catchsig): Assume `defined ENOTSUP' == 1.
6125
6126 2010-04-03 Thien-Thi Nguyen <[email protected]>
6127
6128 [int C] Move #include <stdarg.h> to .c files.
6129
6130 * base.h: Don't #include <stdarg.h>.
6131 * b-complain.c: #include <stdarg.h>.
6132 * rcsgen.c: Likewise.
6133 * rcslex.c: Likewise.
6134 * rcsutil.c: Likewise.
6135
6136 2010-04-03 Thien-Thi Nguyen <[email protected]>
6137
6138 [int C] Incorporate `fvfprintf' into unique caller.
6139
6140 * rcslex.c (fvfprintf): Incorporate into `aprintf'.
6141 * base.h (fvfprintf): Delete func decl.
6142
6143 2010-04-03 Thien-Thi Nguyen <[email protected]>
6144
6145 [int C] Move #include <stdlib.h> to .c files.
6146
6147 * base.h: Don't #include <stdlib.h>.
6148 * ci.c: #include <stdlib.h>.
6149 * co.c: Likewise.
6150 * ident.c: Likewise.
6151 * merger.c: Likewise.
6152 * rcs.c: Likewise.
6153 * rcsclean.c: Likewise.
6154 * rcsfnms.c: Likewise.
6155 * rcslex.c: Likewise.
6156 * rcstime.c: Likewise.
6157 * rcsutil.c: Likewise.
6158 * rlog.c: Likewise.
6159
6160 2010-04-03 Thien-Thi Nguyen <[email protected]>
6161
6162 [int C] Move #include <errno.h> to .c files.
6163
6164 * base.h: Don't #include <errno.h>.
6165 * b-complain.c: #include <errno.h>.
6166 * ci.c: Likewise.
6167 * co.c: Likewise.
6168 * ident.c: Likewise.
6169 * rcsclean.c: Likewise.
6170 * rcsdiff.c: Likewise.
6171 * rcsedit.c: Likewise.
6172 * rcsfnms.c: Likewise.
6173 * rcsgen.c: Likewise.
6174 * rcskeep.c: Likewise.
6175 * rcslex.c: Likewise.
6176 * rcsutil.c: Likewise.
6177
6178 2010-04-02 Thien-Thi Nguyen <[email protected]>
6179
6180 [build] Move GCC attribute configuration into base.h.
6181
6182 * base.h (exiting, printf_string): Define these
6183 macros based solely on GCC version -- 2.7 or higher.
6184 (printf_string_exiting): Define macro unconditionally.
6185
6186 2010-04-01 Thien-Thi Nguyen <[email protected]>
6187
6188 [build] Use gnulib module `stdbool'.
6189
6190 * Makefile.am (AM_CPPFLAGS): New var.
6191
6192 2010-04-01 Thien-Thi Nguyen <[email protected]>
6193
6194 [build] Use gnulib to define `RCS_UNUSED'.
6195
6196 * base.h (RCS_UNUSED): Update.
6197
6198 2010-03-31 Thien-Thi Nguyen <[email protected]>
6199
6200 [int C] Avoid some function-static vars.
6201
6202 * rcsedit.c (setmtime): Make local var `amtime' non-static.
6203 * rcsfnms.c [!HAVE_MKSTEMP] (homegrown_mkstemp): Likewise for `xrep'.
6204 * rcsrev.c [REVTEST] (main): Likewise for `numricrevno'.
6205 Also, do `bufautobegin' and `bufautoend' for it.
6206 * rcslex.c (fd2_RILE): Delete static
6207 local var `nothing'; use `FROM (to)', instead.
6208
6209 2010-03-31 Thien-Thi Nguyen <[email protected]>
6210
6211 [int] Move "temporary buf for key value" to `struct manifestation'.
6212
6213 * base.h (manifestation): Add member `keyval'.
6214 * b-kwxout.c (expandline): Use `MANI (keyval)'.
6215
6216 2010-03-31 Thien-Thi Nguyen <[email protected]>
6217
6218 [int] Move "`BE (interactive)' valid" into `struct behavior'.
6219
6220 * base.h (behavior): Add member `interactive_valid'.
6221 * rcsgen.c (ttystdin): Use `BE (interactive_valid)'.
6222
6223 2010-03-30 Thien-Thi Nguyen <[email protected]>
6224
6225 [int C] Use `bool' more.
6226
6227 * rcsutil.c (cacheid): Use boolean for valid bit.
6228
6229 2010-03-30 Thien-Thi Nguyen <[email protected]>
6230
6231 [int] Move "-z handling state" into `struct behavior'.
6232
6233 * base.h (behavior): Add member `zone_offset'.
6234 * rcstime.c (zone_offset, use_zone_offset): Delete vars.
6235 (str2date, zone_set, date2str): Use
6236 `BE (zone_offset.valid)', `BE (zone_offset.seconds)'.
6237
6238 2010-03-30 Thien-Thi Nguyen <[email protected]>
6239
6240 [int] Use boolean to keep track of lexical error occurance.
6241
6242 Here, "U" means "Throughout, use `LEX (erroneousp)'".
6243 * base.h (struct parse_state): Replace `nerr' with `erroneousp'.
6244 * b-complain.c (ERRONEOUS_X): New macro.
6245 (syserror, generic_error, generic_fatal): Use `ERRONEOUS_X'.
6246 * ci.c: U.
6247 * co.c: U.
6248 * merge.c: U.
6249 * rcs.c: U.
6250 * rcsclean.c: U.
6251 * rcsdiff.c: U.
6252 * rcsedit.c: U.
6253 * rcskeep.c: U.
6254 * rcslex.c: U.
6255 * rcsmerge.c: U.
6256 * rlog.c: U.
6257
6258 2010-03-30 Thien-Thi Nguyen <[email protected]>
6259
6260 [int] Abstract writes to stderr.
6261
6262 Here, "I" means "#include "b-complain.h",
6263 "U" means "Throughout, use the funcs and macros from there".
6264 * b-complain.c (vcomplain, complain): New funcs.
6265 (COMPLAIN_PLUS_NEWLINE): New macro.
6266 (diagnose): New func.
6267 (whoami): New static func.
6268 (syserror, generic_warn, generic_error): New funcs.
6269 (die): New static func.
6270 (generic_fatal, fatal_syntax, fatal_sys): New funcs.
6271 * b-complain.h (vcomplain, complain, diagnose, syserror)
6272 (generic_warn, generic_error, generic_fatal, fatal_syntax)
6273 (fatal_sys): New func decls.
6274 (syserror_errno, PWARN, MWARN, RWARN)
6275 (PERR, MERR, RERR, PFATAL, RFATAL): New macros.
6276 * b-kwxout.c: I; U.
6277 * ci.c: U.
6278 * co.c: U.
6279 * ident.c: U.
6280 * maketime.c: U.
6281 * merge.c: U.
6282 * merger.c: I; U.
6283 * rcs.c: U.
6284 * rcsclean.c: U.
6285 * rcsdiff.c: U.
6286 * rcsedit.c: I; U.
6287 * rcsfcmp.c: I; U.
6288 * rcsfnms.c: I; U.
6289 * rcsgen.c: I; U.
6290 * rcskeep.c: I; U.
6291 * rcslex.c: I; U.
6292 (fatcleanup, startsay, fatsay, errsay, warnsay, eerror)
6293 (enerror, efaterror, enfaterror, error, rcserror)
6294 (workerror, fatserror, faterror, rcsfaterror, warn)
6295 (rcswarn, workwarn, diagnose): Delete funcs.
6296 * rcsmerge.c: U.
6297 * rcsrev.c: I; U.
6298 * rcssyn.c: I; U.
6299 * rcstime.c: I; U.
6300 * rcsutil.c: I; U.
6301 [HAVE_WORKING_FORK] (write_stderr): Delete func.
6302 (runv): If the child proc exited due to a signal,
6303 mention that it "got a fatal signal" before dying.
6304 * rlog.c: U.
6305 * base.h (efaterror, enfaterror, fatcleanup, faterror)
6306 (fatserror, rcsfaterror, diagnose, eerror, enerror, error)
6307 (rcserror, rcswarn, warn, workerror, workwarn): Delete func decls.
6308
6309 2010-03-28 Thien-Thi Nguyen <[email protected]>
6310
6311 [int] Unbuffer stderr at program start; don't fflush it, later.
6312
6313 Here, "I" means "#include "b-complain.h"";
6314 and "U" means "(main) Use `unbuffer_standard_error'".
6315 * b-complain.h: New file.
6316 * b-complain.c: New file.
6317 * Makefile.am (libparts_a_SOURCES): Add b-complain.h, b-complain.c.
6318 * base.h (eflush): Delete func decl.
6319 * rcsgen.c (yesorno, getsstdin): Don't call `eflush'.
6320 * rcslex.c (eflush): Delete func.
6321 (enerror, error, rcserror, workerror, warn, rcswarn, workwarn)
6322 (diagnose): Don't call `eflush'.
6323 * rcsutil.c (runv): Likewise.
6324 * ci.c: I; U.
6325 * co.c: I; U.
6326 * ident.c: I; U.
6327 * merge.c: I; U.
6328 * rcs.c: I; U.
6329 (sendmail): Don't call `eflush'.
6330 * rcsclean.c: I; U.
6331 * rcsdiff.c: I; U.
6332 * rcsmerge.c: I; U.
6333 * rlog.c: I; U.
6334
6335 2010-03-27 Thien-Thi Nguyen <[email protected]>
6336
6337 [int C] Drop workaround for SVR4 stdio bug.
6338
6339 * rcsgen.c (putadmin): Don't bother using `putc'
6340 for first output operation; just use `printf' normally.
6341 * rlog.c (main): Likewise.
6342
6343 2010-03-27 Thien-Thi Nguyen <[email protected]>
6344
6345 [int C] Tighten `homegrown_mkstemp'.
6346
6347 * rcsfnms.c: #include <sys/time.h>.
6348 [!HAVE_MKSTEMP] (homegrown_mkstemp): Make static;
6349 use curly braces for string constant instead of parens.
6350
6351 2010-03-27 Thien-Thi Nguyen <[email protected]>
6352
6353 [int] Move "expansion + output" to b-kwxout.[hc]; use exp context.
6354
6355 * b-kwxout.h: New file.
6356 * b-kwxout.c: New file.
6357 * Makefile.am (libparts_a_SOURCES): Add b-kwxout.h, b-kwxout.c.
6358 * base.h (expandline): Delete func decl.
6359 * ci.c: #include "b-kwxout.h".
6360 (xpandfile): Update call to `expandline'.
6361 * rcsedit.c: #include "b-kwxout.h".
6362 (finisheditline, finishedit, copylines)
6363 (xpandstring, editstring): Update call to `expandline'.
6364
6365 2010-03-27 Thien-Thi Nguyen <[email protected]>
6366
6367 [int] Use #define for `ciklog' et al.
6368
6369 * base.h (ciklog): Convert from var decl to #define.
6370 (ciklog_len): New #define.
6371 (ciklogsize): Delete #define.
6372 * ci.c (getlogmsg): Use `ciklog_len'.
6373 * rcsedit.c (ciklog): Delete var.
6374 (keyreplace): Use `ciklog_len'.
6375 * rcsfcmp.c (rcsfcmp): Use `ciklog_len'.
6376
6377 2010-03-26 Thien-Thi Nguyen <[email protected]>
6378
6379 [int] Use #define for RCS file keywords.
6380
6381 * base.h (KS): New macro.
6382 (Kaccess): Convert from var decl to #define; use `KS'.
6383 (Kauthor, Kbranch, Kcomment, Kdate, Kdesc, Kexpand, Khead, Klocks)
6384 (Klog, Knext, Kstate, Kstrict, Ksymbols, Ktext): Likewise.
6385 * rcssyn.c (Kaccess): Delete var.
6386 (Kauthor, Kbranch, Kcomment, Kdate, Kdesc, Kexpand, Khead, Klocks)
6387 (Klog, Knext, Kstate, Kstrict, Ksymbols, Ktext): Likewise.
6388 (Kbranches): Rename from `K_branches'; convert from var to #define.
6389 [COMPAT2] (Ksuffix): Convert from var to #define.
6390 (getdelta): Use `Kbranches'.
6391
6392 2010-03-26 Thien-Thi Nguyen <[email protected]>
6393
6394 [int] Move some constant data from rcsutil.c to b-anchor.c.
6395
6396 * b-anchor.c (prog_diff, prog_diff3, diff_flags, equal_line):
6397 New, moved without change from...
6398 * rcsutil.c (prog_diff, prog_diff3, diff_flags, equal_line):
6399 ...here.
6400
6401 2010-03-26 Thien-Thi Nguyen <[email protected]>
6402
6403 [int] Overhaul "keyword-substitution mode name" recognition.
6404
6405 * b-anchor.c (kwsub_pool): New static `uint8_t' array.
6406 (recognize_kwsub, kwsub_string): New funcs.
6407 * base.h (recognize_kwsub): New func decl.
6408 (str2expmode): New macro.
6409 (kwsub_string): New func decl.
6410 (str2expmode): Delete func decl.
6411 * rcsgen.c (putadmin): Use `kwsub_string'.
6412 * rcssyn.c (expand_names): Delete data structure.
6413 (strn2expmode, str2expmode): Delete funcs.
6414 (getadmin): Use `recognize_kwsub'.
6415 * rlog.c (main): Use `kwsub_string'.
6416
6417 2010-03-25 Thien-Thi Nguyen <[email protected]>
6418
6419 [int] Overhaul (working file) keyword recognition.
6420
6421 * b-anchor.c: New file.
6422 * Makefile.am (libparts_a_SOURCES):
6423 Add b-anchor.c; remove rcskeys.c.
6424 * base.h: #include <stdint.h>.
6425 (AUTHOR, DATE, HEADER, IDH, LOCKER, LOG, NAME, RCSFILE, REVISION)
6426 (SOURCE, STATE): Delete #define:s.
6427 (tinysym, pool_found): New structs.
6428 (markers): From this enum, remove `Nomatch'.
6429 (recognize_keyword): New func decl.
6430 (Keyword): Delete var decl.
6431 (trymatch): Delete func decl.
6432 * rcsedit.c (keyreplace): Take `struct pool_found *'
6433 for first arg instead of `enum markers'; use `marker->i'.
6434 (expandline): Use `recognize_keyword'.
6435 * rcsfcmp.c (rcsfcmp): Use `recognize_keyword', `match1.i'.
6436 * rcskeep.c (getoldkeys): Use `recognize_keyword'.
6437 * rcskeys.c: Delete file.
6438
6439 2010-03-25 Thien-Thi Nguyen <[email protected]>
6440
6441 [int] Rename rcsbase.h to base.h.
6442
6443 * base.h: Rename from rcsbase.h.
6444 * Makefile.am (libparts_a_SOURCES): Update.
6445 * ci.c: Update #include.
6446 * co.c: Likewise.
6447 * gnu-h-v.c: Likewise.
6448 * ident.c: Likewise.
6449 * maketime.c: Likewise.
6450 * merge.c: Likewise.
6451 * merger.c: Likewise.
6452 * partime.c: Likewise.
6453 * rcs.c: Likewise.
6454 * rcsclean.c: Likewise.
6455 * rcsdiff.c: Likewise.
6456 * rcsedit.c: Likewise.
6457 * rcsfcmp.c: Likewise.
6458 * rcsfnms.c: Likewise.
6459 * rcsgen.c: Likewise.
6460 * rcskeep.c: Likewise.
6461 * rcskeys.c: Likewise.
6462 * rcslex.c: Likewise.
6463 * rcsmap.c: Likewise.
6464 * rcsmerge.c: Likewise.
6465 * rcsrev.c: Likewise.
6466 * rcssyn.c: Likewise.
6467 * rcstime.c: Likewise.
6468 * rcsutil.c: Likewise.
6469 * rlog.c: Likewise.
6470
6471 2010-03-25 Thien-Thi Nguyen <[email protected]>
6472
6473 [int C] Remove spurious casts to void for function call.
6474
6475 * rcs.c (main): Remove cast to void for `umask' call.
6476 * rcskeep.c (getoldkeys): Remove cast to void for `getval' call.
6477
6478 2010-03-25 Thien-Thi Nguyen <[email protected]>
6479
6480 [int C] Dose data structures with `const'.
6481
6482 * maketime.c (month_yday): Add `const' to var definition.
6483 * partime.c (month_names): Likewise.
6484 (weekday_names, zone_names, patterns): Likewise.
6485 * rcsfnms.c (rcsdir, comtable): Likewise.
6486 * rcssyn.c [COMPAT2] (Ksuffix): Likewise.
6487 (K_branches): Likewise.
6488 * rcsutil.c (regsigs, mmapsigs): Likewise.
6489
6490 2010-03-25 Thien-Thi Nguyen <[email protected]>
6491
6492 [int] Consolidate i/o streams into `struct flow'.
6493
6494 Here, "U" means "Throughout, use `FLOW (foo)'
6495 instead of the old singular variable names".
6496 * rcsbase.h (flow): New struct.
6497 (flow): New `struct flow' decl.
6498 (FLOW): New macro.
6499 (fcopy, resultname, finptr, frewrite, foutptr): Delete var decls.
6500 * ci.c: U.
6501 * co.c: U.
6502 * rcs.c: U.
6503 * rcsclean.c: U.
6504 * rcsdiff.c: U.
6505 * rcsedit.c: U.
6506 (fcopy, resultname): Delete var.
6507 * rcsfnms.c: U.
6508 * rcsgen.c: U.
6509 * rcslex.c: U.
6510 (finptr, frewrite, foutptr): Delete vars.
6511 * rcsrev.c: U.
6512 * rcssyn.c: U.
6513 * rcsutil.c (flow): New `struct flow'.
6514 * rlog.c: U.
6515
6516 2010-03-25 Thien-Thi Nguyen <[email protected]>
6517
6518 [int] Move "possible endings for RCS file" into `struct behavior'.
6519
6520 Here, "U" means "Throughout, use `BE (pe)'".
6521 * rcsbase.h (suffixes): Delete var decl.
6522 (behavior): Add `pe' to this struct.
6523 * ci.c: U.
6524 * co.c: U.
6525 * rcs.c: U.
6526 * rcsclean.c: U.
6527 * rcsdiff.c: U.
6528 * rcsfnms.c: U.
6529 (suffixes): Delete var.
6530 * rcsmerge.c: U.
6531 * rlog.c: U.
6532
6533 2010-03-25 Thien-Thi Nguyen <[email protected]>
6534
6535 [int] Move "temporary log buffer" into `struct manifestation'.
6536
6537 Here, "U" means "Throughout, use `MANI (log)'".
6538 * rcsbase.h (curlogbuf): Delete var decl.
6539 (manifestation): Add `log' to this struct.
6540 * rcs.c: U.
6541 * rcsgen.c: U.
6542 (curlogbuf): Delete var.
6543
6544 2010-03-25 Thien-Thi Nguyen <[email protected]>
6545
6546 [int C] Remove spurious `extern'.
6547
6548 * rcsbase.h (isSLASH): Remove `extern' on func decl.
6549
6550 2010-03-25 Thien-Thi Nguyen <[email protected]>
6551
6552 [int] Move "keyword subtitution mode" into `struct behavior'.
6553
6554 Here, "U" means "Throughout, use `BE (kws)'".
6555 * rcsbase.h (Expand): Delete var decl.
6556 (behavior): Add `kws' to this struct.
6557 * ci.c: U.
6558 * co.c: U.
6559 * rcs.c: U.
6560 * rcsclean.c: U.
6561 * rcsdiff.c: U.
6562 * rcsedit.c: U.
6563 * rcsfcmp.c: U.
6564 * rcsfnms.c: U.
6565 * rcsgen.c: U.
6566 * rcsmerge.c: U.
6567 * rcssyn.c: U.
6568 (Expand): Delete var.
6569 * rlog.c: U.
6570
6571 2010-03-25 Thien-Thi Nguyen <[email protected]>
6572
6573 [int] Move "effective RCS version" into `struct behavior'.
6574
6575 Here, "U" means "Throughout, use `BE (version)'".
6576 * rcsbase.h (RCSversion): Delete var decl.
6577 (behavior): Add `version' to this struct.
6578 * rcs.c: U.
6579 * rcsedit.c: U.
6580 * rcsfcmp.c: U.
6581 * rcsgen.c: U.
6582 * rcstime.c: U.
6583 * rcsutil.c: U.
6584 (RCSversion): Delete var.
6585 * rlog.c: U.
6586
6587 2010-03-25 Thien-Thi Nguyen <[email protected]>
6588
6589 [int C] Use `MANI (filename)' and `MANI (standard_output)'.
6590
6591 Here, "U" means "Throughout, use `MANI (filename)'
6592 and `MANI (standard_output)' instead of singular variable names.
6593 * rcsbase.h (workname, workstdout): Delete #define:s.
6594 * ci.c: U.
6595 * co.c: U.
6596 * rcs.c: U.
6597 * rcsclean.c: U.
6598 * rcsdiff.c: U.
6599 * rcsedit.c: U.
6600 * rcsfnms.c: U.
6601 * rcskeep.c: U.
6602 * rcslex.c: U.
6603 * rcsmerge.c: U.
6604 * rlog.c: U.
6605
6606 2010-03-25 Thien-Thi Nguyen <[email protected]>
6607
6608 [int] Consolidate RCS file state into `struct repository'.
6609
6610 Here, "U" means "Throughout, use `REPO (foo)' and
6611 `ADMIN (foo)' instead of the old singular variable names".
6612 * rcsbase.h (repository): New struct.
6613 (repository): New `struct repository' decl.
6614 (REPO, ADMIN): New macros.
6615 (RCSname, fdlock, RCSstat, Dbranch, AccessList, Symbols, Comment)
6616 (Ignored, Locks, Head, TotalDeltas): Delete var decls.
6617 * ci.c: U.
6618 * co.c: U.
6619 * rcs.c: U.
6620 * rcsclean.c: U.
6621 * rcsdiff.c: U.
6622 * rcsedit.c: U.
6623 * rcsfcmp.c: U.
6624 * rcsfnms.c: U.
6625 (RCSname, fdlock, RCSstat): Delete vars.
6626 (repository): New `struct repository'.
6627 * rcsgen.c: U.
6628 * rcslex.c: U.
6629 * rcsmerge.c: U.
6630 * rcsrev.c: U.
6631 * rcssyn.c: U.
6632 (Comment, Ignored, AccessList, Symbols, Locks, Head)
6633 (Dbranch, TotalDeltas): Delete vars.
6634 * rlog.c: U.
6635
6636 2010-03-24 Thien-Thi Nguyen <[email protected]>
6637
6638 [int C] Define `ruid', `myself' unconditionally.
6639
6640 * rcsutil.c (ruid): Remove surrounding preproc conditional.
6641 (ruid) [!HAVE_GETUID]: Abort; programmer error.
6642 (myself): New func.
6643 * rcsbase.h (ruid): Declare func unconditionally.
6644 (myself): New func decl.
6645
6646 2010-03-24 Thien-Thi Nguyen <[email protected]>
6647
6648 [int C] Push `#if has_NFS || BAD_UNLINK' for `un_link' out of header.
6649
6650 * rcsedit.c (un_link): Restructure to use #define:s in code.
6651 * rcsbase.h (un_link): Remove surrounding preproc conditional,
6652 including sibling `#if ! (has_NFS || BAD_UNLINK)' block.
6653
6654 2010-03-24 Thien-Thi Nguyen <[email protected]>
6655
6656 [int C] Push `#if large_memory' for `editstring' out of header.
6657
6658 * rcsedit.c (UNUSED_IF_LARGE_MEMORY): New #define.
6659 (editstring): Use `UNUSED_IF_LARGE_MEMORY' for param `delta';
6660 remove preproc conditional surrounding func header.
6661 * rcsbase.h (editstring): Remove surrounding preproc
6662 conditional, including sibling block `#if large_memory'.
6663
6664 2010-03-24 Thien-Thi Nguyen <[email protected]>
6665
6666 [int C] Add braces to disambiguate `else' clause.
6667
6668 * rcsedit.c [!large_memory] (copylines):
6669 Add braces to disambiguate `else' clause.
6670
6671 2010-03-24 Thien-Thi Nguyen <[email protected]>
6672
6673 [int C] Define type for `pairnames' "rcsopen" func.
6674
6675 * rcsbase.h (open_rcsfile_fn_t): New typedef.
6676 (pairnames): Use `open_rcsfile_fn_t' in func decl.
6677 * rcsfnms.c (pairnames): Use `open_rcsfile_fn_t' in arglist.
6678
6679 2010-03-24 Thien-Thi Nguyen <[email protected]>
6680
6681 [int C] Dose data structures with `const'.
6682
6683 * rcsbase.h (ciklog, Keyword, ctab, expand_names, Kaccess)
6684 (Kauthor, Kbranch, Kcomment, Kdate, Kdesc, Kexpand, Khead)
6685 (Klocks, Klog, Knext, Kstate, Kstrict, Ksymbols, Ktext)
6686 (equal_line): Add `const' to var decls.
6687 * rcsedit.c (ciklog): Add `const' to var definition.
6688 * rcskeys.c (Keyword): Likewise.
6689 * rcsmap.c (ctab): Likewise.
6690 * rcssyn.c (Kaccess, Kauthor, Kbranch, Kcomment, Kdate)
6691 (Kdesc, Kexpand, Khead, Klocks, Klog, Knext, Kstate)
6692 (Kstrict, Ksymbols, Ktext, expand_names): Likewise.
6693 * rcsutil.c (equal_line): Likewise.
6694
6695 2010-03-24 Thien-Thi Nguyen <[email protected]>
6696
6697 [int] Consolidate parse state into `struct parse_state'.
6698
6699 Here, "U" means "Throughout, use `LEX (foo)' and `NEXT (foo)'
6700 instead of the old singular variable names".
6701 * rcsbase.h (parse_state): New struct.
6702 (parse_state): New `struct parse_state' decl.
6703 (LEX, NEXT): New macros.
6704 (NextString, nexttok, nerror, nextc, rcsline): Delete var decls.
6705 * rcslex.c: U.
6706 (parse_state): New `struct parse_state'.
6707 (nexttok, nextc, rcsline, nerror, NextString): Delete vars.
6708 * ci.c: U.
6709 * co.c: U.
6710 * merge.c: U.
6711 * rcs.c: U.
6712 * rcsclean.c: U.
6713 * rcsdiff.c: U.
6714 * rcsedit.c: U.
6715 * rcsgen.c: U.
6716 * rcskeep.c: U.
6717 * rcsmerge.c: U.
6718 * rcssyn.c: U.
6719 * rlog.c: U.
6720
6721 2010-03-23 Thien-Thi Nguyen <[email protected]>
6722
6723 [int] Consolidate workfile state into `struct manifestation'.
6724
6725 * rcsbase.h (manifestation): New struct.
6726 (manifestation): New `struct manifestation' decl.
6727 (MANI, workname, workstdout, PREV): New macros.
6728 (workname, workstdout, prevkeys, prevauthor, prevdate)
6729 (prevname, prevrev, prevstate): Delete var decls.
6730 * rcsfnms.c (workname, workstdout): Delete vars.
6731 (manifestation): New `struct manifestation'.
6732 (pairnames): Use `PREV (valid)'.
6733 * rcskeep.c (prevkeys): Delete var.
6734 (prevauthor, prevdate, prevname, prevrev, prevstate): Likewise.
6735 (keepdate): Set `PREV (date)' directly.
6736 (keeprev): Set `PREV (rev)' directly.
6737 (getoldkeys): Set `PREV (foo)' state; use `PREV (foo)' directly;
6738 add "consider empty string as not given" processing.
6739 (main): Use `PREV (rev)', `PREV (date)',
6740 `PREV (author)', `PREV (name)', `PREV (state)'.
6741 * rcsrev.c (fexpandsym): Use `PREV (rev)'.
6742 * ci.c (main): Use `PREV (rev)', `PREV (date)',
6743 `PREV (author)', `PREV (state)', `PREV (name)'.
6744
6745 2010-03-23 Thien-Thi Nguyen <[email protected]>
6746
6747 [int] Add abstraction: fbuf_save
6748
6749 * rcsbase.h (fbuf_save): New func decl.
6750 (fstr_save): Delete func decl.
6751 * rcsutil.c (fbuf_save): New func.
6752 (fstr_save): Delete func.
6753 * rcs.c (doassoc): Use `fbuf_save'.
6754 * rlog.c (getnumericrev): Likewise.
6755 * rcslex.c (lookup): Don't take `char *'; instead, take
6756 `struct buf *'; use `fbuf_save'; update callers.
6757 (nextlex): Use `fbuf_save'.
6758 (getphrases): Use `strncpy' for saving `key'.
6759
6760 2010-03-22 Thien-Thi Nguyen <[email protected]>
6761
6762 [build] Fix cpp conditional regression introduced 2010-02-17.
6763
6764 This happened as part of the change:
6765 "[build] Move `getcwd', `getwd' check to configure.in".
6766 * rcsfnms.c [!GETCWD && !GETWD] (getcwd): Change surrounding
6767 cpp conditional to this from nonsensical "!GETWD && !GETWD".
6768
6769 2010-03-22 Thien-Thi Nguyen <[email protected]>
6770
6771 [build] Make "make test-prep" more robust.
6772
6773 * Makefile.am (test-prep): Explicitly
6774 delete $(bin_PROGRAMS) to force relink.
6775
6776 2010-03-20 Thien-Thi Nguyen <[email protected]>
6777
6778 [int] Consolidate some global booleans into `struct behavior'.
6779
6780 Here, "BE" means "Use BE (foo) instead of separate var names".
6781 * rcsbase.h (behavior): New struct.
6782 (behavior): New `struct behavior' decl.
6783 (BE): New macro.
6784 (locker_expansion, interactiveflag, hshenter)
6785 (quietflag, StrictLocks): Delete var decls.
6786 * rcsutil.c (behavior): New `struct behavior'.
6787 (catchsigaction): Use `BE (quiet)'.
6788 * ci.c (removelock, addelta, main): BE.
6789 * co.c (rmworkfile, buildjoin, main): BE.
6790 * ident.c (scanfile, main): BE.
6791 * merge.c (main): BE.
6792 * rcs.c (buildtree, main): BE.
6793 * rcsclean.c (main): BE.
6794 * rcsdiff.c (main): BE.
6795 * rcsedit.c (locker_expansion): Delete var.
6796 (keyreplace): BE.
6797 * rcsfnms.c (InitAdmin, main): BE.
6798 * rcsgen.c (interactiveflag): Delete var.
6799 (ttystdin, yesorno, putadmin): BE.
6800 * rcslex.c (hshenter, quietflag): Delete vars.
6801 (Lexinit, nextlex, warn, rcswarn, workwarn, diagnose): BE.
6802 [LEXDB] (main): BE.
6803 * rcsmerge.c (main): BE.
6804 * rcssyn.c (StrictLocks): Delete var.
6805 (getadmin, ignorephrases, getdelta): BE.
6806 * rlog.c (main): BE.
6807
6808 2010-03-19 Thien-Thi Nguyen <[email protected]>
6809
6810 [build] Use GNU Automake.
6811
6812 * Makefile.am: New file.
6813 * ci.c: Do s/-help.c/.help/ for #include file.
6814 * co.c: Likewise.
6815 * ident.c: Likewise.
6816 * merge.c: Likewise.
6817 * rcs.c: Likewise.
6818 * rcsclean.c: Likewise.
6819 * rcsdiff.c: Likewise.
6820 * rcsmerge.c: Likewise.
6821 * rlog.c: Likewise.
6822 * Makefile.in: Delete file.
6823
6824 2010-03-18 Thien-Thi Nguyen <[email protected]>
6825
6826 [int C] Use DIFF_{SUCCESS,FAILURE,TROUBLE} directly.
6827
6828 Using vars was a temporary measure while fleeing conf.h.
6829
6830 Here, "U" means "Throughout, use `DIFF_SUCCESS',
6831 `DIFF_FAILURE', `DIFF_TROUBLE' directly".
6832 * rcsutil.c: U.
6833 (diff_success, diff_failure, diff_trouble): Delete vars.
6834 * rcsbase.h (diff_success, diff_failure, diff_trouble):
6835 Delete var decls.
6836 * ci.c: U.
6837 * co.c: U.
6838 * merge.c: U.
6839 * merger.c: U.
6840 * rcs.c: U.
6841 * rcsdiff.c: U.
6842 * rcsmerge.c: U.
6843
6844 2010-03-17 Thien-Thi Nguyen <[email protected]>
6845
6846 [int] Consolidate parallel rcsedit.c arrays into `struct sff'.
6847
6848 * rcsedit.c (sff): New struct.
6849 (SFFI_LOCKDIR, SFFI_NEWDIR, SFF_COUNT): New #define:s.
6850 (sff): New static array of `struct sff'.
6851 (lockname, newRCSname): Use `sff'.
6852 (lockdirtp_index, newRCSdirtp_index, newworkdirtp_index)
6853 (DIRTEMPNAMES): Delete #define:s.
6854 (dirtpname, dirtpmaker): Delete data structures.
6855 (rcswriteopen): Use `sff', `SFFI_LOCKDIR'.
6856 (keepdirtemp): Use `sff', `SFF_COUNT'.
6857 (makedirtemp): Use `SFFI_NEWDIR', `sff'.
6858 (dirtempunlink): Use `SFF_COUNT', `sff'.
6859
6860 2010-03-17 Thien-Thi Nguyen <[email protected]>
6861
6862 [int C] Use `_Exit', which is C99.
6863
6864 * ci.c (exiterr): Use `_Exit'.
6865 * co.c (exiterr): Likewise.
6866 * ident.c (exiterr): Likewise.
6867 * merge.c (exiterr): Likewise.
6868 * rcs.c (exiterr): Likewise.
6869 * rcsclean.c (exiterr): Likewise.
6870 * rcsdiff.c (exiterr): Likewise.
6871 * rcsfnms.c [!HAVE_GETWD] (getcwd): Likewise.
6872 (exiterr): Likewise.
6873 * rcslex.c [LEXDB] (exiterr): Likewise.
6874 * rcsmerge.c (exiterr): Likewise.
6875 * rcsrev.c [REVTEST] (exiterr): Likewise.
6876 * rcssyn.c [SYNTEST] (exiterr): Likewise.
6877 * rcsutil.c (write_stderr, runv): Likewise.
6878 * rlog.c (exiterr): Likewise.
6879
6880 2010-03-17 Thien-Thi Nguyen <[email protected]>
6881
6882 [build] Don't do "make distclean" on "make dist"!
6883
6884 * Makefile.in (distdir, slow, headers)
6885 (infrastructure, EXTRA_DIST): New vars.
6886 (dist): New target.
6887
6888 2010-03-17 Thien-Thi Nguyen <[email protected]>
6889
6890 [int C] Consolidate some program globals into `struct program'.
6891
6892 Here, "USUAL" means "(cmdid): Delete var.
6893 (exiterr): Make static, declare `exiting'.
6894 (program): New struct instance.";
6895 and "PARTIAL foo" means "Like USUAL, but with only foo".
6896 * rcsbase.h (cmdid): Delete var decl.
6897 (exiterr): Delete func decl.
6898 (program): New struct.
6899 (program): New var decl.
6900 * ci.c: USUAL.
6901 * co.c: USUAL.
6902 * gnu-h-v.c (display_version): Use `program.name'.
6903 (check_hv): Likewise; also don't
6904 take `help'; use `program.help' instead.
6905 * gnu-h-v.h (check_hv): Update func decl.
6906 (CHECK_HV): Update call to `check_hv'.
6907 * ident.c: USUAL.
6908 (reportError, scanfile): Use `program.name'.
6909 * merge.c: USUAL.
6910 * merger.c (merge): Use `program.exiterr'.
6911 * rcs.c: USUAL.
6912 * rcsclean.c: USUAL.
6913 * rcsdiff.c: USUAL.
6914 * rcsfcmp.c [FCMPTEST]: PARTIAL cmdid, program.
6915 * rcsfnms.c [PAIRTEST]: USUAL.
6916 * rcskeep.c [KEEPTEST]: PARTIAL cmdid, program.
6917 * rcslex.c (Oerror): Use `program.exiterr'.
6918 (fatcleanup): Use `program.name', `program.exiterr'.
6919 (startsay, fatserror): Use `program.name'.
6920 [LEXDB]: USUAL.
6921 * rcsmerge.c: USUAL.
6922 * rcsrev.c [REVTEST]: USUAL.
6923 * rcssyn.c [SYNTEST]: USUAL.
6924 * rcsutil.c (catchsigaction): Use `program.exiterr'.
6925 * rlog.c: USUAL.
6926
6927 2010-03-17 Thien-Thi Nguyen <[email protected]>
6928
6929 [int C] Avoid `strcpy'.
6930
6931 * ci.c (incnum): Use `strncpy'.
6932 * rcsclean.c [HAVE_DIRENT_H] (get_directory): Likewise.
6933 * rcsdiff.c (main): Likewise.
6934 * rcsfnms.c (maketemp, bufscat, bufscpy, getfullRCSname): Likewise.
6935 * rcsutil.c (str_save, fstr_save): Likewise.
6936 * rlog.c (recentdate, getdatepair): Likewise.
6937 (KSTRCPY): New macro.
6938 (getnumericrev, main): Use `KSTRCPY'.
6939
6940 2010-03-16 Thien-Thi Nguyen <[email protected]>
6941
6942 [int C] Use `bool' (and `true' and `false') more.
6943
6944 Here, "B: foo" means "Change type of foo from `int' to `bool'".
6945 * rcsbase.h: #include <stdbool.h>.
6946 (STRICT_LOCKING): Use `true'.
6947 [!maps_memory] (Igetmore): Update func decl.
6948 (merge): Update func decl.
6949 (locker_expansion): Update var decl.
6950 (rcswriteopen, makedirtemp, addlock, addsymbol, checkaccesslist)
6951 (dorewrite, expandline, findlock, finishedit, rcsreadopen, pairnames):
6952 Update func decl.
6953 (interactiveflag): Update var decl.
6954 (buildrevision, putdtext, ttystdin, yesorno, putdesc, putdftext):
6955 Update func decl.
6956 (prevkeys): Update var decl.
6957 (getoldkeys): Update func decl.
6958 (hshenter, quietflag): Update var decl.
6959 (fatcleanup, eoflex, getkeyopt, getlex, expandsym, fexpandsym):
6960 Update func decl.
6961 (StrictLocks): Update var decl.
6962 (getdiffcmd, getdesc, putstring, getusername, isSLASH): Update func decl.
6963 * ci.c: Don't #include <stdbool.h>.
6964 (struct Symrev): B: .override.
6965 (forceciflag, keepflag, keepworkingfile, rcsinitflag): B: var.
6966 (addbranch): B: param `removedlock'.
6967 (addsyms): B: rv.
6968 (xpandfile): B: param `dolog'.
6969 (addassoclst): B: param `flag'.
6970 (main): B: local vars `initflag', `mustread', `lockflag',
6971 `lockthis', `mtimeflag', `Ttimeflag', `dolog', `newhead',
6972 `usestatdate', `bad_truncate'. Also, update interpretation
6973 of `ftruncate' rv to be `bool'-friendly.
6974 * co.c: Don't #include <stdbool.h>.
6975 (forceflag, mtimeflag): B: var.
6976 (rmworkfile, preparejoin, buildjoin): B: rv.
6977 (main): B: local vars `tostdout', `Ttimeflag'.
6978 * ident.c: Don't #include <stdbool.h>.
6979 * maketime.c (isleap): B: rv.
6980 (time2tm, tm2time): B: param `localzone'.
6981 (maketime): B: local var `localzone'.
6982 * maketime.h (time2tm, tm2time): Update func decls.
6983 * merge.c: Don't #include <stdbool.h>.
6984 (main): B: local var `tostdout'.
6985 * merger.c (merge): B: param `tostdout'.
6986 * rcs.c: Don't #include <stdbool.h>.
6987 (struct Symrev): B: .override.
6988 (chgheadstate, lockhead, unlockcaller, suppress_mail): B: var.
6989 (getassoclst): B: param `flag'.
6990 (scanlogtext): B: param `edit'.
6991 (doaccess): B: rv, local var `changed'.
6992 (sendmail): B: rv; also, remove spurious parens for `return' "arg".
6993 (breaklock, branchpoint): B: rv.
6994 (removerevs): B: rv; use `true', `false'.
6995 (doassoc): B: rv, local var `changed'.
6996 (setlock): B: rv; use `false'.
6997 (dolocks, domessage): B: rv, local var `changed'.
6998 (rcs_setstate, buildeltatext): B: rv.
6999 (main): B: local vars `branchflag', `initflag', `textflag',
7000 `strictlock', `strict_selected', `Ttimeflag', `keepRCStime';
7001 use `false'.
7002 * rcsclean.c: Don't #include <stdbool.h>.
7003 (unlock): B: rv.
7004 (main): B: local vars `dounlock', `perform', `unlocked', `unlockflag',
7005 `waslocked', `Ttimeflag'.
7006 * rcsdiff.c: Don't #include <stdbool.h>.
7007 (main): B: local var `no_diff_means_no_output'.
7008 * rcsedit.c: Don't #include <stdbool.h>.
7009 (locker_expansion): B: var.
7010 (finishedit): B: param `done'.
7011 (copystring): B: local var `amidline'.
7012 (enterstring): B: local vars `amidline', `oamidline'.
7013 (keyreplace): B: params `delimstuffed', `dolog';
7014 B: local var `kdelim_found'; use `false'.
7015 (expandline): B: params `delimstuffed', `dolog'; B: local var `e';
7016 remove local var `ds'; use `delimstuffed' directly; use `false', `true'.
7017 (rcswriteopen): B: param `mustread'; local var `waslocked'.
7018 (makedirtemp): B: param `isworkfile'.
7019 (findlock): B: param `delete'.
7020 (addlock): B: param `verbose'.
7021 (addsymbol): B: param `rebind'.
7022 (checkaccesslist): B: rv.
7023 (dorewrite): B: param `lockflag'.
7024 * rcsfcmp.c: Don't #include <stdbool.h>.
7025 (rcsfcmp): B: local vars `eqkeyvals', `xeof', `ueof'.
7026 * rcsfnms.c: Don't #include <stdbool.h>.
7027 (suffix_matches): B: rv.
7028 (rcsreadopen): B: param `mustread'.
7029 (finopen): B: params `rcsopen' 3rd arg, `mustread';
7030 B: local vars `interesting', `preferold'.
7031 (fin2open): B: params `rcsopen' 3rd arg, `mustread'.
7032 (pairnames): B: params `rcsopen' 3rd arg, `mustread', `quiet';
7033 B: local var `paired'.
7034 (isSLASH): B: rv.
7035 [!HAVE_GETWD] (getcwd): B: local vars `readerror',
7036 `toolong'; use `true'.
7037 [PAIRTEST] (main): B: local var `initflag'.
7038 * rcsgen.c: Don't #include <stdbool.h>.
7039 (interactiveflag): B: var.
7040 (scandeltatext): B: param `needlog'.
7041 (buildrevision): B: param `expandflag'.
7042 (ttystdin): B: rv, local var `initialized'.
7043 (yesorno): B: rv.
7044 (putdesc): B: param `textflag'.
7045 (getsstdin): B: local var `tty'.
7046 (putdtext): B: rv, param `diffmt'.
7047 (putstring): B: params `delim', `log'.
7048 (putdftext): B: param `diffmt'.
7049 * rcskeep.c: Don't #include <stdbool.h>.
7050 (prevkeys): B: var.
7051 (badly_terminated): B: rv.
7052 (get0val): B: param `optional', local var `got1'.
7053 (keepid): B: rv.
7054 (getval): B: rv, param `optional'.
7055 (checknum, keeprev): B: rv.
7056 (getoldkeys): B: rv, local vars
7057 `needs_closing', `prevname_found'; use `true'.
7058 * rcslex.c: Don't #include <stdbool.h>.
7059 (hshenter, quietflag, ignored_phrases): B: vars.
7060 (eoflex, getlex): B: rv.
7061 (getkeyopt): B: rv; remove spurious parens around `return' "arg".
7062 (checkidentifier): B: param `dotok', local var `isid'.
7063 [!maps_memory && large_memory] (Igetmore): B: rv; use `true', `false'.
7064 (Oerrloop): B: var.
7065 (fatcleanup): B: param `already_newline'.
7066 * rcsmerge.c: Don't #include <stdbool.h>.
7067 (main): B: local var `tostdout'.
7068 * rcsrev.c: Don't #include <stdbool.h>.
7069 (expandsym): B: rv.
7070 (fexpandsym): B: rv, local var `id'.
7071 * rcssyn.c: Don't #include <stdbool.h>.
7072 (StrictLocks): B: var.
7073 (getkeyval): B: param `optional'.
7074 (getdelta): B: rv; remove spurious parens around `return' "arg".
7075 (getdesc): B: param `prdesc'.
7076 (getdiffcmd): B: param `delimiter'.
7077 * rcstime.c (use_zone_offset): B: var.
7078 (date2str): Use `false'.
7079 * rcsutil.c: Don't #include <stdbool.h>.
7080 (getusername): B: param `suspicious'.
7081 (unsupported_SA_SIGINFO): B: var.
7082 (setup_catchsig): Use `true'.
7083 (catchints): B: local var `catching_ints'.
7084 (catchmmapints): B: local var `catching_mmap_ints'.
7085 (runv) [BAD_WAIT_IF_SIGCHLD_IGNORED]: B: local var `fixed_SIGCHLD'.
7086 (setRCSversion): B: local var `oldversion'.
7087 (set_uid_to): B: local var `looping'
7088 (stick_with_euid): B: var.
7089 * rlog.c: Don't #include <stdbool.h>.
7090 (branchflag, lockflag): B: vars.
7091 (putadelta): B: param `trunk', local var `pre5'.
7092 (getdatepair): B: local var `switchflag', `eq'.
7093 (checkrevpair, getnumericrev): B: rv.
7094 (main): B: local var `descflag', `selectflag', `onlylockflag',
7095 `onlyRCSflag', `pre5', `shownames'.
7096
7097 2010-03-16 Thien-Thi Nguyen <[email protected]>
7098
7099 [int C] Use `quietflag' more.
7100
7101 * ident.c (scanfile): Drop arg `quiet'; use `quietflag' instead.
7102 (main): If given -q, set `quietflag' directly.
7103 If given -V, return successfully after displaying version info.
7104
7105 2010-03-16 Thien-Thi Nguyen <[email protected]>
7106
7107 [int C] Use enum for keyword substitution mode.
7108
7109 * rcsbase.h (kwsub): New enum.
7110 [O_BINARY] (FOPEN_R_WORK, FOPEN_W_WORK, FOPEN_WPLUS_WORK): Use enum.
7111 (KEYVAL_EXPAND, KEYVALLOCK_EXPAND, KEY_EXPAND, VAL_EXPAND)
7112 (OLD_EXPAND, BINARY_EXPAND): Delete #define:s.
7113 (MIN_UNEXPAND, MIN_UNCHANGED_EXPAND): Use enum.
7114 * ci.c (main) [OPEN_O_BINARY]: Use enum.
7115 (main): Likewise.
7116 * co.c (main) [OPEN_O_BINARY]: Likewise.
7117 (main): Likewise.
7118 * rcs.c (buildeltatext) [OPEN_O_BINARY]: Likewise.
7119 * rcsclean.c (main): Likewise.
7120 * rcsdiff.c (main): Likewise.
7121 (main) [OPEN_O_BINARY]: Likewise.
7122 * rcsedit.c (keyreplace): Likewise.
7123 * rcsfnms.c (InitAdmin): Likewise.
7124 * rcsgen.c (putadmin): Likewise.
7125 * rcsmerge.c (main): Likewise.
7126 * rcssyn.c (getadmin): Likewise.
7127 * rlog.c (main): Likewise.
7128
7129 2010-03-15 Thien-Thi Nguyen <[email protected]>
7130
7131 [int C] Don't bother taking unused third arg for `same_file'.
7132
7133 * rcsbase.h (same_file): Don't take third arg.
7134 * ci.c (main): Call `same_file' w/o third arg.
7135 * co.c (main): Likewise.
7136 * rcsclean.c (main): Likewise.
7137 * rcsedit.c (chnamemod): Likewise.
7138 * rcsfnms.c (getfullRCSname): Likewise.
7139
7140 2010-03-15 Thien-Thi Nguyen <[email protected]>
7141
7142 [int C] Topo-sort top-level; eliminate redundant forward func decls.
7143
7144 * maketime.c: Delete forward func decls; reorder
7145 top-level; do other whitespace and comment changes.
7146 * merger.c: Likewise.
7147 * partime.c: Likewise.
7148 * rcsedit.c: Likewise.
7149 * rcsfcmp.c: Likewise.
7150 * rcsfnms.c: Likewise.
7151 * rcsgen.c: Likewise.
7152 * rcskeep.c: Likewise.
7153 * rcskeys.c: Likewise.
7154 * rcslex.c: Likewise.
7155 * rcsmap.c: Likewise.
7156 * rcsrev.c: Likewise.
7157 * rcssyn.c: Likewise.
7158 * rcstime.c: Likewise.
7159 * rcsutil.c: Likewise.
7160
7161 2010-03-15 Thien-Thi Nguyen <[email protected]>
7162
7163 [int C] Remove spurious debugging output.
7164
7165 * rcsfnms.c [!HAVE_MKSTEMP] (homegrown_mkstemp):
7166 Remove debugging output.
7167
7168 2010-03-13 Thien-Thi Nguyen <[email protected]>
7169
7170 [int] Revise output for --help option.
7171
7172 * ci.c (:help comment): Remove description blurb;
7173 use uppercase letters and a period; flatten/reorg a bit.
7174 * co.c (:help comment): Likewise.
7175 * ident.c (:help comment): Likewise.
7176 * merge.c (:help comment): Likewise.
7177 * rcs.c (:help comment): Likewise.
7178 * rcsclean.c (:help comment): Likewise.
7179 * rcsdiff.c (:help comment): Likewise.
7180 * rcsmerge.c (:help comment): Likewise.
7181 * rlog.c (:help comment): Likewise.
7182
7183 2010-03-13 Thien-Thi Nguyen <[email protected]>
7184
7185 [int C] Topo-sort top-level; eliminate redundant forward func decls.
7186
7187 * ci.c: Delete forward func decls; reorder top-level;
7188 do other whitespace and comment changes.
7189 (main): Move to end.
7190 * co.c: Likewise.
7191 * ident.c: Likewise.
7192 * merge.c: Likewise.
7193 * rcs.c: Likewise.
7194 * rcsclean.c: Likewise.
7195 * rcsdiff.c: Likewise.
7196 * rcsmerge.c: Likewise.
7197 * rlog.c: Likewise.
7198
7199 2010-03-13 Thien-Thi Nguyen <[email protected]>
7200
7201 [sec] Use mktemp(1) instead of homegrown tmporary file naming.
7202
7203 * rcsfreeze.sh (TMPLOG): Use mktemp(1); exit if not successful.
7204
7205 2010-03-11 Thien-Thi Nguyen <[email protected]>
7206
7207 rcsdiff: Refine "same-revision don't call diff" optimization.
7208
7209 * rcsdiff.c (unique): New struct def.
7210 (s_unique): New typedef.
7211 (minus_y, minus_D): New static `s_unique' objects.
7212 (longopt_maybe_p): New static func.
7213 (main) <option parsing>: No longer disable "same-revision
7214 don't call diff" optimization on any long opt. Instead, disable
7215 only for `--side-by-side', `--ifdef', or unique portions thereof.
7216 Reported by Aaron S. Hawley <[email protected]>.
7217
7218 2010-03-11 Thien-Thi Nguyen <[email protected]>
7219
7220 [int C] Factor string of '='.
7221
7222 * rcsbase.h (equal_line): New var decl.
7223 * rcsutil.c (equal_line): New const string.
7224 * rcsdiff.c (main): Use `equal_line'.
7225 * rlog.c (main): Likewise.
7226
7227 2010-03-11 Thien-Thi Nguyen <[email protected]>
7228
7229 Document rcsdiff(1) options passed to underyling diff(1).
7230
7231 * rcsdiff.c (:help comment): Expand.
7232
7233 2010-03-10 Thien-Thi Nguyen <[email protected]>
7234
7235 rcsdiff: Accept `-U N' to output N lines of unified context.
7236
7237 * rcsdiff.c (main): Handle option `-U'.
7238
7239 2010-03-10 Thien-Thi Nguyen <[email protected]>
7240
7241 [v] Cause "make check" to fail if any test fails.
7242
7243 * Makefile.in (check): If any test fails, fail overall.
7244
7245 2010-03-10 Thien-Thi Nguyen <[email protected]>
7246
7247 [int C] Use '\0' more.
7248
7249 * ci.c: Throughout, replace `0' a char context with '\0'.
7250 * co.c: Likewise.
7251 * merger.c: Likewise.
7252 * rcs.c: Likewise.
7253 * rcsclean.c: Likewise.
7254 * rcsdiff.c: Likewise.
7255 * rcsedit.c: Likewise.
7256 * rcskeep.c: Likewise.
7257 * rcslex.c: Likewise.
7258 * rcsrev.c: Likewise.
7259 * rcsutil.c: Likewise.
7260
7261 2010-03-10 Thien-Thi Nguyen <[email protected]>
7262
7263 [build] Move `printf %.2d' check to configure.ac.
7264
7265 * rcstime.c (proper_dot_2): Rewrite func as simple macro.
7266
7267 2010-03-10 Thien-Thi Nguyen <[email protected]>
7268
7269 [int C] Use <stdbool.h>.
7270
7271 * rcsbase.h (true, false): Delete #define:s.
7272 * ci.c: #include <stdbool.h>.
7273 * co.c: Likewise.
7274 * ident.c: Likewise.
7275 * merge.c: Likewise.
7276 * rcs.c: Likewise.
7277 * rcsbase.h: Likewise.
7278 * rcsclean.c: Likewise.
7279 * rcsdiff.c: Likewise.
7280 * rcsedit.c: Likewise.
7281 * rcsfcmp.c: Likewise.
7282 * rcsfnms.c: Likewise.
7283 * rcsgen.c: Likewise.
7284 * rcskeep.c: Likewise.
7285 * rcslex.c: Likewise.
7286 * rcsmerge.c: Likewise.
7287 * rcsrev.c: Likewise.
7288 * rcssyn.c: Likewise.
7289 * rcsutil.c: Likewise.
7290 * rlog.c: Likewise.
7291
7292 2010-03-10 Thien-Thi Nguyen <[email protected]>
7293
7294 [int C] Use `NULL' more.
7295
7296 * ci.c: Throughout, replace `0' in a pointer context with `NULL'.
7297 * co.c: Likewise.
7298 * maketime.c: Likewise.
7299 * merge.c: Likewise.
7300 * merger.c: Likewise.
7301 * partime.c: Likewise.
7302 * rcs.c: Likewise.
7303 * rcsclean.c: Likewise.
7304 * rcsdiff.c: Likewise.
7305 * rcsedit.c: Likewise.
7306 * rcsfnms.c: Likewise.
7307 * rcsgen.c: Likewise.
7308 * rcskeep.c: Likewise.
7309 * rcskeys.c: Likewise.
7310 * rcslex.c: Likewise.
7311 * rcsmerge.c: Likewise.
7312 * rcsrev.c: Likewise.
7313 * rcssyn.c: Likewise.
7314 * rcsutil.c: Likewise.
7315 * rlog.c: Likewise.
7316
7317 2010-03-10 Thien-Thi Nguyen <[email protected]>
7318
7319 Fix bug: Remove all log messages when removing all revisions.
7320
7321 * rcs.c (main): When outdating, allow `scanlogtext' to
7322 do its job regardless of the presence of revisions finally.
7323 Reported by Jeff Sheinberg <[email protected]>.
7324
7325 2010-03-09 Thien-Thi Nguyen <[email protected]>
7326
7327 [int C] Do some small changes to quieten GCC warnings.
7328
7329 * ci.c: #include <ctype.h>.
7330 * gnu-h-v.c (display_version): Don't take CMDID; use global.
7331 (check_hv): Don't take CMDID; update call to `display_version'.
7332 * gnu-h-v.h (display_version, check_hv): Update func decls.
7333 (CHECK_HV): Update call to `check_hv'.
7334 * ident.c (main): Update call to `display_version'.
7335 * maketime.c: #include "rcsbase.h";
7336 remove vestigal "#if has_conf_h #else ... #endif" block.
7337 [TEST]: Use `#ifdef', not `#if'.
7338 * merge.c (main): Update call to `display_version'.
7339 * partime.c: #include "rcsbase.h";
7340 remove vestigal "#if has_conf_h #else ... #endif" block.
7341 (isdigit): Delete #undef, #define.
7342 (parzone, partime): Change return type to `char const*'.
7343 * partime.h (partime, parzone): Update func decls.
7344 * rcsbase.h (O_BINARY): Use "#ifdef", not "#if".
7345 (isdigit): Delete #define.
7346 * rcsfcmp.c: Whitespace munging; nfc.
7347 * rcskeep.c: #include <ctype.h>.
7348 * rcsrev.c: Likewise.
7349 * rcssyn.c: Likewise.
7350 * rcsutil.c: Likewise.
7351 (setRCSversion): Update call to `display_version'.
7352
7353 2010-03-09 Thien-Thi Nguyen <[email protected]>
7354
7355 [int C] Ensure `parse_decimal' never leaves junk fraction.
7356
7357 * partime.c (parse_decimal): Make sure
7358 out-param `fres' always contains a valid value.
7359
7360 2010-03-08 Thien-Thi Nguyen <[email protected]>
7361
7362 [build] Delete src/foo-help.c files on "make clean".
7363
7364 * Makefile.in (clean): Also delete *-help.c.
7365
7366 2010-03-08 Thien-Thi Nguyen <[email protected]>
7367
7368 [int] Add abstraction: gr_revno
7369
7370 * rcsbase.h (gr_revno): New func decl.
7371 * rcsrev.c (gr_revno): New func.
7372 (branchtip): Use it.
7373 * ci.c: Replace `genrevs (foo, NULL, NULL, NULL, bar)'
7374 with `gr_revno (foo, bar)', throughout.
7375 * co.c: Likewise.
7376 * rcs.c: Likewise.
7377 * rcsclean.c: Likewise.
7378 * rcsdiff.c: Likewise.
7379 * rcsmerge.c: Likewise.
7380
7381 2010-03-08 Thien-Thi Nguyen <[email protected]>
7382
7383 [int C] Use `NULL' more.
7384
7385 * ci.c: Throughout, replace `(foo *) 0' with `NULL'.
7386 * co.c: Likewise.
7387 * ident.c: Likewise.
7388 * maketime.c: Likewise.
7389 * merger.c: Likewise.
7390 * rcs.c: Likewise.
7391 * rcsclean.c: Likewise.
7392 * rcsdiff.c: Likewise.
7393 * rcsedit.c: Likewise.
7394 * rcsfcmp.c: Likewise.
7395 * rcsfnms.c: Likewise.
7396 * rcsgen.c: Likewise.
7397 * rcskeep.c: Likewise.
7398 * rcslex.c: Likewise.
7399 * rcsmerge.c: Likewise.
7400 * rcsrev.c: Likewise.
7401 * rcssyn.c: Likewise.
7402 * rcsutil.c: Likewise.
7403 * rlog.c: Likewise.
7404
7405 2010-03-08 Thien-Thi Nguyen <[email protected]>
7406
7407 [v] Add basic "make check" support.
7408
7409 * rcsutil.c: Don't #include "bother.h".
7410 (prog_co, prog_merge): Delete var definitions.
7411 * Makefile.in (PATHPREFIX): New var.
7412 (TESTS_ENVIRONMENT, TESTS): Likewise.
7413 (RCSPREFIX): Delete var.
7414 (all): Remove bother.h from dependency list.
7415 (check): New target.
7416 (RCSTEST): Delete var.
7417 (installcheck): Depend on `test-prep'; redirect to `check'.
7418 (installdebug): Delete target.
7419 (test-clean): New target.
7420 (clean): Depend on `test-clean'.
7421 (distclean): Delete bother.c, not bother.h.
7422 (rcsutil$o): Delete dependency on bother.h.
7423 (bother.h): Delete target.
7424 (bother.c): New target.
7425 (PARTS): Add `bother$o'.
7426 (test-prep, xorlf): New targets.
7427 * alive.test: Rename from rcstest; make sensitive
7428 to env var DEBUG; don't compile a "fake tr"; chmod -x.
7429
7430 2010-03-08 Thien-Thi Nguyen <[email protected]>
7431
7432 [int C] Avoid comparing signed/unsigned.
7433
7434 * rcsedit.c (deletelines): Take `unsigned long' (both args).
7435 Also, use `unsigned long' for local var.
7436 (insertline): Change type of first arg to `unsigned long'.
7437 (resolve_symlink): Use `ssize_t' for local var.
7438 * rcsfnms.c (pairnames): Add cast to `size_t' for `strlen' rv.
7439 Also, transform `baselen' comparison algebraically.
7440 * rcslex.c (fd2RILE): Use `off_t' for local var.
7441 * rcsutil.c (write_stderr): Use `int' for local var.
7442
7443 2010-03-08 Thien-Thi Nguyen <[email protected]>
7444
7445 [int C] Add do-while for `aputc_'; rename.
7446
7447 * rcsbase.h (aputc): Rename from `aputc_'; add do-while.
7448 (GETC): Use `aputc'.
7449 * rcsedit.c (snapshotline, copylines, copystring, editstring)
7450 (expandline, escape_string): Likewise.
7451 * rcsgen.c (putdesc, putadmin, putstring, putdftext): Likewise.
7452 * rcslex.c (eoflex, getphrases)
7453 (getphrases, printstring, diagnose): Likewise.
7454 * rlog.c (main): Likewise.
7455
7456 2010-03-08 Thien-Thi Nguyen <[email protected]>
7457
7458 [int C] Add do-while for `Igeteof_'; rename.
7459
7460 * rcsbase.h (Igeteof): Rename from `Igeteof_'; add do-while.
7461 [large_memory] (Iget): Use `Igeteof'.
7462 [!large_memory] (cachegeteof): Likewise.
7463 * rcsedit.c (editstring): Likewise.
7464 * rcsfcmp.c (discardkeyval, rcsfcmp): Likewise.
7465 * rcskeep.c (getoldkeys, getval)
7466 (get0val, keepdate, keepid): Likewise.
7467
7468 2010-03-08 Thien-Thi Nguyen <[email protected]>
7469
7470 [int C] Add do-while for `Iget_'; rename.
7471
7472 * rcsbase.h (Iget): Rename from `Iget_'; add do-while.
7473 [!large_memory] (cacheget): Use `Iget'.
7474 * rcslex.c (Lexinit): Likewise.
7475
7476 2010-03-07 Thien-Thi Nguyen <[email protected]>
7477
7478 [int C] Add do-while for `cachegeteof_'; rename.
7479
7480 * rcsbase.h (cachegeteof): Rename from `cachegeteof_'; add do-while.
7481 [large_memory] (cacheget): Use `cachegeteof'.
7482 * rcsedit.c (copylines, expandline): Likewise.
7483 * rcsgen.c (putdftext): Likewise.
7484 * rcslex.c (eoflex): Likewise.
7485 * rcssyn.c (getdiffcmd): Likewise.
7486
7487 2010-03-07 Thien-Thi Nguyen <[email protected]>
7488
7489 [int C] Add do-while for `cacheunget_'; rename.
7490
7491 * rcsbase.h (cacheunget): Rename from `cacheunget_'; add do-while.
7492 * rcsedit.c (keyreplace): Use `cacheunget'.
7493
7494 2010-03-07 Thien-Thi Nguyen <[email protected]>
7495
7496 [int C] Add do-while for `cacheget_'; rename.
7497
7498 * rcsbase.h (cacheget): Rename from `cacheget_'; add do-while.
7499 (cacheunget_, GETC): Use `cacheget'.
7500 * rcsedit.c (keyreplace): Likewise.
7501 * rcslex.c (getphrases, printstring): Likewise.
7502 * rcssyn.c (getdiffcmd): Likewise.
7503 * rlog.c (getscript): Likewise.
7504
7505 2010-03-07 Thien-Thi Nguyen <[email protected]>
7506
7507 [int C] Add do-while for `GETC_'; rename to `GET'.
7508
7509 * rcsbase.h (GETCeof_): Delete unused macro.
7510 (GETC): Rename from `GETC_'; add do-while.
7511 * rcsedit.c (copystring): Use `GETC'.
7512 (enterstring, editstring, expandline): Likewise.
7513 * rcslex.c (nextlex, getphrases, readstring, savestring): Likewise.
7514
7515 2010-03-07 Thien-Thi Nguyen <[email protected]>
7516
7517 [int] Mark some parameters RCS_UNUSED.
7518
7519 * rcsfnms.c (rcsreadopen): Mark `mustread' RCS_UNUSED.
7520 * rcslex.c (nothing_to_deallocate): Likewise for `f'.
7521 * rcsutil.c (catchsigaction): Likewise for `c'.
7522
7523 2010-03-07 Thien-Thi Nguyen <[email protected]>
7524
7525 [build] Add check for GCC attribute `unused'.
7526
7527 * rcsbase.h (RCS_UNUSED): New #define.
7528
7529 2010-03-07 Thien-Thi Nguyen <[email protected]>
7530
7531 [int] Declare `display_version' for rcsutil.c.
7532
7533 * rcsutil.c: #include "gnu-h-v.h".
7534
7535 2010-03-07 Thien-Thi Nguyen <[email protected]>
7536
7537 [build] Move all DIFF* config to configure.in; assume diffutils.
7538
7539 * Makefile.in (DIFF, DIFF3): Delete vars.
7540 (RCSTEST): Remove DIFF='$(DIFF)'.
7541 (bother.h): Don't output #define:s for `DIFF', `DIFF3'.
7542
7543 2010-03-07 Thien-Thi Nguyen <[email protected]>
7544
7545 [build] Require absolute filenames for external programs.
7546
7547 * Makefile.in (absp): Delete var.
7548 (bother.h): Use absolute $(RCSPREFIX), via pwd(1);
7549 don't bother computing `ALL_ABSOLUTE', `DIFF_ABSOLUTE'.
7550 * rcsutil.c (exec_RCS): Move #define out of conditional.
7551 (set_uid_to): Update #if condition, taking DIFF_ABSOLUTE as 1.
7552
7553 2010-03-07 Thien-Thi Nguyen <[email protected]>
7554
7555 [build] Move non-filename DIFF* configuration to configure.in.
7556
7557 * merger.c: Don't #include "bother.h".
7558 * rcsdiff.c: Likewise.
7559 * Makefile.in (DIFF3_BIN, DIFFFLAGS, DIFF_L)
7560 (DIFF_FAILURE, DIFF_SUCCESS, DIFF_TROUBLE): Delete vars.
7561 (merger$o, rcsdiff$o): No longer depend on "bother.h".
7562 (bother.h): Remove #define generation for `DIFF_L', `DIFF3_BIN',
7563 `DIFFFLAGS', `DIFF_SUCCESS', `DIFF_FAILURE', `DIFF_TROUBLE'.
7564
7565 2010-03-06 Thien-Thi Nguyen <[email protected]>
7566
7567 [build] Move `SENDMAIL' configuration to configure.in.
7568
7569 * rcs.c: Don't #include "bother.h".
7570 * Makefile.in (SENDMAIL): Delete var.
7571 (rcs$o): No longer depend on "bother.h".
7572 (bother.h): Remove `SENDMAIL' #define/#undef generation.
7573
7574 2010-03-06 Thien-Thi Nguyen <[email protected]>
7575
7576 [build] Move `ED' configuration into configure.in.
7577
7578 * Makefile.in (ED): Delete var.
7579 (bother.h): Remove `ED' #define.
7580 Also, don't bother checking it for absoluteness.
7581 * merger.c (merge): Use `ED'.
7582 * rcsbase.h (prog_ed): Delete var decl.
7583 * rcsutil.c (prog_ed): Delete var.
7584
7585 2010-03-06 Thien-Thi Nguyen <[email protected]>
7586
7587 [build] Move `COMPAT2' configuration into configure.in.
7588
7589 * Makefile.in (COMPAT2): Delete var.
7590 (bother.h): Remove `COMPAT2' #define/#undef generation.
7591 (rcssyn$o): No longer depend on "bother.h".
7592 * rcssyn.c: Don't #include "bother.h".
7593
7594 2010-03-06 Thien-Thi Nguyen <[email protected]>
7595
7596 [dist] Don't distribute INSTALL.RCS.
7597
7598 * Makefile.in: Comment munging; nfc.
7599 * rcsbase.h: Likewise.
7600
7601 2010-03-06 Thien-Thi Nguyen <[email protected]>
7602
7603 [sec] Use `mkstemp' instead of `mktemp'.
7604
7605 * rcsbase.h (P_tmpdir): New #define, but only not already.
7606 (set_temporary_file_name): New func decl.
7607 * rcsfnms.c: #include <stdint.h>.
7608 [HAVE_MKTEMP] (tmp): Delete func and surrounding #ifdef.
7609 [!HAVE_MKSTEMP] (homegrown_mkstemp): New func.
7610 [!HAVE_MKSTEMP] (mkstemp): #define to `homegrown_mkstemp'.
7611 (set_temporary_file_name): New func.
7612 (maketemp): Use `set_temporary_file_name'.
7613 * rcsedit.c (makedirtemp): Use `set_temporary_file_name'.
7614
7615 2010-03-04 Thien-Thi Nguyen <[email protected]>
7616
7617 Add --help, --version handling for all programs.
7618
7619 In the following, for program source PROG.c:
7620 Implicit: #include "ci-help.c"; add /*:help ...*/ comment.
7621 C means: Check for "--help" and "--version"; handle them.
7622 B means: Don't display usage summary on bad option.
7623 * gnu-h-v.h: New file.
7624 * gnu-h-v.c: New file.
7625 * ci.c (main): C; B.
7626 * co.c (main): C; B.
7627 * ident.c (main): C; use `display_version'.
7628 * merge.c (main): Likewise.
7629 * rcs.c (main): C; B.
7630 * rcsclean.c (main): C.
7631 * rcsdiff.c (main): C; B.
7632 * rcsfreeze.sh: Add copyright and license notices.
7633 Add handling for --help, --version.
7634 (version): New var.
7635 (usage): New func.
7636 * rcsmerge.c (main): C; B.
7637 * rcsutil.c (setRCSversion): Use `display_version'.
7638 * rlog.c (main): C; B.
7639 * rcsbase.h (COMMAND_VERSION): Delete macro.
7640 * Makefile.in (%-help.c : %.c): New pattern rule.
7641 (SOURCE): Add gnu-h-v.c.
7642 (PARTS): Add gnu-h-v$o.
7643 (ci$o): Depend on ci-help.c.
7644 (co$o): Depend on co-help.c.
7645 (ident$o): Depend on ident-help.c.
7646 (merge$o): Depend on merge-help.c.
7647 (rcs$o): Depend on rcs-help.c.
7648 (rcsclean$o): Depend on rcsclean-help.c.
7649 (rcsdiff$o): Depend on rcsdiff-help.c.
7650 (rcsmerge$o): Depend on rcsmerge-help.c.
7651 (rlog$o): Depend on rlog-help.c.
7652
7653 2010-03-04 Thien-Thi Nguyen <[email protected]>
7654
7655 [build] Move some Makefile vars out of "tailorable" section.
7656
7657 * Makefile.in (bindir): Move up; use @bindir@ directly.
7658 (x): Move up; use @EXEEXT@.
7659 (o): Move up; use .@OBJEXT@ -- NB leading dot.
7660 (LIBOBJS): Move up; use @LIBOBJS@.
7661
7662 2010-03-03 Thien-Thi Nguyen <[email protected]>
7663
7664 [build] Use an object archive instead of specifying long lists.
7665
7666 * Makefile.in (LINK): Remove $(LDFLAGS), $(CFLAGS).
7667 (clean): Don't delete a.*, RCS/a.*; instead delete librcsparts.a.
7668 (ci, ci$x): Delete this var and pattern rule, respectively.
7669 (co, co$x): Likewise.
7670 (ident, ident$x): Likewise.
7671 (merge, merge$x): Likewise.
7672 (rlog, rlog$x): Likewise.
7673 (rcs, rcs$x): Likewise.
7674 (rcsclean, rcsclean$x): Likewise.
7675 (rcsdiff, rcsdiff$x): Likewise.
7676 (rcsmerge, rcsmerge$x): Likewise.
7677 (%$x : %$o): New pattern rule.
7678 (PROGS, PARTS): New vars.
7679 (OBJECT): Rewrite var in terms of $(PROGS), $(PARTS).
7680 (librcsparts.a): New target.
7681
7682 2010-03-03 Thien-Thi Nguyen <[email protected]>
7683
7684 [build] Make compilation output file a little more obvious.
7685
7686 * Makefile.in (.c$o): Add "-o $@" to compile command line.
7687 (ci$x, co$x, ident$x, merge$x, rlog$x, rcs$x)
7688 (rcsclean$x, rcsdiff$x, rcsmerge$x): Move "-o $@"
7689 forward in the command line, following $(LINK).
7690
7691 2010-03-03 Thien-Thi Nguyen <[email protected]>
7692
7693 [build] Reduce dependency-transitivity of src/Makefile variables.
7694
7695 * Makefile.in (ALL_CFLAGS): Remove -Dhas_conf_h.
7696 (all): Depend on bother.h.
7697 (clean): Remove conf.err from list of files to delete.
7698 (distclean): Don't delete conf.h; delete bother.h, instead.
7699 (conf.h): Delete target.
7700 (merger$o): Depend explicitly on bother.h.
7701 (rcs$o, rcsdiff$o, rcssyn$o, rcsutil$o): Likewise.
7702 (absp): New var.
7703 (bother.h): New target.
7704 (conf_h): Delete var.
7705 ($(OBJECT)): Don't depend on $(conf_h).
7706 (FORCE): New target.
7707 * rcsbase.h: Don't #include "conf.h".
7708 #include <errno.h>, <stdio.h>, <time.h>, <sys/types.h>,
7709 <sys/stat.h>, <stdlib.h>, <stdarg.h>, <string.h>.
7710 [HAVE_FCNTL_H]: #include <fcntl.h>
7711 [HAVE_LIMITS_H]: #include <limits.h>
7712 [HAVE_MACH_MACH_H]: #include <mach/mach.h>.
7713 [HAVE_NET_ERRNO_H]: #include <net/errno.h>.
7714 [HAVE_PWD_H]: #include <pwd.h>.
7715 [HAVE_SIGINFO_H]: #include <siginfo.h>.
7716 [HAVE_SIGNAL_H]: #include <signal.h>.
7717 [HAVE_SYS_MMAN_H]: #include <sys/mman.h>.
7718 [HAVE_SYS_WAIT_H]: #include <sys/wait.h>.
7719 [HAVE_UCONTEXT_H]: #include <ucontext.h>.
7720 [HAVE_UNISTD_H]: #include <unistd.h>.
7721 [HAVE_UTIME_H]: #include <utime.h>.
7722 [HAVE_VFORK_H]: #include <vfork.h>.
7723 (exiting, printf_string, printf_string_exiting): New macros.
7724 (FOPEN_RB, FOPEN_R_WORK, FOPEN_WB, FOPEN_W_WORK, FOPEN_WPLUS_WORK)
7725 (OPEN_O_BINARY, OPEN_CREAT_READONLY, OPEN_O_LOCK, OPEN_O_WRONLY)
7726 (getlogin_is_secure, bad_NFS_rename, has_setreuid, needs_getabsname)
7727 (has_NFS, RCS_SHELL, large_memory, TMPDIR, SLASH, SLASHes)
7728 (ROOTPATH, X_DEFAULT, TZ_must_be_set): Likewise.
7729 (exec_RCS, EXIT_TROUBLE): Delete macros.
7730 (isSLASH): New func decl.
7731 (prog_co, prog_co, prog_merge, prog_diff, prog_diff3, diff_flags)
7732 (diff_success, diff_failure, diff_trouble, prog_ed): New var decls.
7733 * rcsutil.c: #include "bother.h".
7734 (prog_co, prog_merge, prog_diff, prog_diff3, diff_flags)
7735 (diff_success, diff_failure, diff_trouble, prog_ed): New vars.
7736 (write_error): Use `diff_trouble'.
7737 (exec_RCS): New macro, moved from rcsbase.h.
7738 (runv): Use `diff_trouble'.
7739 * ci.c (main): Use `prog_diff', `diff_flags', `diff_trouble'.
7740 * co.c (buildjoin): Use `prog_co', `prog_merge', `diff_trouble'.
7741 * merge.c (exiterr): Use `diff_trouble'.
7742 * merger.c: #include "bother.h".
7743 (merge): Use `prog_diff3', `diff_trouble', `diff_failure',
7744 `prog_diff', `diff_success', `prog_ed'.
7745 * rcs.c: #include "bother.h".
7746 (buildeltatext): Use `prog_diff', `diff_flags', `diff_trouble'.
7747 * rcsdiff.c: #include "bother.h".
7748 (main): Use `diff_success', `prog_diff', `prog_co', `diff_trouble',
7749 `diff_failure'.
7750 (cleanup, exiterr): Use `diff_trouble'.
7751 * rcsfnms.c (isSLASH): Define func unconditionally.
7752 (isSLASH) [!WOE]: Just check that the char is `SLASH'.
7753 * rcsmerge.c (co): Delete var.
7754 (main): Use `prog_co', `diff_trouble'.
7755 (exiterr): Use `diff_trouble'.
7756 * rcssyn.c: #include "bother.h".
7757 * conf.heg: Delete file.
7758 * conf.sh: Delete file.
7759
7760 2010-03-03 Thien-Thi Nguyen <[email protected]>
7761
7762 [build] Detect "absolute-filename-p" without compiling.
7763
7764 * conf.sh: Use `WOE' value from auto-sussed.h directly to select
7765 set of #define values. For `ALL_ABSOLUTE', `DIFF_ARBITRARY'
7766 computation, use ../build-aux/abs-p.
7767
7768 2010-03-02 Thien-Thi Nguyen <[email protected]>
7769
7770 [build] Move "// is /" check to configure.in.
7771
7772 * conf.sh: Remove "// is /" check.
7773 * rcsfnms.c: Do s/SLASHSLASH_is_SLASH/SLASHSLASH_IS_SLASH/g.
7774 Also, don't bother checking if SLASHSLASH_IS_SLASH is defined.
7775
7776 2010-03-02 Thien-Thi Nguyen <[email protected]>
7777
7778 [build] Move "bad wait if SIGCHLD ignored" check to configure.in.
7779
7780 * rcsfnms.c: Do s/bad_wait_if_SIGCHLD_ignored/BAD_WAIT_IF_SIGCHLD_IGNORED/g.
7781 * rcsutil.c: Likewise.
7782 * conf.sh: Remove "bad wait if SIGCHLD ignored" check.
7783
7784 2010-03-02 Thien-Thi Nguyen <[email protected]>
7785
7786 [build] Move mmap-related checks to configure.in.
7787
7788 * rcslex.c: Do s/has_madvise/defined HAVE_MADVISE/g; do
7789 s/has_mmap/defined HAVE_MMAP/g; do s/mmap_signal/MMAP_SIGNAL/g.
7790 * rcsutil.c: Likewise.
7791 * rcsbase.h: Likewise, but if `MMAP_SIGNAL'
7792 is 0, #undef `HAVE_MMAP', `HAVE_MADVISE' first.
7793 * conf.sh: Remove mmap-related checks.
7794
7795 2010-03-02 Thien-Thi Nguyen <[email protected]>
7796
7797 [build] Move "bad rename" checks to configure.in.
7798
7799 * rcsedit.c: Do s/bad_a_rename/BAD_A_RENAME/g;
7800 do s/bad_b_rename/BAD_B_RENAME/g.
7801 * conf.sh: Remove "bad rename" checks.
7802
7803 2010-03-01 Thien-Thi Nguyen <[email protected]>
7804
7805 [build] Move `sys_siglist' check to configure.in.
7806
7807 * rcsbase.h (sys_siglist): Remove array decl.
7808 * rcsutil.c: Do s/has_sys_siglist/defined HAVE_SYS_SIGLIST/g.
7809 * conf.sh: Remove `sys_siglist' check, and also
7810 for supporting shell vars `has_signal', `has_psignal'.
7811
7812 2010-03-01 Thien-Thi Nguyen <[email protected]>
7813
7814 [build] Move "siginfo_t .si_errno" check to configure.in.
7815
7816 * rcsutil.c: Do s/has_si_errno/defined HAVE_SI_ERRNO/g.
7817 * conf.sh: Remove "siginfo_t .si_errno" check.
7818
7819 2010-03-01 Thien-Thi Nguyen <[email protected]>
7820
7821 [build] Move "unlink on unwritable files" check to configure.in.
7822
7823 * rcsbase.h: Do s/bad_unlink/BAD_UNLINK/g.
7824 * rcsedit.c: Likewise.
7825 * conf.sh: Remove "unlink on unwritable files" check.
7826
7827 2010-03-01 Thien-Thi Nguyen <[email protected]>
7828
7829 [build] Move "fopen w+ truncates" check to configure.in.
7830
7831 * rcsedit.c: Do s/bad_fopen_wplus/BAD_FOPEN_WPLUS/g.
7832 * conf.sh: Remove "fopen w+ truncates" check.
7833
7834 2010-02-28 Thien-Thi Nguyen <[email protected]>
7835
7836 [build] Move "signal zaps handler" check to configure.in.
7837
7838 * rcsutil.c: Do s/sig_zaps_handler/SIG_ZAPS_HANDLER/g.
7839 * conf.sh: Remove "signal zaps handler" check.
7840
7841 2010-02-28 Thien-Thi Nguyen <[email protected]>
7842
7843 [build] Move "fflush input" check to configure.in.
7844
7845 * ci.c: Do s/has_fflush_input/CAN_FFLUSH_IN/g.
7846 * conf.sh: Remove "fflush input" check.
7847
7848 2010-02-28 Thien-Thi Nguyen <[email protected]>
7849
7850 [build] Move "`write' after `creat (F, 0)'" check to configure.in.
7851
7852 * rcs.c: Do s/bad_creat0/BAD_CREAT0/g.
7853 * rcsedit.c: Likewise.
7854 * rcsgen.c: Likewise.
7855 * conf.sh: Remove "write after creat0 fails" check.
7856
7857 2010-02-28 Thien-Thi Nguyen <[email protected]>
7858
7859 [build] Move `psiginfo' check to configure.in.
7860
7861 * rcsutil.c: Do s/has_psiginfo/defined HAVE_PSIGINFO/g.
7862 * conf.sh: Remove check for `psiginfo'.
7863
7864 2010-02-28 Thien-Thi Nguyen <[email protected]>
7865
7866 [build] Drop support for "spawn" (fork(2) analog).
7867
7868 * rcsbase.h: For #if has_spawn FOO #else BAR #endif
7869 block, delete everything except BAR.
7870 * rcsutil.c [has_spawn] (redirect): Delete func.
7871 Also: delete #if has_spawn FOO #endif blocks;
7872 where there is `has_spawn', subtitute w/ 0 and simplify.
7873 * conf.sh: Don't define `has_spawn'.
7874
7875 2010-02-28 Thien-Thi Nguyen <[email protected]>
7876
7877 [build] Drop support for "map_fd" (HPUX mmap(2) precursor).
7878
7879 * rcsbsae.h (maps_memory): Do s/has_map_fd/0/.
7880 * rcslex.c [has_map_fd] (map_fd_deallocate): Delete func.
7881 (fd2RILE) [has_map_fd]: Delete allocation sequence.
7882 * conf.sh: Don't check for "map_fd"; don't define `has_map_fd'.
7883
7884 2010-02-28 Thien-Thi Nguyen <[email protected]>
7885
7886 [int] Move check for proper `printf' "%.2" behavior to runtime.
7887
7888 * rcstime.c (proper_dot_2): New static func.
7889 (time2date): For #if has_printf_dot FOO #else BAR #endif
7890 blocks, replace with `proper_dot_2 (FOO, BAR)'.
7891 * conf.sh: Remove check for proper `printf' "%.2" behavior.
7892
7893 2010-02-28 Thien-Thi Nguyen <[email protected]>
7894
7895 [int] Presume <limits.h> defines `LONG_MAX'.
7896
7897 * conf.sh: Remove computation of `LONG_MAX'.
7898
7899 2010-02-28 Thien-Thi Nguyen <[email protected]>
7900
7901 [build] Move `sigblock' check to configure.in.
7902
7903 * rcsutil.c: Do s/has_sigblock/defined HAVE_SIGBLOCK/g;
7904 * conf.sh: Remove check for `sigblock'.
7905
7906 2010-02-28 Thien-Thi Nguyen <[email protected]>
7907
7908 [int] When using `sigblock', compute `sigmask' manually.
7909
7910 * rcsutil.c [has_sigblock] (setup_catchsig): Don't
7911 use `sigmask; instead, do the subtract and shift manually.
7912 * conf.sh: Remove computation of `sigmask'.
7913
7914 2010-02-28 Thien-Thi Nguyen <[email protected]>
7915
7916 [build] Move `sigaction' check to configure.in.
7917
7918 * rcsutil.c: Do s/has_sigaction/defined HAVE_SIGACTION/g.
7919 * conf.sh: Remove check for `sigaction'.
7920
7921 2010-02-28 Thien-Thi Nguyen <[email protected]>
7922
7923 [int] Presume `sigaction.sa_sigaction' is POSIX.
7924
7925 * rcsutil.c: For #if has_sa_sigaction FOO #else
7926 BAR #endif block, delete everything except FOO.
7927 * conf.sh: Remove check for `sigaction.sa_sigaction'.
7928
7929 2010-02-28 Thien-Thi Nguyen <[email protected]>
7930
7931 [build] Move `psignal' check to configure.in.
7932
7933 * rcsutil.c: Do s/has_psignal/defined HAVE_PSIGNAL/g.
7934 * conf.sh: Remove check for `psignal'.
7935
7936 2010-02-28 Thien-Thi Nguyen <[email protected]>
7937
7938 [int] Presume <utime.h> declares `struct utimbuf'.
7939
7940 * rcsbase.h [!has_utimbuf] (utimbuf): Delete struct decl.
7941 * conf.sh: Remove check for `struct utimbuf'.
7942
7943 2010-02-28 Thien-Thi Nguyen <[email protected]>
7944
7945 [int] Presume availability of `chmod'.
7946
7947 * ci.c: For #if bad_chmod_close FOO #else BAR #endif
7948 block, delete everything except BAR.
7949 * conf.sh: Remove check for `chmod'.
7950
7951 2010-02-28 Thien-Thi Nguyen <[email protected]>
7952
7953 [build] Move `seteuid', `setuid' checks to configure.in.
7954
7955 * rcsbase.h: Do s/has_seteuid/defined HAVE_SETEUID/g;
7956 do s/has_setuid/defined HAVE_SETUID/g.
7957 * ci.c: Likewise.
7958 * rcsedit.c: Likewise.
7959 * rcsutil.c: Likewise.
7960 * conf.sh: Remove checks for `seteuid', `setuid'.
7961
7962 2010-02-27 Thien-Thi Nguyen <[email protected]>
7963
7964 [build] Move `ftruncate' check to configure.in.
7965
7966 * ci.c: Do s/has_ftruncate/defined HAVE_FTRUNCATE/g.
7967 * conf.sh: Remove check for `ftruncate'.
7968
7969 2010-02-28 Thien-Thi Nguyen <[email protected]>
7970
7971 [build] Move `vfork', `fork' checks to configure.in.
7972
7973 * rcsbase.h: Do s/has_fork/defined HAVE_WORKING_FORK/g;
7974 do s/has_vfork/defined HAVE_WORKING_VFORK/g.
7975 * rcsutil.c: Likewise.
7976 * conf.sh: Remove checks for `vfork', `fork'.
7977 Do s/has_fork/defined HAVE_WORKING_FORK/g.
7978
7979 2010-02-27 Thien-Thi Nguyen <[email protected]>
7980
7981 [build] Move `waitpid' check to configure.in.
7982
7983 * rcsfnms.c: Do s/has_waitpid/defined HAVE_WAITPID/g.
7984 * rcsutil.c: Likewise.
7985 * conf.sh: Remove check for `waitpid'.
7986
7987 2010-02-27 Thien-Thi Nguyen <[email protected]>
7988
7989 [build] Use `HAVE_SIGNAL_H' directly.
7990
7991 * rcsbase.h: Do s/has_signal/defined HAVE_SIGNAL_H/g.
7992 * rcsutil.c: Likewise.
7993 * conf.sh: Don't propagate `has_signal' to conf.h.
7994
7995 2010-02-27 Thien-Thi Nguyen <[email protected]>
7996
7997 [build] Move `mktemp' check to configure.in.
7998
7999 * rcsedit.c: Do s/has_mktemp/defined HAVE_MKTEMP/g.
8000 * rcsfnms.c: Likewise.
8001 * conf.sh: Remove check for `mktemp'.
8002
8003 2010-02-27 Thien-Thi Nguyen <[email protected]>
8004
8005 [build] Move `getuid', `getpwuid' checks to configure.in.
8006
8007 * rcsbase.h: Do s/has_getuid/defined HAVE_GETUID/g.
8008 * ci.c: Likewise.
8009 * rcsutil.c: Likewise; also s/has_getpwuid/defined HAVE_GETPWUID/g.
8010 * conf.sh: Remove checks for `getuid', `getpwuid'.
8011
8012 2010-02-27 Thien-Thi Nguyen <[email protected]>
8013
8014 [build] Move `fchmod' check to configure.in.
8015
8016 * ci.c: Do s/if has_fchmod/ifdef HAVE_FCHMOD/g.
8017 * rcsedit.c: Likewise.
8018 * conf.sh: Remove check for `fchmod'.
8019
8020 2010-02-27 Thien-Thi Nguyen <[email protected]>
8021
8022 [build] Move `getcwd', `getwd' check to configure.in.
8023
8024 * rcsfnms.c: Do s/has_getcwd/defined HAVE_GETCWD/g;
8025 do s/has_getwd/defined HAVE_GETWD/g.
8026 * rcsbase.h (getcwd, getwd): Delete func decls.
8027 * conf.sh: Remove checks for `getcwd', `getwd'.
8028
8029 2010-02-27 Thien-Thi Nguyen <[email protected]>
8030
8031 [build] Move `readlink' check to configure.in; use _POSIX_SYMLOOP_MAX.
8032
8033 * rcsedit.c: Do s/#if has_readlink/#ifdef HAVE_READLINK/g.
8034 [HAVE_READLINK] (resolve_symlink): Use `_POSIX_SYMLOOP_MAX'.
8035 Also, assume `EINVAL' for error-on-non-symlink situation.
8036 * conf.sh: Remove "check" for <sys/param.h>; remove check
8037 for `readlink' and its error-on-non-symlink return value.
8038
8039 2010-02-27 Thien-Thi Nguyen <[email protected]>
8040
8041 [build] Move a mass of boilerplate from conf.sh to rcsbase.h.
8042
8043 In the process, we also remove (by selectively not copying)
8044 redundant func decls meant to augment missing entries in
8045 <stdio.h>, <stdlib.h>, <string.h>, <time.h>.
8046
8047 * rcsbase.h: Add boilerplate code.
8048 * conf.sh: Delete eof boilerplate; don't bother doing the
8049 "Comment out lines in a.ha that the compiler rejects" step.
8050
8051 2010-02-27 Thien-Thi Nguyen <[email protected]>
8052
8053 [build] Move checks for missing type definitions to configure.in.
8054
8055 * conf.sh Remove checks for missing type definitions;
8056 instead, grep auto-sussed.h directly.
8057
8058 2010-02-27 Thien-Thi Nguyen <[email protected]>
8059
8060 [int] Presume `fread' rv and arg types are both `size_t'.
8061
8062 * rcslex.c (Igetmore): Use `size_t' and `fread' directly.
8063 * rcsutil.c (fastcopy): Likewise.
8064 (awrite): Use `fwrite' directly.
8065 * rcsbase.h (Fread, Fwrite): Delete macros.
8066 * conf.sh: Remove checks for `fread' rv type, arg type.
8067
8068 2010-02-27 Thien-Thi Nguyen <[email protected]>
8069
8070 [build] Presume <stdio.h> provides `rename', `strchr', `strrchr'.
8071
8072 * rcsedit.c [!has_rename] (do_link): Delete macro, func.
8073 (chnamemod): Move code out of #if has_rename block,
8074 deleting #else block as well; simplify #if expression.
8075 * conf.sh: Remove checks for `rename', `strchr', `strrchr'.
8076
8077 2010-02-26 Thien-Thi Nguyen <[email protected]>
8078
8079 [build] Assume signal handlers return `void'.
8080
8081 * rcsutil.c: Do s/signal_type/void/g.
8082 * conf.sh: Remove check for signal handler rv type.
8083 Also, remove checks for kill(2); replace
8084 callers with use `raise (getpid (), ...)'.
8085
8086 2010-02-26 Thien-Thi Nguyen <[email protected]>
8087
8088 [build] Presume availability of `fputs'.
8089
8090 * rcslex.c (aputs): Move code out
8091 of #if has_fputs; delete #else block.
8092 * conf.sh: Remove check for `fputs'.
8093
8094 2010-02-26 Thien-Thi Nguyen <[email protected]>
8095
8096 [build] Move checks for GCC __attribute__ handling to configure.in
8097
8098 * conf.sh: Remove checks for GCC attributes `noreturn' and
8099 `format_printf'; use `GCC_HAS_ATTRIBUTE_NORETURN' and
8100 `GCC_HAS_ATTRIBUTE_FORMAT' from auto-sussed.h directly.
8101
8102 2010-02-26 Thien-Thi Nguyen <[email protected]>
8103
8104 [build] Assume `EXIT_FAILURE' works.
8105
8106 * conf.sh: Remove check for `EXIT_FAILURE'.
8107
8108 2010-02-26 Thien-Thi Nguyen <[email protected]>
8109
8110 [build] Presume availability of `vfprintf'.
8111
8112 * rcslex.c (fvfprintf): Move code in #if has_vfprintf
8113 block up; delete #else block.
8114 * conf.sh: Remove checks for `vfprintf', `_doprintf', `_doprnt'.
8115
8116 2010-02-26 Thien-Thi Nguyen <[email protected]>
8117
8118 [int] Assume `malloc' returns `void *'.
8119
8120 * rcsbase.h: Do s/malloc_type/void */g.
8121 * rcsfnms.c: Likewise.
8122 * rcsutil.c: Likewise.
8123 * conf.sh: Remove check for `malloc' rv type.
8124
8125 2010-02-26 Thien-Thi Nguyen <[email protected]>
8126
8127 [int] Assume `closedir' (from <dirent.h>) returns `int'.
8128
8129 * rcsclean.c [HAVE_DIRENT_H]: #include <dirent.h>.
8130 (get_directory): For both func decl and function definition, move
8131 out of #if has_dirent block and into "ifdef HAVE_DIRENT_H" block.
8132 Also, assume unconditionally that `closedir' returns `int'.
8133 (main): Use #ifdef HAVE_DIRENT_H instead of #if has_dirent.
8134 * conf.sh: Remove checks for <dirent.h>, `closedir' rv.
8135
8136 2010-02-26 Thien-Thi Nguyen <[email protected]>
8137
8138 [build] Presume availability of `memcmp', `memcpy', `memmove'.
8139
8140 * rcsedit.c (movelines): Move #define to top-level out of
8141 "#if has_memmove" block, deleting the #else /*!has_memmove */ block.
8142 * rcsutil.c [!has_memcmp] (memcmp): Delete func.
8143 [!has_memcpy] (memcpy): Likewise.
8144 * conf.sh: Remove checks for `memcmp', `memcpy', `memmove'.
8145
8146 2010-02-26 Thien-Thi Nguyen <[email protected]>
8147
8148 [build] Move check for system headers into configure.in.
8149
8150 * conf.sh: Arrange to #include unconditionally <sys/types.h>,
8151 <sys/stat.h>, <stdlib.h>, <string.h>. Convert checks for
8152 system headers from compiler-based to grep auto-sussed.h.
8153 Likewise for <sys/param.h>; re-#define/use HAVE_SYS_PARAM_H.
8154 Remove handling for <errno.h> that doesn't declare `errno'.
8155
8156 2010-02-26 Thien-Thi Nguyen <[email protected]>
8157
8158 [int] To return from `main', use `return' directly.
8159
8160 * ci.c (main): Use `return', not `exitmain'.
8161 * co.c (main): Likewise.
8162 * ident.c (main): Likewise.
8163 * merge.c (main): Likewise.
8164 * rcs.c (main): Likewise.
8165 * rcsclean.c (main): Likewise.
8166 * rcsdiff.c (main): Likewise.
8167 * rcskeep.c (main): Likewise.
8168 * rcslex.c (main): Likewise.
8169 * rcsmerge.c (main): Likewise.
8170 * rcsrev.c (main): Likewise.
8171 * rcssyn.c (main): Likewise.
8172 * rlog.c (main): Likewise.
8173 * conf.sh: Remove section probing validity of
8174 `return' from `main'. Also, do s/exitmain/return/g.
8175
8176 2010-02-26 Thien-Thi Nguyen <[email protected]>
8177
8178 [int] Add braces to disambiguate `else' clause.
8179
8180 * ci.c (removelock): Add braces to disambiguate `else'.
8181 * ident.c (main): Likewise.
8182 * rcs.c (dolocks, setlock, rcs_setstate): Likewise.
8183 * rcsdiff.c (main) [DIFF_L]: Likewise.
8184 * rcsedit.c (keyreplace, addlock, addsymbol, dorewrite): Likewise.
8185 * rcsgen.c (getsstdin): Likewise.
8186 * rcsrev.c (fexpandsym): Likewise.
8187 * rlog.c (putadelta): Likewise.
8188
8189 2010-02-26 Thien-Thi Nguyen <[email protected]>
8190
8191 [build] Presume availability of <stdarg.h>.
8192
8193 * rcsgen.c (yesorno): Use `va_start' directly.
8194 * rcslex.c (error, rcserror, workerror, fatserror, faterror)
8195 (rcsfaterror, warn, rcswarn, workwarn, diagnose, aprintf): Likewise.
8196 * rcsutil.c (run): Likewise.
8197 * conf.sh: Remove section probing <stdarg.h>;
8198 arrange to #include <stdarg.h> unconditionally in conf.h.
8199
8200 2010-02-26 Thien-Thi Nguyen <[email protected]>
8201
8202 [int] Define `cmdid', `main' directly.
8203
8204 * ci.c (cmdid, main): Define directly.
8205 * co.c (cmdid, main): Likewise.
8206 * ident.c (cmdid, main): Likewise.
8207 * merge.c (cmdid, main): Likewise.
8208 * rcs.c (cmdid, main): Likewise.
8209 * rcsclean.c (cmdid, main): Likewise.
8210 * rcsdiff.c (cmdid, main): Likewise.
8211 * rcsmerge.c (cmdid, main): Likewise.
8212 * rlog.c (cmdid, main): Likewise.
8213 * rcsbase.h (mainProg): Delete macro.
8214
8215 2010-02-26 Thien-Thi Nguyen <[email protected]>
8216
8217 [int] Say "register int c", not just "register c".
8218
8219 * rcxlex.c (nextlex, readstring)
8220 (printstring, savestring): Say "register int c".
8221 * rcsedit.c (copystring, expandline): Likewise.
8222 * rcs.c (getaccessor, getstates): Likewise.
8223 * rcsdiff.c (main): Likewise.
8224 * rlog.c (getauthor): Likewise.
8225
8226 2010-02-26 Thien-Thi Nguyen <[email protected]>
8227
8228 [int] Use Standard C syntax for function definitions.
8229
8230 * ci.c: Throughout, use Standard C syntax for function definitions.
8231 * co.c: Likewise.
8232 * ident.c: Likewise.
8233 * maketime.c: Likewise.
8234 * merge.c: Likewise.
8235 * merger.c: Likewise.
8236 * partime.c: Likewise.
8237 * rcs.c: Likewise.
8238 * rcsclean.c: Likewise.
8239 * rcsdiff.c: Likewise.
8240 * rcsedit.c: Likewise.
8241 * rcsfcmp.c: Likewise.
8242 * rcsfnms.c: Likewise.
8243 * rcsgen.c: Likewise.
8244 * rcskeep.c: Likewise.
8245 * rcskeys.c: Likewise.
8246 * rcslex.c: Likewise.
8247 * rcsmerge.c: Likewise.
8248 * rcsrev.c: Likewise.
8249 * rcssyn.c: Likewise.
8250 * rcstime.c: Likewise.
8251 * rcsutil.c: Likewise.
8252 * rlog.c: Likewise.
8253
8254 2010-02-26 Thien-Thi Nguyen <[email protected]>
8255
8256 [int] Use ANSI prototypes.
8257
8258 Abbreviations:
8259 D: "Don't use `P (PROTOTYPE)', just use PROTOTYPE directly."
8260 P: "For #if has_prototypes FOO #else BAR #endif blocks,
8261 replace block with simply FOO."
8262
8263 * maketime.h (__MAKETIME_P): Delete macro;
8264 update callers to use its arg directly.
8265 * partime.h (__PARTIME_P): Likewise.
8266 * ci.c: D; P.
8267 * co.c: D.
8268 * ident.c: D.
8269 * maketime.c: D.
8270 * merge.c: D.
8271 * merger.c: D.
8272 * partime.c: D.
8273 * rcs.c: D.
8274 * rcsbase.h: D.
8275 * rcsclean.c: D.
8276 * rcsdiff.c: D.
8277 * rcsedit.c: D; P.
8278 * rcsfcmp.c: D.
8279 * rcsfnms.c: D.
8280 * rcsgen.c: D; P.
8281 * rcskeep.c: D.
8282 * rcslex.c: D; P.
8283 * rcsrev.c: D.
8284 * rcssyn.c: D.
8285 * rcstime.c: D.
8286 * rcsutil.c: D; P.
8287 * rlog.c: D.
8288 * conf.sh: Don't compute `has_prototypes' or `P'.
8289 Also fix buglet: Use `$ech' instead of `echo'.
8290
8291 2010-02-25 Thien-Thi Nguyen <[email protected]>
8292
8293 [build] Move authoritative version number into configure.in.
8294
8295 * rcsbase.h: #include "auto-sussed.h".
8296 (RCS_version_string): Delete decl.
8297 (COMMAND_VERSION): New #define.
8298 * ident.c (main): Use `COMMAND_VERSION'.
8299 * merge.c (main): Likewise.
8300 * rcsutil.c (setRCSversion): Likewise.
8301 * Makefile.in (SOURCE): Remove version.c.
8302 (ci, co, ident, merge, rlog, rcs, rcsclean)
8303 (rcsdiff, rcsmerge, OBJECT): Remove `version$o'.
8304 * version.c: Delete file.
8305
8306 2010-02-25 Thien-Thi Nguyen <[email protected]>
8307
8308 [build] Drop "make lint" support.
8309
8310 * rcsbase.h [RCS_lint] (lintalloc): Delete var.
8311 [RCS_lint] (mainProg, ftnalloc, tnalloc, trealloc, tfree):
8312 Remove macro definitions; promoting non-RCS_lint to top-level.
8313 * ci.c [RCS_lint] (exiterr): Delete #define.
8314 * co.c: Likewise.
8315 * ident.c: Likewise.
8316 * merge.c: Likewise.
8317 * rcsclean.c: Likewise.
8318 * rcsdiff.c: Likewise.
8319 * rcsmerge.c: Likewise.
8320 * rcsutil.c: Likewise.
8321 * rlog.c: Likewise.
8322 * rcs.c [RCS_lint] (cmdid, go, main):
8323 Delete var, #define, and func, respectively.
8324 * Makefile.in (lint): Delete target.
8325
8326 2010-02-25 Thien-Thi Nguyen <[email protected]>
8327
8328 Don't coddle compilers that require `(void) EXPRESSION;'.
8329
8330 * conf.sh: Remove check for `(void) EXPRESSION;' requirement.
8331 Don't #define `VOID'.
8332 * conf.heg: Don't #define `VOID'.
8333 * ci.c: Throughout, remove "VOID " in front of expressions.
8334 * co.c: Likewise.
8335 * ident.c: Likewise.
8336 * merger.c: Likewise.
8337 * rcs.c: Likewise.
8338 * rcsbase.h: Likewise.
8339 * rcsclean.c: Likewise.
8340 * rcsdiff.c: Likewise.
8341 * rcsedit.c: Likewise.
8342 * rcsfcmp.c: Likewise.
8343 * rcsfnms.c: Likewise.
8344 * rcskeep.c: Likewise.
8345 * rcslex.c: Likewise.
8346 * rcstime.c: Likewise.
8347 * rcsutil.c: Likewise.
8348 * rlog.c: Likewise.
8349
8350 2010-02-25 Thien-Thi Nguyen <[email protected]>
8351
8352 Drop RCS keyword `Id' from code.
8353
8354 * rcsbase.h (RCSBASE, libId): Delete #define:s.
8355 (mainProg): Don't take 3rd arg; don't define `baseid', lib id string.
8356 * ci.c: Update `mainProg' call.
8357 * co.c: Likewise.
8358 * ident.c: Likewise.
8359 * merge.c: Likewise.
8360 * rcs.c: Likewise.
8361 * rcsclean.c: Likewise.
8362 * rcsdiff.c: Likewise.
8363 * rcsmerge.c: Likewise.
8364 * rlog.c: Likewise.
8365 * merger.c: Delete `libId' call.
8366 * rcsedit.c: Likewise.
8367 * rcsfcmp.c: Likewise.
8368 * rcsfnms.c: Likewise.
8369 * rcsgen.c: Likewise.
8370 * rcskeep.c: Likewise.
8371 * rcskeys.c: Likewise.
8372 * rcslex.c: Likewise.
8373 * rcsmap.c: Likewise.
8374 * rcsrev.c: Likewise.
8375 * rcssyn.c: Likewise.
8376 * rcstime.c: Likewise.
8377 * rcsutil.c: Likewise.
8378 * conf.sh (Id): Delete var.
8379 * maketime.c (maketId): Likewise.
8380 * partime.c (partimeId): Likewise.
8381
8382 2010-02-24 Thien-Thi Nguyen <[email protected]>
8383
8384 [admin] Move install-sh, mkinstalldirs into new dir build-aux/.
8385
8386 * Makefile.in (bauxdir): New var.
8387 (installdirs): Use $(bauxdir).
8388
8389 Fri Jun 16 06:19:24 1995 Paul Eggert <[email protected]>
8390
8391 * version.c: Version 5.7 released.
8392 * Makefile.in (TESTPREFIX): Remove; replaced with $(srcdir)/.
8393 * rcsutil.c (catchsig): Remove `return'.
8394 * Makefile.in, ci.c, co.c, conf.sh, ident.c, maketime.c, maketime.h,
8395 merge.c, merger.c, partime.c, partime.h, rcs.c, rcsbase.h, rcsclean.c,
8396 rcsdiff.c, rcsedit.c, rcsfcmp.c, rcsfnms.c, rcsgen.c, rcskeep.c,
8397 rcskeys.c, rcslex.c, rcsmap.c, rcsmerge.c, rcsrev.c, rcssyn.c, rcstest,
8398 rcstime.c, rcsutil.c, rlog.c: Update FSF address.
8399
8400 Mon Jun 5 08:30:02 1995 Paul Eggert <[email protected]>
8401
8402 * version.c (RCS_version_string): Update to 5.6.8.1 (beta).
8403
8404 Fri Jun 2 18:19:00 1995 Paul Eggert <[email protected]>
8405
8406 * rcsutil.c (catchsigaction):
8407 New name for `catchsig', for sa_sigaction signature.
8408 Use nRCS even if !has_psiginfo, to remove unused variable warning.
8409 (setup_catchsig): Use sa_sigaction only if has_sa_sigaction.
8410 Use ENOTSUP only if defined.
8411 * conf.sh, conf.heg (has_sa_sigaction): New configuration variable.
8412
8413 Thu Jun 1 16:23:43 1995 Paul Eggert <[email protected]>
8414
8415 * version.c (RCS_version_string): Update to 5.6.8 (beta).
8416
8417 * Makefile.in:
8418 Renamed from Makefile; autoconf now preprocesses this file.
8419 Rewrite to follow GNU makefile standards.
8420 (clean): `rm core*' -> `rm core core.* *.core', for BSD/OS 2.0.
8421
8422 * ci.c (main): Add -kb. Use `cmpdate', not `cmpnum', to compare dates.
8423 Don't worry about errno after ftruncate fails.
8424 Fix input file rewinding bug when large_memory && !maps_memory
8425 and checking in a branch tip.
8426
8427 (fixwork): Fall back on chmod if fchmod fails; it might be ENOSYS.
8428
8429 * co.c (main, preparejoin):
8430 Pass argument instead of using `join' static variable.
8431 (main): Add -kb.
8432
8433 * ident.c (exiterr, reportError):
8434 New functions, needed for DOS and OS/2 ports.
8435 (scanfile): Use them.
8436
8437 * rcsdiff.c (main):
8438 Pass "--binary" if -kb and if --binary makes a difference.
8439 Don't treat + options specially.
8440
8441 * rcsmerge.c (main):
8442 Report an error if -kb, so don't worry about binary stdout.
8443 Punctuate messages properly. Rewrite to avoid `goto end'.
8444
8445 * rcs.c (main):
8446 Warn if no options were given. Punctuate messages properly.
8447
8448 (sendmail): Rewind mailmess before flushing it.
8449 Output another warning if mail should work but fails.
8450
8451 (buildeltatext): Pass "--binary" if -kb and if --binary is needed.
8452
8453 * merger.c (normalize_arg): Don't treat + options specially.
8454 (merge): Don't make -A the default; always use -E.
8455 Always open working file in text mode.
8456
8457 * rlog.c (struct rcslockers): Renamed from `struct lockers'.
8458 (getnumericrev): Return error indication instead of ignoring errors.
8459 (main): Check it. Don't use dateform.
8460 (recentdate, extdate): cmpnum -> cmpdate
8461
8462 * rcsclean.c (unlock): struct lock -> struct rcslock
8463
8464 * rcsedit.c (dirtpname): No longer external.
8465 (do_link): Simplify logic.
8466 (finisheditline, finishedit): Replace Iseek/Itell with definiens.
8467 (fopen_update_truncate): Replace `#if' with `if'.
8468 (keyreplace, makedirtemp): dirlen(x) -> basefilename(x)-x.
8469
8470 (edit_string): Fix bug: if !large_memory, a bogus trailing `@' was
8471 output at the end of incomplete lines.
8472
8473 (keyreplace): Do not assume that seeking backwards
8474 at the start of a file will fail; on some systems it succeeds.
8475 Convert C- and Pascal-style comment starts to ` *' in comment leader.
8476
8477 (rcswriteopen): Use fdSafer to get safer file descriptor.
8478 Open RCS file with FOPEN_RB.
8479
8480 (chnamemod): Work around bad_NFS_rename; don't ignore un_link result.
8481 Fall back on chmod if fchmod fails, since it might be ENOSYS.
8482
8483 (aflush): Move to rcslex.c.
8484
8485 * rcsfcmp.c (rcsfcmp): Add -kb support.
8486
8487 * rcsfnms.c (basefilename): Renamed from basename to avoid collisions.
8488 (dirlen): Remove (for similar reasons).
8489 (rcsreadopen): Open with FOPEN_RB.
8490 (SLASHSLASH_is_SLASH): Default is 0.
8491 (getcwd): Work around bad_wait_if_SIGCHLD_ignored bug.
8492
8493 * rcsgen.c (putadmin): Open RCS file with FOPEN_WB.
8494
8495 * rcskeep.c (getoldkeys): Don't panic if a Name: is empty.
8496
8497 * rcslex.c:
8498 (map_fd_deallocate, mmap_deallocate, read_deallocate,
8499 nothing_to_deallocate): New functions.
8500 (Iclose): If large_memory and maps_memory, use them to deallocate.
8501 (fd2RILE): Use map_fd if available.
8502 If one mapping method fails, try the next instead of giving up;
8503 if they all fail, fall back on ordinary read.
8504 Work around bug: root mmap over NFS succeeds, but accessing dumps core.
8505 Use MAP_FAILED macro for mmap failure, and `char *' instead of caddr_t.
8506 (advise_access): Use madvise only if this instance used mmap.
8507 (Iopen): Use fdSafer to get safer file descriptor.
8508 (aflush): Moved here from rcsedit.c.
8509
8510 * rcsrev.c (cmpdate, normalizeyear):
8511 New functions work around MKS incompatibility.
8512 (cmpnum, compartial): s[d] -> *(s+d) to work around Cray compiler bug.
8513 (genrevs, genbranch): cmpnum -> cmpdate
8514
8515 * rcssyn.c (expand_names): Add "b" for -kb.
8516 (getdelta): Don't strip leading "19" from MKS dates; see cmpdate.
8517
8518 * rcsutil.c (catchsig, restoreints, setup_catchsig):
8519 Use SA_SIGINFO, not has_psiginfo,
8520 to determine whether to use SA_SIGINFO feature,
8521 but also check at runtime whether the feature works.
8522 (catchsig): If an mmap_signal occurs, report the affected file name.
8523 (unsupported_SA_SIGINFO, accessName): New variables.
8524 (setup_catchsig): If using SA_SIGINFO, use sa_sigaction not sa_handler.
8525 If SA_SIGINFO fails, fall back on sa_handler method.
8526
8527 (readAccessFilenameBuffer, dupSafer, fdSafer, fopenSafer): New fns.
8528 (concatenate): Remove.
8529
8530 (runv): Work around bad_wait_if_SIGCHLD_ignored bug.
8531 Remove reference to OPEN_O_WORK.
8532
8533 * maketime.h (adjzone, str2time):
8534 Time zones are now (long) seconds, not (int) minutes.
8535 (const): Remove.
8536
8537 * maketime.c (difftm):
8538 Use smaller expressions, to avoid confusing buggy compilers.
8539 (adjzone, str2time): Time zones are (long) seconds, not (int) minutes.
8540
8541 * partime.c (zone_names):
8542 Add "jdt", since Japan might use it. "nrt" -> "nrft".
8543 Use special markers 1 and -1, not TM_LOCAL_ZONE and TM_UNDEFINED_ZONE,
8544 to avoid integer overflow now that time zones are seconds, not minutes.
8545 (parse_decimal): Round to even.
8546 (parzone): Time zones are now (long) seconds, not (int) minutes,
8547 as allowed by ISO 8601.
8548
8549 * partime.h (TM_UNDEFINED_ZONE, zone):
8550 Now (long) seconds, not (int) minutes.
8551 (const): Remove.
8552
8553 * rcstime.c (dateform): Remove.
8554 (zone_offset, str2time_checked, zone_set, date2str):
8555 Time zones are now (long) seconds, not (int) minutes.
8556 (date2str): Use `-08' style time zone, not `-0800', for ISO 8601.
8557
8558 * conf.sh: `#!/bin/sh' -> `#! /bin/sh'; some picky hosts require this.
8559 Ensure we don't run as root; it would yield the wrong answers.
8560 Ensure the C compiler works on a trivial program first.
8561 Rename incoming environment variables to follow GNU makefile standards.
8562 Use $PREPARE_CC consistently.
8563
8564 (_POSIX_C_SOURCE, <mach/mach.h>, <net/errno.h>, has_map_fd,
8565 bad_NFS_rename, has_si_errno, bad_wait_if_SIGCHLD_ignored):
8566 New configuration options.
8567
8568 (has_sys_dir_h, text_equals_binary_stdio, text_work_stdio,
8569 FOPEN_R, FOPEN_W, FOPEN_WPLUS, has_caddr_t, DIFF3_A): Remove.
8570
8571 (O_BINARY, OPEN_O_WRONLY, FOPEN_RB, FOPEN_R_WORK, FOPEN_WB,
8572 FOPEN_W_WORK, FOPEN_WPLUS_WORK): New macros, for -kb support.
8573 (bad_fopen_wplus): Use "w+", not FOPEN_WPLUS.
8574
8575 (has_const, has_volatile): Rename test functions to avoid collisions.
8576 (has_fchmod, has_mmap, has_vfork): fileno(stdio) -> STDIN_FILENO.
8577 (has_fflush_input): Don't trust fflush's return value when testing.
8578 (has_mmap): Use MAP_FAILED if available. Look at 0th byte, not last.
8579 Define to 0 if HP-UX 8.07 or 9.*, or SunOS 5.4 before patch 10.
8580 (has_psiginfo): Handler's 3rd arg is void *, as per Posix 1003.1b-1993.
8581 (has_varargs): Don't set if has_stdarg.
8582 (large_memory): Also define to 1 if has_map_fd.
8583 (mmap_signal): Don't try to deduce it if creat yields ETXTBSY.
8584
8585 * conf.heg: Adjust to latest conf.sh.
8586
8587 * rcsbase.h (SIZEABLE_PATH):
8588 Don't depend on PATH_MAX: it's not worth configuring.
8589 (Ioffset_type, BINARY_EXPAND, MIN_UNEXPAND, MIN_UNCHANGED_EXPAND):
8590 New macros.
8591 (maps_memory): New macro; replaces many instances of `has_mmap'.
8592 (cacheptr): Renamed from cachetell.
8593 (struct RILE): New alternate name for RILE; the type is now recursive.
8594 (deallocate): New member for RILE, used for generic deallocation.
8595 (cacheunget_): No longer take a failure arg; just call Ierror.
8596 (struct rcslock): Renamed from struct lock, to avoid collisions with
8597 system headers on some hosts. All users changed.
8598 (basefilename): Renamed from basename, likewise.
8599 (dirtpname): Remove; no longer external.
8600 (dirlen, dateform): Remove; no longer used.
8601 (cmpdate, fopenSafer, fdSafer, readAccessFilenameBuffer): New fns.
8602 (zonelenmax): Increase to 9 for full ISO 8601 format.
8603 (catchmmapints): Depend on has_NFS.
8604
8605 * rcstest: Add -kb test.
8606 `#!/bin/sh' -> `#! /bin/sh'; some picky hosts require this.
8607 (ALL_CFLAGS): Renamed from CFLAGS.
8608 (LIBS): Renamed from LDLIBS.
8609 (CL): Add explicit `-o a.out'.
8610
8611 Thu Apr 14 06:55:24 1994 Paul Eggert <[email protected]>
8612
8613 * conf.sh: Relax test for puts. Improve test for mmap; don't
8614 rely on getpagesize, output better messages when it fails,
8615 don't assume you can mmap something larger than the file,
8616 output "SIGSEGV" if appropriate, add commentary.
8617
8618 Wed Apr 13 16:31:38 1994 Paul Eggert <[email protected]>
8619
8620 * version.c: now 5.6.7.4 (beta); intermediate versions were PC-related.
8621 * rcstime.c: Don't dump core if there's no zone.
8622 * rlog.c: Fix bug; `rlog -lxxx' inverted the sense of -l.
8623
8624 Sun Mar 20 04:52:58 1994 Paul Eggert <[email protected]>
8625
8626 * version.c: now 5.6.7 (beta)
8627
8628 * ci.c: Do not remove the lock when `ci -l' reverts.
8629 Do not generate a corrupted RCS file if the user modifies
8630 the working file while `ci' is running.
8631 * ci.c, co.c:
8632 Move buffer-flushes out of critical sections, as they aren't critical.
8633 * ci.c, co.c, merger.c, rcs.c, rcsbase.h, rcsdiff.c, rcsmerge.c,
8634 rcsutil.c: Specify subprocess input via file descriptor, not file name.
8635 * ci.c, co.c, rcs.c, rcsclean.c, rcsedit.c:
8636 Use ORCSerror to clean up after a fatal error.
8637
8638 * ident.c: Remove `exiting' from identExit.
8639
8640 * rcs.c, rcsgen.c: Flush stderr after prompt.
8641
8642 * rcsclean.c: Add void_closedir support.
8643
8644 * rlog.c: Emulate -V4's white space generation more precisely.
8645 -d'<DATE' now excludes DATE; the new syntax -d'<=DATE' includes it.
8646 * rlog.c, rcsgen.c: Work around SVR4 stdio performance bug.
8647
8648 * rcsbase.h: Add primitives for reading backwards from a RILE;
8649 this is needed to go back and find the $Log prefix.
8650
8651 * partime.c: Don't include rcsbase.h; you only need conf.h.
8652 Fix `am/pm' parsing bug. Update time zones.
8653
8654 * rcsedit.c, rcsfcmp.c:
8655 Normally calculate the $Log prefix from context, not from RCS file.
8656
8657 * rcsfcmp.c:
8658 Calculate line numbers correctly even if the $Log prefix contains \n.
8659
8660 * rcsfnms.c: Strip trailing SLASHes from TMPDIR; some systems need it.
8661
8662 * rcslex.c: Don't worry if madvise fails. Add Orewind.
8663
8664 * rcsutil.c: Move setmtime to rcsedit.c.
8665 Avoid messing with I/O buffers in the child process.
8666 Define dup in terms of F_DUPFD if it exists.
8667
8668 * Makefile: Make sure $(DESTBINDIR) exists before installing.
8669 Remove core* (for BSDI), RCS/a.*.
8670
8671 * conf.sh: Do errno checking before readlink checking.
8672 Check for GCC __attribute__ infelicities.
8673 Output a better error message for wait problems.
8674 Check for AIX 3.2.0 mmap bug. Update HP-UX test.
8675 Fix SLASHes typo. Add SEEK_CUR. Configure off_t, has_fflush_input.
8676 Improve test for __attribute__((noreturn)).
8677 * conf.heg: Adjust to latest conf.sh.
8678
8679 * rcstest: Port to BSD/386 1.1's /bin/sh brain damage.
8680 Test for new $Log behavior.
8681
8682 * co.c, merge.c, merger.c, rcs.c, rcsbase.h, rcsdiff.c, rcsedit.c,
8683 rcsfcmp.c, rcsfnms.c, rcsgen.c, rcskeep.c, rcslex.c, rcsmerge.c,
8684 rcsrev.c, rcssyn.c, rcsutil.c, rlog.c: Remove lint.
8685
8686 Tue Nov 9 17:55:29 1993 Paul Eggert <[email protected]>
8687
8688 * version.c: now 5.6.6 (beta)
8689 * merge.c, rcsclean.c, rcsutil.c, rlog.c:
8690 -V now prints version on stdout and exits.
8691 * ci.c, co.c, rcs.c, rcsdiff.c, rcsmerge.c:
8692 Likewise. Don't print usage twice.
8693 * Makefile: Add -Dhas_conf_h, maketime.h, partime.h, rcstime.c.
8694 ident wants version.o.
8695 * conf.heg, conf.sh: gcc doesn't do constant expressions in
8696 __attribute__((format(...))).
8697 * conf.sh: Quote $dots.
8698 * ident.c: Add -V.
8699 * maketime.c: Move RCS-specific stuff into rcstime.c.
8700 * maketime.h, partime.h, rcstime.c: New files.
8701 * partime.c: Complete rewrite from scratch.
8702 * rcsbase.h: Move RCS-specific time handling into rcstime.c.
8703 printf_string now takes two arguments, alas.
8704 * rcskeep.c: Use simpler time zone parsing strategy
8705 now that we're using ISO 8601 format.
8706 * rcslex.c: Fix `label: }' typo.
8707 * rcsrev.c: Fix format string typos.
8708
8709 Wed Nov 3 18:25:07 1993 Paul Eggert <[email protected]>
8710
8711 * version.c: Initial revision; now 5.6.5 (beta)
8712
8713 * ci.c, co.c, rcs.c, rcsdiff.c, rcsclean.c, rcsedit.c, rcsmerge.c,
8714 rcsrev.c, rlog.c: Add -z.
8715
8716 * ci.c: Don't subtract from RCS file timestamp even if -T.
8717 Scan for and use Name keyword if -k.
8718 * ci.c, rcs.c, rcsbase.h, rcsgen.c, rcslex.c, rcssyn.c:
8719 Don't discard ignored phrases.
8720 * ci.c, co.c, rcs.c, rcsbase.h, rcsclean.c, rcsdiff.c, rcsfnms.c,
8721 rcsgen.c, rcskeep.c, rcslex.c, rcsrev.c, rcssyn.c:
8722 Improve quality of diagnostics.
8723
8724 * co.c: Generate a value for the Name keyword.
8725 * co.c, rcsbase.h: Don't arbitrarily limit the number of joins.
8726
8727 * ident.c: Test for char == EOF, not char < 0.
8728
8729 * rcs.c: Don't lose track of -m or -t when there are no other changes.
8730
8731 * rcsdiff.c: Put revision numbers in -c output.
8732 * rcsdiff.c, rcsbase.h, rcsedit.c, rcskeys.c: Add Name keyword.
8733 * rcsdiff.c, rcsmerge.c: Pass -Vn to `co'.
8734 * rcsdiff.c, rcsmerge.c, rlog.c: Ignore -T.
8735
8736 * rcsmerge.c:
8737 Pass unexpanded revision name to `co', so that $Name works.
8738 * rcsmerge.c, rcsbase.h, merge.c, merger.c:
8739 Add -A, -E, -e. Allow up to three labels.
8740
8741 * rlog.c: Add -N.
8742
8743 * rcsbase.h: Remove `nil'. Improve quality of prototypes.
8744
8745 * partime.c: Simplify time zone table.
8746
8747 * rcsedit.c: If bad_unlink, ignore errno when unlink fails.
8748 Escape white space, $, and \ in keyword string file names.
8749 Don't output 2 spaces between date and time after Log.
8750
8751 * rcskeep.c: Scan for Name keyword.
8752
8753 * rcsfnms.c: Determine whether a file name is too long indirectly,
8754 by examining inode numbers, instead of trying to use operating system
8755 primitives like pathconf, which are not trustworthy in general.
8756 File names may now hold white space or $.
8757 Do not flatten ../X in pathnames; that may be wrong for symlinks.
8758 Add getabsname hook.
8759
8760 * rcsfcmp.c:
8761 Fix yet another off-by-one error when comparing Log string expansions.
8762
8763 * rcsrev.c: Add `namedrev' for Name support.
8764 Revision `.N' now stands for `D.N', where D is the default branch.
8765
8766 * rcssyn.c: Parse MKS dates; ignore \r in diff control lines.
8767
8768 * rcsutil.c: Use psiginfo and setreuid if available.
8769 Move date2str to maketime.c.
8770
8771 * Makefile: Fix DIFF3_A default.
8772
8773 * conf.sh: Update for RCS 5.6.5 (much better configuration messages).
8774 * conf.heg: Adjust to latest conf.sh.
8775
8776 * rcstest: Compile our own program instead of using `tr'.
8777 Use rlog to get UTC instead of relying on `date -u'.
8778 Test `Name' keyword.
8779
8780 * rcsfreeze.sh: Don't ignore RCS/.*,v files.
8781
8782 Tue Jun 29 17:03:43 1993 Paul Eggert <[email protected]>
8783
8784 * maketime.c: Add -z support. New function zone_set, date2str.
8785 str2time now has default_zone arg. Parenthesize to keep GCC happy.
8786
8787 Tue Jul 28 16:12:44 1992 Paul Eggert <[email protected]>
8788
8789 Version 5.6.4 (beta)
8790
8791 * ci.c: Add -i, -j. Check that working and RCS files are distinct.
8792 * ci.c, co.c, rcs.c, rcsclean.c, rcsdiff.c, rcsmerge.c, rcsutil.c,
8793 rlog.c: Add -V.
8794
8795 * co.c, rcsclean.c: Check that working and RCS files are distinct.
8796
8797 * rcs.c: rcs -l now asks whether you want to break the lock.
8798 Set RCS file's mode and time at right moment.
8799
8800 * rcsclean.c: Fix -n bugs.
8801
8802 * rcsdiff.c: Use co -M for better dates with traditional diff -c.
8803
8804 * rlog.c: Don't miss B.0 when handling branch B.
8805 Diagnose missing `,' in -r.
8806 * rlog.c, rcsedit.c, rcslex.c, rcsrev.c, rcssyn.c:
8807 Avoid `unsigned'; this avoids the ULONG_MAX/10 configuration problem.
8808 * rlog.c, rcsbase.h, rcsedit.c, rcsgen.c rcsfcmp.c, rcskeep.c, rcslex.c,
8809 rcssyn.c: Statement macro names now end in _.
8810
8811 * partime.c: Fix time zones again.
8812
8813 * rcsedit.c: Some hosts have readlink but not ELOOP.
8814 Preserve dates more systematically.
8815
8816 * rcsgen.c, rcsfnms.c: Be consistent about pathnames vs filenames.
8817
8818 * rcsfnms.c: Add .sty. .pl now implies Perl, not Prolog.
8819 Fix fdlock initialization bug. Check that $PWD is really ".".
8820
8821 * rcslex.c, rcsrev.c: Identifiers may now start with a digit and
8822 (unless they are symbolic names) may contain `.'.
8823
8824 * rcsutil.c: has_sigaction overrides sig_zaps_handler. Fix -M bug.
8825 Add mmap_signal, which minimizes signal handling for non-mmap hosts.
8826
8827 * Makefile: Add BINDIR. Update for GCC 2. Redo configuration scheme.
8828 Add rcsvers.c.
8829
8830 * conf.sh: Output more chatter to keep builders happy.
8831 Fix several portability bugs: fileno, readlink, readlink errno,
8832 HP-UX brain damage, execv, mmap, waitpid, same_file. Remove ULONG_MAX.
8833 * conf.heg: Adjust to latest conf.sh.
8834
8835 * rcstest: Test rcsclean. rm -f a.c more often.
8836 *'! 1.1.1.1') -> *!\ 1.1.1.1) to avoid some shell bugs.
8837 Set PWD unconditionally. Don't assume RCS knows date's time zone.
8838 Avoid `tr' if possible; it's not standardized well.
8839
8840 Sun May 31 08:29:18 1992 Paul Eggert <[email protected]>
8841
8842 * maketime.c:
8843 Complete rewrite from scratch, because we need to work even if
8844 the underlying implementation has leap seconds.
8845
8846 * partime.c: The special time zone LOCAL_TIME+1 now tells maketime
8847 that no zone was given.
8848
8849 Mon Feb 17 23:02:28 1992 Paul Eggert <[email protected]>
8850
8851 Version 5.6.3 (beta)
8852
8853 * ci.c, co.c, rcs.c, rcsbase.h, rcsclean.c, rcsedit.c, rcsutil.c:
8854 Add -T.
8855 * ci.c: `-rREV' now just specifies a revision REV;
8856 only bare `-r' reverts to default.
8857
8858 * rcsdiff.c: Output more readable context diff headers.
8859 Suppress needless checkout and comparison of identical revisions.
8860
8861 * maketime.c:
8862 When setting a file's modification time, set its access time to now.
8863
8864 * rcsbase.h, rcslex.c, rcsutil.c: Work around NFS mmap SIGBUS problem.
8865
8866 * rcsfnms.c: `a/RCS/b/c' is now an RCS file with an empty extension,
8867 not just `a/b/RCS/c'.
8868
8869 * conf.sh: Add has_utimbuf to avoid echo line length limit.
8870 Some sigactions don't allow 2nd arg of type struct sigaction const *.
8871 * conf.heg: Adjust to latest conf.sh.
8872
8873 * rcsfreeze.sh: Use `rcs -nN:' to simplify the code.
8874
8875 Mon Jan 27 16:42:53 1992 Paul Eggert <[email protected]>
8876
8877 Version 5.6.2 (beta)
8878
8879 * ci.c: Always unlock branchpoint if caller has a lock.
8880 * ci.c, conf.sh, rcsedit.c: Support bad_chmod_close.
8881 * ci.c, co.c, conf.sh, rcs.c, rcsbase.h, rcsclean.c, rcsedit.c,
8882 rcsfnms.c, rcsgen.c: Support bad_creat0.
8883 * ci.c, co.c, ident.c, merge.c, rcs.c, rcsbase.h, rcsclean.c,
8884 rcsdiff.c, rcsmerge.c, rlog.c, rcsutil.c: lint -> RCS_lint
8885
8886 * rcs.c: Add -M.
8887 Avoid invoking umask(); it's one less thing to configure.
8888
8889 * rcsdiff.c: Add GNU diff 1.15.2's new options.
8890
8891 * rlog.c: Don't duplicate unexpected_EOF's function.
8892
8893 * maketime.c: Fix day of week bug with dates after February 28, 2100.
8894
8895 * rcsfnms.c: Fix bug: Expand and Ignored weren't reinitialized.
8896 Avoid `char const c=ch;' compiler bug.
8897
8898 * rcsgen.c: Move put routines here from rcssyn.c.
8899 * rcssyn.c: Move put routines to rcsgen.c.
8900
8901 * rcsutil.c: Work around NFS mmap bug that leads to SIGBUS core dumps.
8902
8903 * Makefile: Add DESTRCSDIR. lint -> RCS_lint
8904
8905 * conf.sh: Add workaround for `volatile sig_atomic_t' screwups,
8906 and for Ultrix 4.2 prototype brain damage.
8907 * conf.heg: Adjust to latest conf.sh.
8908
8909 Thu Jan 9 19:02:09 1992 Paul Eggert <[email protected]>
8910
8911 * Makefile: $(LDLIBS) -o $@ -> -o $@ $(LDLIBS) to keep MS-DOS happy.
8912
8913 Mon Jan 6 03:04:24 1992 Paul Eggert <[email protected]>
8914
8915 Version 5.6.1 (beta)
8916
8917 * ci.c: Invoke utime() before chmod() to keep some buggy systems happy.
8918
8919 * co.c, merge.c, rcsdiff.c, rcsmerge.c, rlog.c: Update usage string.
8920
8921 * rcs.c:
8922 Avoid changing RCS file in common cases where no change can occur.
8923
8924 * rcsbase.h, rcsedit.c, rcsfnms.c, rcsrev.c, rcssyn.c, rcsutil.c,
8925 rlog.c: while (E) ; -> while (E) continue;
8926
8927 * rcsedit.c: Add setmode parameter to chnamemod.
8928 addsymbol now reports changes.
8929
8930 * rcsfnms.c: Shorten long (>31 chars) name.
8931
8932 * rcslex.c: Use OPEN_O_BINARY if mode contains 'b'.
8933 * rcsutil.c: O_BINARY -> OPEN_O_WORK
8934
8935 * rcssyn.c: ULONG_MAX/10 -> ULONG_MAX_OVER_10
8936
8937 * Makefile: Remove obsolete AIX comment. sh -> $(SHELL).
8938
8939 * conf.sh: Simplify MS-DOS port; work around several porting anomalies.
8940 * conf.heg: Adjust to latest conf.sh.
8941
8942 * rcstest: mkdir RCS if it doesn't already exist.
8943
8944 Wed Nov 20 18:21:10 1991 Paul Eggert <[email protected]>
8945
8946 Version 5.6 released.
8947 * ci.c, rcs.c: Don't read the delta tree from a nonexistent RCS file.
8948 * rcsmerge.c: Don't Iopen(f, "r+"); it's not portable.
8949 * conf.sh, conf.heg: Remove FOPEN_RPLUS.
8950 * rcstest: Test for rcs -i -A bug.
8951
8952 Sun Nov 3 03:30:44 1991 Paul Eggert <[email protected]>
8953
8954 * rcsclean.c:
8955 Don't remove working files that look like they are checked out.
8956
8957 * rcsedit.c: Move the warning about link breaking
8958 to where they're actually being broken.
8959
8960 * rcslex.c: Fix porting bug to ancient hosts lacking vfprintf.
8961
8962 * conf.sh: Detect yet another const compiler bug.
8963 Don't declare args to mmap, strchr, strrchr, in case they disagree.
8964
8965 Mon Oct 7 17:32:46 1991 Paul Eggert <[email protected]>
8966
8967 * ci.c, rcs.c, rcsdiff.c: Remove lint.
8968 * ci.c, rcsgen.c: Fix log bugs, e.g. ci -t/dev/null when has_mmap.
8969 * co.c: -k affects just working file, not RCS file.
8970 * rcsfcmp.c: Count log lines correctly.
8971 * conf.sh: Add declare_signal, large_memory, O_EXCL. Remove creat.
8972 * conf.heg: Adjust to latest conf.sh.
8973 * rcsbase.h, rcsedit.c, rcslex.c, rcsutil.c:
8974 Support piece tables even if !has_mmap.
8975 * rcsedit.c: Fix rare NFS bugs.
8976 * Makefile: Fix Minix description.
8977
8978 Thu Sep 26 23:10:30 1991 Paul Eggert <[email protected]>
8979
8980 * ci.c: Plug file descriptor leak.
8981
8982 Tue Sep 24 00:49:12 1991 Paul Eggert <[email protected]>
8983
8984 * rcsfnms.c: Don't export bindex().
8985 * rcslex.c: Don't export Ierror(), errsay().
8986 * rcsbase.h: Remove unexported functions.
8987 * Makefile: Put MS-DOS support into a separate distribution.
8988
8989 Wed Sep 18 07:29:10 1991 Paul Eggert <[email protected]>
8990
8991 * ci.c: Work around a common ftruncate() bug.
8992
8993 Tue Sep 17 19:07:40 1991 Paul Eggert <[email protected]>
8994
8995 * rlog.c: Getscript() didn't uncache partial lines.
8996 * rcsedit.c: SGI readlink() yields ENXIO, not EINVAL, for nonlinks.
8997
8998 Tue Sep 10 22:36:26 1991 Paul Eggert <[email protected]>
8999
9000 * ci.c, rcsgen.c: Fix test for redirected stdin.
9001
9002 * ident.c: Open files with FOPEN_R, not FOPEN_R_WORK,
9003 because they might be executables, not working files.
9004
9005 * conf.heg: Adjust to latest conf.sh.
9006
9007 * Makefile: Prepend $(DIFFPREFIX). to PATH.
9008 Adjust `make clean' for DOS.
9009
9010 Wed Aug 21 00:29:52 1991 Paul Eggert <[email protected]>
9011
9012 * rcstest: Fix test for non-text diffs; it missed some botched diffs.
9013
9014 Tue Aug 20 23:05:00 1991 Paul Eggert <[email protected]>
9015
9016 * merger.c: Fix !DIFF3_BIN porting bug.
9017 * conf.sh: Fix porting bugs for #include, SENDMAIL, pwd,
9018 cc with wrong exit status.
9019
9020 Mon Aug 19 23:17:54 1991 Paul Eggert <[email protected]>
9021
9022 * ci.c: When there are no changes,
9023 revert to previous revision instead of aborting.
9024 * ci.c, co.c, rcs.c: Add -M.
9025 * ci.c, rcs.c, rcsbase.h, rcsedit.c, rcsgen.c: Add piece tables.
9026 * ci.c, rcs.c, rcsdiff.c, rcsmerge.c, rcsrev.c: Add -r$.
9027 * ci.c, co.c, merge.c, rcs.c, rcsbase.h, rcsdiff.c, rcsedit.c,
9028 rcsfcmp.c, rcsfnms.c, rcsgen.c, rcskeep.c, rcslex.c, rcsmerge.c,
9029 rcsrev.c, rcssyn.c, rcsutil.c, rlog.c: Tune.
9030
9031 * co.c: Warn before removing somebody else's file.
9032 Fix co -j bugs.
9033
9034 * ident.c: Report read errors immediately.
9035
9036 * merge.c: Remove lint.
9037
9038 * rcs.c, rlog.c: Revision separator is `:', not `-'.
9039
9040 * rcsclean.c: Rewrite from scratch.
9041
9042 * rcsdiff.c: Add RCSINIT.
9043
9044 * rlog.c: Check for missing and duplicate logs.
9045 Permit log messages that do not end in newline (including empty logs).
9046
9047 * rcskeys.c: Say `T const' instead of `const T';
9048 it's less confusing for pointer types.
9049 (This change was made in other source files too.)
9050
9051 * rcslex.c: Add eoflex(), mmap support.
9052
9053 * rcsrev.c: Add `-rB.'. Remove botches like `<now>' from messages.
9054
9055 * conf.sh: Add ALL_ABSOLUTE, FOPEN_RPLUS, ftell, getlogin_is_secure,
9056 RCS_SHELL, sigmask, strchr, TZ_must_be_set.
9057 Add checks for dirent, ftruncate, link, madvise, memcmp, memcpy,
9058 memmove, mmap, spawn, wait, utimbuf.
9059 Improve checks for const/volatile, va_start.
9060 Remove atoi, has_utime, strncmp, strncpy.
9061 Make NEW_LINK_BEHAVIOR the default.
9062 sgi has seteuid.
9063 Don't try to guess the bad line number by parsing the error message.
9064 * conf.heg: Adjust to latest conf.sh.
9065
9066 * maketime.c: Add setfiledate, str2time, TZ_must_be_set.
9067
9068 * merger.c: Plug memory leak.
9069
9070 * partime.c: Update time zones.
9071
9072 * rcsbase.h, rcsedit.c: Add NFS bug workarounds.
9073 * rcsedit.c: Catch odd filenames.
9074
9075 * rcsfnms.c: Fix messages when rcswriteopen fails.
9076 Look in $TMP and $TEMP if $TMPDIR isn't set.
9077
9078 * rcsmap.c: Don't assume EOF == -1.
9079
9080 * rcsutil.c: Add spawn() support.
9081 Explicate assumptions about getting invoker's name.
9082 Standardize user-visible dates.
9083
9084 * Makefile: Improve hooks to make DOS makefile from Unix makefile.
9085 Switch to GNU diff as the default. ${} -> $().
9086
9087 * rcstest: Add test for reverting checkin. Ease DOS ports.
9088 Add PATH warning.
9089
9090 Sat Jun 22 22:43:23 1991 Paul Eggert <[email protected]>
9091
9092 * rcsclean.sh: Unlock the correct version.
9093
9094 Sun Apr 21 11:59:14 1991 Paul Eggert <[email protected]>
9095
9096 * ci.c, co.c, rcsbase.h, rcs.c, rcsdiff.c, rcsedit.c,
9097 rcsfnms.c, rcsmerge.c, rlog.c: Add -x, RCSINIT.
9098 * ci.c, co.c, conf.sh, Makefile, rcsbase.h, rcs.c, rcsdiff.c,
9099 rcsedit.c, rcsfcmp.c, rcsfnms.c, rcsgen.c, rcslex.c, rcsmerge.c,
9100 rcssyn.c, rlog.c: Add MS-DOS support.
9101 * ci.c, co.c: Ensure that working file is newer than RCS file
9102 after co -[lu].
9103
9104 * merge.c, merger.c: Initial revision
9105 * partime.c: Don't put , just before } in initializer.
9106 * rcsedit.c, rcsfcmp.c, rcsfnms.c, rcssyn.c: Fix errno bugs.
9107 * rcskeep.c, rcssyn.c: Disambiguate names on shortname hosts.
9108 * rcskeys.c, rcsmap.c: Don't put , just before } in initializer.
9109 * rcsrev.c: Add tiprev().
9110 * rcsutil.c: Plug setuid security hole.
9111 * conf.sh, conf.heg: Fix several reported bugs.
9112 * rcstest: Fix porting bugs.
9113 * rcsfreeze.sh: Port to broken shells.
9114
9115 Sun Mar 17 05:42:57 1991 Paul Eggert <[email protected]>
9116
9117 * rcsclean.sh: Support RCS file names. Add -n.
9118
9119 Thu Feb 28 19:18:53 1991 Paul Eggert <[email protected]>
9120
9121 * ci.c: Don't let a setuid ci create a new RCS file;
9122 rcs -i -a must be run first.
9123 Fix ci -ko -l mode bug. Open work file at most once.
9124
9125 * rcsbase.h, conf.sh, conf.heg: Try setuid() if seteuid() doesn't work.
9126
9127 * rcsfcmp.c: Open work file at most once.
9128
9129 * rcssyn.c: Fix null termination bug in reporting keyword expansion.
9130
9131 * rcsutil.c: Try setuid() if seteuid() doesn't work.
9132 Check the results more carefully.
9133
9134 * Makefile: Remove setuid installation -- it's now up to the users.
9135
9136 Tue Feb 26 17:48:39 1991 Paul Eggert <[email protected]>
9137
9138 * ci.c: getdate -> getcurdate (SVR4 name clash)
9139
9140 * ident.c: Don't report empty keywords. Check for I/O errors.
9141
9142 * rcs.c: 0444 -> S_IRUSR|S_IRGRP|S_IROTH for portability
9143 * rcs.c, rlog.c, rcslex.c, rcsutil.c:
9144 strsave -> str_save (DG/UX name clash)
9145
9146 * rcsmerge.c: Merging a revision to itself is no longer an error.
9147
9148 * rlog.c: Survive RCS files with missing logs.
9149
9150 * rcsbase.h: Move ANSI C / Posix declarations into conf.sh.
9151 * rcsbase.h, rcsedit.c, rcsfnms.c: Support new link behavior.
9152
9153 * rcsedit.c: Work around broken "w+" fopen.
9154 * rcsedit.c, rcsfnms.c, rcsutil.c: Fix setuid bug.
9155
9156 * rcsfnms.c: Support tempnam. Define more portable getcwd().
9157
9158 * rcslex.c: Work around fputs bug.
9159
9160 * rcsrev.c: Avoid overflow when comparing revision numbers.
9161
9162 * rcssyn.c: Check diff output more carefully; avoid overflow.
9163
9164 * rcsutil.c: Use fread, fwrite more portably.
9165 Support waitpid. Don't assume -1 is acceptable to W* macros.
9166
9167 * Makefile: Remove setgid support. Add NEW_LINK_BEHAVIOR.
9168
9169 * conf.sh: Revamp extensively for portability.
9170 * conf.heg: Adjust to latest conf.sh.
9171
9172 * rcstest: Work even if diff -c and diff3 -E don't.
9173 Improve handling of binary files and bad locks.
9174
9175 Mon Dec 31 01:00:12 1990 Paul Eggert <[email protected]>
9176
9177 Version 5.5 released.
9178 * ci.c: Don't use uninitialized storage when handling -{N,n}.
9179
9180 Sun Dec 30 05:07:35 1990 Paul Eggert <[email protected]>
9181
9182 * rcsedit.c:
9183 Fix report of busy RCS files when !defined(O_CREAT) | !defined(O_EXCL).
9184
9185 Thu Dec 27 19:54:26 1990 Paul Eggert <[email protected]>
9186
9187 * rcsgen.c: Fix bug: rcs -t inserted \n, making RCS file grow.
9188
9189 Tue Dec 18 17:19:21 1990 Paul Eggert <[email protected]>
9190
9191 * rcs.c: Fix bug with multiple -n and -N options.
9192
9193 Thu Dec 13 06:54:07 1990 Paul Eggert <[email protected]>
9194
9195 * rcsdiff.c, Makefile: GNU diff 1.15 has -u.
9196
9197 Tue Dec 4 05:18:49 1990 Paul Eggert <[email protected]>
9198
9199 * ci.c, co.c, rcs.c, rcsbase.h, rcsgen.c, rcslex.c, rcsutil.c:
9200 Use -I for prompts and -q for diagnostics.
9201
9202 * co.c: Don't checkaccesslist() unless necessary.
9203
9204 * rcsutil.c: Don't output a blank line after a signal diagnostic.
9205
9206 Tue Nov 27 09:26:05 1990 Paul Eggert <[email protected]>
9207
9208 * rcsfcmp.c: Fix comment leader bug.
9209
9210 Sun Nov 11 00:06:35 1990 Paul Eggert <[email protected]>
9211
9212 * rcs.c: Fix `rcs -e' core dump.
9213
9214 Mon Nov 5 20:30:10 1990 Paul Eggert <[email protected]>
9215
9216 * ci.c: Don't remove working file when aborting due to no changes.
9217
9218 Thu Nov 1 05:28:48 1990 Paul Eggert <[email protected]>
9219
9220 * ci.c, rcs.c: Add -I and new -t behavior.
9221 * ci.c, rcs.c, rcsbase.h, rcsedit.c, rcsgen.c, rcsfcmp.c, rcsfnms.c,
9222 rcssyn.c, rlog.c: Permit arbitrary data in logs and comment leaders.
9223
9224 * co.c: Fix -j. Add -I.
9225
9226 * merge.sh: Yield exit status 2 on error like the man page says.
9227
9228 * rcsdiff.c, rcsmerge.c, rcsutil.c: Remove unneeded setid check.
9229
9230 * maketime.c: Remove lint.
9231
9232 * rcsbase.h: Don't assume that builtins are functions;
9233 they may be macros.
9234
9235 * rcsgen.c: Add -I and new -t behavior.
9236
9237 * rcslex.c, rcssyn.c:
9238 When ignoring unknown phrases, copy them to the output RCS file.
9239
9240 * rcssyn.c: Don't check for nontext on initial checkin.
9241
9242 * rcsutil.c: Add awrite(), fremember().
9243
9244 * Makefile: Add test and debug instructions.
9245 Remove unwieldy "make depend" stuff.
9246
9247 * conf.sh: Use better guess for Posix 1003.1-1990 seteuid() behavior.
9248 (A real test would requiring running conf.sh setid. Ugh!)
9249 Use test for vfork() that detects GCC 1.37.1+sparc and IRIX bugs.
9250 Use better test for const and volatile.
9251 User better test for include files; just running cpp isn't enough,
9252 because the include files may be buggy.
9253 Don't assume that builtins are functions; they may be macros.
9254 Remove DIFF_ARBITRARY.
9255 * conf.heg: Initial revision
9256
9257 * rcsclean.sh: Basically a complete rewrite. Add rcsdiff options.
9258 Clean working directory if no arguments are given.
9259
9260 * rcsfreeze.sh: Check for errors better.
9261 Remove the need for one of the temporary files.
9262
9263 Sat Oct 6 00:16:45 1990 Paul Eggert <[email protected]>
9264
9265 * rcsutil.c: Don't fread F if feof(F).
9266
9267 Thu Oct 4 06:30:22 1990 Paul Eggert <[email protected]>
9268
9269 * ci.c, co.c, rcs.c, rcsdiff.c, rlog.c:
9270 Accumulate exit status across files.
9271
9272 * maketime.c: Don't assume time_t is 32 bits.
9273 Calculate the GMT offset of 'xxx LT' as of xxx, not as of now.
9274 Fix bugs near epoch and near end of time.
9275
9276 * partime.c: Check for overflow when lexing an integer.
9277 Remove date vs time heuristics that fail between 2000 and 2400.
9278 Parse 'Jan 10 LT' as 'Jan 10, LT', not 'Jan, 10 LT'.
9279
9280 * rcskeep.c: Parse time zone offsets;
9281 future RCS versions may output them.
9282
9283 Thu Sep 27 01:31:43 1990 Paul Eggert <[email protected]>
9284
9285 * rcsdiff.c: Yield 1, not EXIT_FAILURE, when diffs are found.
9286 * rcsbase.h, conf.sh: Port wait() to non-Posix ANSI C hosts.
9287 * conf.sh: Test for vfork() file descriptor screwup.
9288
9289 Tue Sep 25 20:11:46 1990 Adam Hammer <[email protected]>
9290
9291 * ci.c: fixed another small typo
9292
9293 Mon Sep 24 18:56:31 1990 Paul Eggert <[email protected]>
9294
9295 * partime.c: Update time zones.
9296
9297 Fri Sep 21 06:16:38 1990 Adam Hammer <[email protected]>
9298
9299 * ci.c: made it handle multiple -{N,n}'s.
9300 Also, made it treat re-directed stdin the same as the terminal
9301
9302 Thu Sep 20 07:58:32 1990 Paul Eggert <[email protected]>
9303
9304 * ci.c: ci -k now checks dates more thoroughly.
9305
9306 * merge.sh: Fix bug in passing arguments to old diff3 programs.
9307 Fix calculation of #!/bin/sh header.
9308
9309 * rcskeep.c: ci -k now checks dates more thoroughly.
9310
9311 * rcssyn.c:
9312 Remove the test for non-text bytes; it caused more pain than it cured.
9313
9314 * conf.sh: Calculate signal_type more reliably on older systems.
9315
9316 * rcstest: Adjust to old and brain damaged diffs.
9317
9318 Sat Sep 15 01:29:51 1990 Paul Eggert <[email protected]>
9319
9320 * conf.sh: Output header warning that it's generated automatically.
9321
9322 Tue Sep 11 02:41:16 1990 Paul Eggert <[email protected]>
9323
9324 * ci.c: Fix revision bug with `ci -k file1 file2'.
9325 * co.c: co -kv yields a readonly working file.
9326 * rcsdiff.c: Simplify -kkvl test.
9327 * rlog.c: Plug memory leak.
9328 * rcsedit.c: Tune expandline().
9329 * rcsfcmp.c: Don't ignore differences in keyword strings if -ko is set.
9330 * Makefile: Don't make -R the default.
9331
9332 Tue Sep 4 17:07:19 1990 Paul Eggert <[email protected]>
9333
9334 * ci.c: Permit adjacent revisions with identical time stamps
9335 (possible on fast hosts).
9336 * ci.c, rcsbase.h, rcsedit.c: Improve incomplete line handling.
9337 * ci.c, co.c, rcs.c, rcsbase.h, rcsgen.c:
9338 Standardize yes-or-no procedure.
9339
9340 * rcsdiff.c: Diff's argv was too small by 1.
9341
9342 * rlog.c, rcsedit.c, rcslex.c, rcssyn.c: Count RCS lines better.
9343
9344 * rcsmerge.c: Check for I/O error when reading working file.
9345
9346 * partime.c: Don't permit 'Aug Aug'.
9347 Don't parse two-digit years, because it won't work after 1999/12/31.
9348
9349 * rcsbase.h: Don't redefine NAME_MAX, PATH_MAX.
9350
9351 * rcsfnms.c: Fix typo when !RCSSEP.
9352
9353 * rcsgen.c: Fix `co -p1.1 -ko' bug.
9354
9355 * rcssyn.c: Parse RCS files with no revisions.
9356 Don't strip leading white space from diff commands.
9357
9358 * rcsutil.c: Store fread()'s result in an fread_type object.
9359
9360 * conf.sh: Don't include <stdarg.h> unless has_prototypes is set.
9361
9362 * rcstest: Test -kkv, etc.
9363 Work even when today's day of the month is less than 10.
9364
9365 Wed Aug 29 07:14:52 1990 Paul Eggert <[email protected]>
9366
9367 * ci.c: Expand locker value like co.
9368 * ci.c, rcs.c, rcsbase.h, rcsfcmp.c, rcsgen.c, rcssyn.c:
9369 Clean old log messages too.
9370
9371 * merge.sh: Add -q.
9372
9373 * rcs.c: Remove unused setuid support.
9374
9375 * rcsdiff.c, rcsbase.h rcsedit.c, rcssyn.c: Add -kkvl.
9376
9377 * rcsmerge.c: Add -q. Pass -L options to merge.
9378
9379 * partime.c: Be able to parse our own date format.
9380 Don't assume year<10000.
9381
9382 * rcsbase.h: Fix type typos exposed by porting.
9383
9384 * rcsedit.c:
9385 Fix bug when getting revisions to files ending in incomplete lines.
9386 Fix bug in comment leader expansion.
9387
9388 * rcsfnms.c, rcslex.c:
9389 Work around buggy compilers with defective argument promotion.
9390
9391 * rcsutil.c: Declare getpwuid() more carefully.
9392
9393 * Makefile: Remove -g from default CFLAGS.
9394
9395 * conf.sh: Fix porting bugs. Add sanity checks and better doc strings.
9396
9397 * rcstest: Initial revision
9398
9399 Wed Aug 22 08:49:14 1990 Paul Eggert <[email protected]>
9400
9401 * ci.c: Don't pass +args to diff.
9402 * ci.c, co.c, rcsbase.h, rcsdiff.c, rcsedit.c, rcskeys.c, rcssyn.c:
9403 Add -k.
9404 * ci.c, co.c, rcs.c, rcsbase.h, rcsdiff.c, rcsedit.c, rcsmerge.c,
9405 rcsutil.c, rlog.c: Add -V.
9406 * ci.c, co.c, ident.c, rcs.c, rcsbase.h, rcsdiff.c, rcsedit.c,
9407 rcsfnms.c, rcsgen.c, rcskeep.c, rcslex.c, rcsmerge.c, rcsrev.c,
9408 rcssyn.c, rcsutil.c, rlog.c:
9409 Remove compile-time limits; use malloc instead.
9410 * ci.c, co.c, rcs.c, rcsbase.h, rcsdiff.c, rcsutil.c, rlog.c:
9411 Add setuid support.
9412 * ci.c, rcsedit.c, rcskeep.c, rcssyn.c: Don't require a final newline.
9413 * ci.c, co.c, rcs.c, rcsdiff.c, rcsedit.c, rcsfnms.c, rcsmerge.c:
9414 Make lock and temp files faster and safer.
9415 * ci.c, co.c, maketime.c, rcs.c, rcsedit.c, rcsfnms.c, rcskeep.c,
9416 rcsutil.c: Permit dates past 1999/12/31.
9417 * ci.c, co.c, rlog.c, maketime.c, partime.c, rcsutil.c, Makefile:
9418 Switch to GMT and fixed the bugs exposed thereby.
9419 * ci.c, rcs.c, rcsedit.c, rcssyn.c: Check diff's output.
9420 * ci.c, co.c, rcsbase.h, rcsutil.c: Remove snooping.
9421 * ci.c, co.c, rcs.c, rcsfnms.c, rcskeep.c, rcsmerge.c, rcsrev.c,
9422 rcssyn.c, rcsutil.c: Tune.
9423 * ci.c, co.c, ident.c, maketime.c, partime.c, rcs.c, rcsbase.h,
9424 rcsdiff.c, rcsedit.c, rcsfcmp.c, rcsfnms.c, rcsgen.c, rcskeep.c,
9425 rcskeys.c, rcslex.c, rcsmerge.c, rcsrev.c, rcssyn.c, rcsutil.c, rlog.c:
9426 Ansify and Posixate.
9427
9428 * co.c, rcsutil.c: Permit multiple locks by same user.
9429
9430 * ident.c: Don't limit output to known keywords.
9431 * ident.c, rcs.c, rcsfcmp.c, rcsrev.c, rcssyn.c: Remove lint.
9432
9433 * merge.sh: Become a shell file that outputs the needed shell file.
9434 Support GNU diff3. Add -L.
9435
9436 * rcs.c: Don't lose names when applying -a option to multiple files.
9437 Fix umask bug. Yield proper exit status.
9438
9439 * rcsdiff.c: Don't pass arguments with leading '+' to diff;
9440 GNU DIFF treats them as options. Add GNU diff's flags.
9441 * rcsdiff.c, rcsbase.h, rcsmerge.c, rcsfnms.c: Don't use access().
9442
9443 * rcsmerge.c: Propagate merge's exit status.
9444
9445 * rlog.c:
9446 Report dates in long form, to warn about dates past 1999/12/31.
9447 Change "added/del" message to make room for the longer dates.
9448 * rlog.c, rcsedit.c: Don't generate trailing white space.
9449
9450 * partime.c: Update time zones. Fix peekahead and int-size bugs.
9451
9452 * rcsbase.h: Adjust ANSI C / Posix support. Remove v2 support.
9453 * rcsbase.h, rcslex.c, rcssyn.c: Add support for ISO 8859.
9454
9455 * rcsedit.c, rcsfcmp.c: Don't append "checked in with -k by " log to
9456 logs, so that checking in a program with -k doesn't change it.
9457
9458 * rcsfnms.c: Ignore signals when manipulating the semaphore file.
9459 Modernize list of file name extensions.
9460 Beware file names beginning with "-".
9461 Fix test for non-regular files.
9462
9463 * rcskeep.c: Retrieve old log message if there is one.
9464
9465 * rcslex.c: Report errno-related errors with perror().
9466 Use better hash function.
9467
9468 * rcsrev.c: Remove possibility of an internal error.
9469
9470 * rcssyn.c: Try to parse future RCS formats without barfing.
9471 Don't output branch keyword if there's no default branch,
9472 because RCS version 3 doesn't understand it.
9473 Check that a newly checked-in file is acceptable as input to 'diff'.
9474
9475 * rcsutil.c: Some USG hosts define NSIG but not sys_siglist.
9476 Don't run /bin/sh if it's hopeless.
9477 Don't leave garbage behind if the output is an empty pipe.
9478 Clean up after SIGXCPU or SIGXFSZ.
9479 Print name of signal that caused cleanup.
9480
9481 * Makefile: Configure more automatically. Upgrade for RCS 5.0.
9482
9483 * conf.sh, rcsmap.c: Initial revision
9484
9485 Wed May 23 06:54:32 1990 Paul Eggert <[email protected]>
9486
9487 * Makefile: Make Posix the default; it's the wave of the future.
9488 Add advice for SunOS. Remove references to rcsclean, rcsfreeze.
9489
9490 Thu Mar 22 07:06:14 1990 Paul Eggert <[email protected]>
9491
9492 * merge.sh: Add support for GNU DIFF 1.15.
9493
9494 * Makefile: Permit dates past 1999/12/31. Ansify and Posixate.
9495 Remove snoop and v2 support. Add <vfork.h> flag.
9496
9497 Sat Nov 18 13:34:16 1989 Adam Hammer <[email protected]>
9498
9499 Version 4.3 released.
9500
9501 Mon Oct 30 12:29:00 1989 Daniel Trinkle <[email protected]>
9502
9503 * rcsclean.c:
9504 Added -q option to agree with man page, added code to actually unlock
9505 the RCS file if there were no differences, picked a bit of lint.
9506
9507 Wed Jun 28 12:56:23 1989 Paul Eggert <[email protected]>
9508
9509 * rcsfnms.c:
9510 Prevent checkin of all non-regular files, not just directories.
9511
9512 Wed Jun 28 09:02:14 1989 Thomas Narten <[email protected]>
9513
9514 Version 4.2 released.
9515
9516 Mon May 1 15:17:14 1989 Thomas Narten <[email protected]>
9517
9518 changed copyright header to reflect current distribution rules
9519
9520 * rcsbase.h: changed #include <strings.h> -> string.h for USG systems.
9521 * partime.c: fixed #ifdef DEBUG construct
9522 * rcsfnms.c: changed getwd to not stat empty directories.
9523
9524 Thu Dec 8 14:02:20 1988 Paul Eggert <[email protected]>
9525
9526 * rcsfnms.c:
9527 Fix bug: "co -p .../RCS/dir,v" failed if ./dir is a directory.
9528
9529 Tue Nov 8 16:01:02 1988 Thomas Narten <[email protected]>
9530
9531 * ci.c: changes from [email protected] (Super User)
9532 -d with no arguments uses the mod time of the file it is checking in
9533
9534 * rcs.c: removed include <sysexits.h> (not needed)
9535 minor fix for -A option
9536
9537 * rcsbase.h: removed defs for functions loaded from libraries
9538 * maketime.c: allow negative time zones (-24h <= x <= 24h)
9539 * rcsedit.c: misplaced semicolon caused infinite loop
9540 * rcsutil.c: corrected use of varargs routines
9541
9542 Sun Aug 28 15:09:38 1988 Paul Eggert <[email protected]>
9543
9544 * Makefile: 'make depend' now discards /usr/include/*
9545 (#ifdefs may comment around them).
9546 Use sed rather than ex for portability. Remove obsolete comments.
9547 Separate LINTFLAGS. Use LDFLAGS consistently.
9548 Edit DIFF in merge.sh. Use execv(), not system(); allow cc -R.
9549 Permit signal handlers to yield either 'void' or 'int'.
9550
9551 * rcslex.c:
9552 Don't loop when writing error messages to a full filesystem.
9553 Flush stderr/stdout when mixing output.
9554 Yield exit status compatible with diff(1).
9555 Shrink stdio code size; allow cc -R; remove lint.
9556
9557 * rcsgen.c: Shrink stdio code size; allow cc -R; remove lint;
9558 isatty() -> ttystdin()
9559
9560 * partime.c: Remove unportable "#endif XXX"s.
9561
9562 * maketime.c: Allow cc -R. Remove unportable "#endif XXX"s.
9563
9564 Tue Aug 9 19:13:28 1988 Paul Eggert <[email protected]>
9565
9566 * ci.c: Remove lint.
9567 isatty(fileno(stdin)) -> ttystdin()
9568 Make sure workfile is a regular file;
9569 use its mode if RCSfile doesn't have one.
9570 * ci.c, rcsdiff.c, rcsedit.c: Allow cc -R.
9571
9572 * co.c: Fix "co -d" core dump; rawdate wasn't always initialized.
9573 fix putchar('\0') and diagnose() botches.
9574 * co.c, rcs.c, rcsbase.h, rcskeep.c, rcssyn.c, rlog.c: Remove lint.
9575
9576 * merge.sh:
9577 Check and yield proper exit status; keep temporary files private;
9578 economize to avoid a temporary file; fix "1 overlaps";
9579 keep '.' out of PATH.
9580
9581 * rcsdiff.c, rcsmerge.c: Yield exit status like diff(1)'s.
9582
9583 * rcsmerge.c: Beware merging into a readonly file.
9584 Beware merging a revision to itself (no change).
9585
9586 * rcs.c: Don't access freed storage.
9587 Yield proper exit status.
9588
9589 * rlog.c: Check for memory exhaustion; don't access freed storage.
9590 Shrink stdio code size.
9591 * rlog.c, rcsutil.c: Check for memory exhaustion.
9592
9593 * rcsbase.h: Permit -Dhshsize=nn.
9594 * rcsbase.h, rcsedit.c, rcsfcmp.c: Shrink stdio code size.
9595
9596 * rcskeep.c: Speed up by making FILE *fp local, not global.
9597
9598 * rcsutil.c: Permit signal handlers to yield either 'void' or
9599 'int'; fix oldSIGINT botch. Yield exit status like diff(1)'s.
9600
9601 Wed Jul 27 00:31:11 1988 Paul Eggert <[email protected]>
9602
9603 * merge.sh: RCS version 4
9604
9605 Thu Jun 23 16:06:55 1988 Paul Eggert <[email protected]>
9606
9607 * sig_t.sh: Initial revision
9608
9609 Fri Dec 18 17:06:41 1987 Thomas Narten <[email protected]>
9610
9611 * ci.c, co.c, rcs.c, rcsfcmp.c, rcskeep.c, rcssyn.c, rlog.c:
9612 lint cleanups (from Guy Harris)
9613
9614 * rcsdiff.c: changes Jay Lepreau made in the 4.3 BSD version,
9615 to add support for "-i", "-w", and "-t" flags and to permit
9616 flags to be bundled together, merged in.
9617
9618 * maketime.c: include rcsparam.h
9619
9620 * rcsbase.h: made removed BSD ifdef, now uses V4_2BSD
9621
9622 * rcsedit.c:
9623 Changes from the 43. version. Don't know the significance of the
9624 first change involving "rewind". Also, additional "lint" cleanup.
9625 (Guy Harris)
9626
9627 * rcsfnms.c:
9628 additional file types added from 4.3 BSD version, and SPARC assembler
9629 comment character added. Also, more lint cleanups. (Guy Harris)
9630
9631 * rcsgen.c:
9632 additional lint cleanups, and a bug fix from the 4.3BSD version that
9633 keeps "ci" from sticking a '\377' into the description if you run it
9634 with a zero-length file as the description. (Guy Harris)
9635
9636 * rcslex.c: fixed to use "varargs" in "fprintf";
9637 this is required if it is to work on a SPARC machine such as a Sun-4
9638
9639 * rcsrev.c: more lint cleanups.
9640 Also, the NOTREACHED comment is no longer necessary,
9641 since there's now a return value there with a value. (Guy Harris)
9642
9643 * Makefile: RCS version 4.0's Makefile
9644
9645 * rcsfreeze.sh: Initial revision
9646
9647 Mon Nov 23 16:06:50 1987 Paul Eggert <[email protected]>
9648
9649 * Makefile: Permit signal handlers to yield either 'void' or 'int'.
9650
9651 Fri Oct 23 17:09:57 1987 Thomas Narten <[email protected]>
9652
9653 * ident.c: added exit(0) so exit return code would be non random
9654
9655 Tue Sep 15 16:39:39 1987 Roy Morris <...!felix!roy>
9656
9657 * rcsedit.c: added an initialization of the variables editline and
9658 linecorr; this will be done each time a file is processed.
9659 (there was an obscure bug where if co was used to retrieve multiple
9660 files it would dump)
9661
9662 Sun Oct 18 10:40:22 1987 Thomas Narten <[email protected]>
9663
9664 Updating version numbers.
9665 Changes relative to revision 1.1 are actually relative to 4.x.
9666
9667 Mon Aug 24 13:57:19 1987 Thomas Narten <[email protected]>
9668
9669 Sources now pass through lint
9670 (if you ignore printf/sprintf/fprintf warnings).
9671
9672 Mon Aug 10 11:52:53 1987 Paul Eggert <[email protected]>
9673
9674 * co.c: 'co -d' dumped core; this fixes it.
9675
9676 Thu Jul 9 09:20:52 1987 Daniel Trinkle <[email protected]>
9677
9678 * ident.c: Added check to make sure there is at least one arg
9679 before comparing argv[1] with "-q". This necessary on machines
9680 that don't allow dereferencing null pointers (i.e. Suns).
9681
9682 Mon Jun 22 13:52:35 1987 Paul Eggert <[email protected]>
9683
9684 * Makefile:
9685 Allow cc -R; add rclm; add $(LDFLAGS) when linking anything
9686
9687 * rcs.c, rlog.c: Don't access freed storage.
9688
9689 * rcs.c: If you lack locks, "rcs -u" now breaks the newest lock
9690 regardless of owner.
9691
9692 Fri Mar 27 14:21:53 1987 jenkins <[email protected]>
9693
9694 Port to suns
9695
9696 Mon Mar 23 12:01:04 1987 Paul Eggert <[email protected]>
9697
9698 * ci.c, co.c, rcs.c, rcsdiff.c, rcsmerge.c, rcsutil.c:
9699 Use execv(), not system(); yield proper exit status.
9700 * co.c: fix putchar('\0') and diagnose() botches.
9701 * rcsutil.c: Fix bug: catchints() didn't work if ignoreints()
9702 had already been called.
9703 * rcsmerge.c: Beware merging into a readonly file.
9704 Beware merging a revision to itself (no change).
9705 * rcsbase.h: Shrink stdio code size; remove lint; vfork=fork on USG
9706 * merge.sh:
9707 Check and yield proper exit status; clean up if interrupted;
9708 keep temporary files private; fix "1 overlaps" message.
9709 * ci.c, rcsdiff.c: Allow cc -R.
9710 * co.c, rcs.c: Remove lint.
9711
9712 Tue Mar 17 17:27:32 1987 loverso <[email protected]>
9713
9714 * ci.c: Don't allow non-regular files (directories, etc)
9715 to be checked in.
9716
9717 Mon Mar 9 17:11:52 1987 Paul Eggert <[email protected]>
9718
9719 * rcsedit.c: Shrink stdio code size; allow cc -R.
9720 Fix linecorr botch: dumped core on Suns sometimes on 'co -rold f1 f2'.
9721
9722 Fri Feb 13 11:28:51 1987 Paul Eggert <[email protected]>
9723
9724 * rlog.c: Add -W flag.
9725 * rcslex.c: Don't loop when writing error messages to a full filesystem
9726 Flush stderr/stdout when mixing output.
9727 Yield exit status compatible with diff(1).
9728 * rcsgen.c, rcslex.c, rlog.c: Allow cc -R; remove lint.
9729 * rcsfcmp.c, rcsgen.c, rcslex.c, rlog.c: Shrink stdio code size.
9730
9731 Thu Feb 12 18:24:19 1987 Paul Eggert <[email protected]>
9732
9733 * ident.c: Add -efghi flags.
9734 * maketime.c, rcsfnms.c, rcssyn.c, sccstorcs.c: Allow cc -R.
9735 * rcsfnms.c: Fix troff macro comment leader bug; add Prolog.
9736 * rcskeep.c: Speed up by making FILE *fp local, not global.
9737 * rcsrev.c, All files above: Remove lint.
9738
9739 Tue Jul 29 12:17:25 1986 Guy Harris <[email protected]>
9740
9741 * maketime.c: More "lint" cleanups.
9742
9743 Mon Jul 28 23:34:14 1986 Guy Harris <[email protected]>
9744
9745 * Makefile: Netnews fixes from guy@sun
9746 * sccstorcs.c, rlog.c, rcsutil.c, rcssyn.c, rcsrev.c, rcsmerge.c,
9747 rcslex.c, rcskeep.c, rcsgen.c, rcsfnms.c, rcsfcmp.c, rcsedit.c,
9748 rcsdiff.c, rcsbase.h, rcs.c, ident.c, co.c, ci.c: More "lint" cleanups.
9749
9750 Thu Jul 3 13:09:55 1986 jdl <[email protected]>
9751
9752 * rcsclean.sh: New file.
9753
9754 Wed Jun 18 15:02:32 1986 Jay Lepreau <[email protected]>
9755
9756 * rcsdiff.c: I broke -c<number> in last rev.
9757 Also, mixing a bopt with an otheropt was broken.
9758
9759 Mon May 19 02:36:16 1986 Jay Lepreau <[email protected]>
9760
9761 * rcsdiff.c: Pass on new diff options, and allow them to be clustered.
9762
9763 Thu May 15 02:25:37 1986 Jay Lepreau <[email protected]>
9764
9765 * Makefile: 4.3BSD revision
9766 * rcsedit.c: Use "Locked" instead of state in $Head expansion if locked.
9767 * rcsfnms.c: add suffix .el for gnulisp
9768 * rcsgen.c: Fix immediate EOF from non-tty files:
9769 avoid 0377's in description.
9770
9771 Tue Dec 17 13:59:09 1985 albitz <[email protected]>
9772
9773 * rcs.c: Changed setstate to rcs_setstate
9774 because of conflict with random.o.
9775
9776 Wed Jun 26 07:34:28 1985 svb <[email protected]>
9777
9778 * rcsfnms.c: Comment leader '% ' for '*.tex' files added.
9779
9780 Wed Oct 17 21:12:11 1984 Admin <[email protected]>
9781
9782 * sccstorcs.c: Added check for having multiple deltas in a row
9783 for the same revision. --ks
9784
9785 Tue Dec 20 16:04:20 1983 Walter F. Tichy <wft@purdue>
9786
9787 * rcsbase.h: Increased logsize, added macro SMALLOG.
9788 moved setting of STRICT_LOCKING to Makefile.
9789 changed DOLLAR to UNKN (conflict with KDELIM).
9790
9791 Thu Dec 15 12:28:54 1983 Walter F. Tichy <wft@purdue>
9792
9793 * ci.c, co.c: ci -u and ci -l now set mode of working file properly.
9794 * rcs.c: rcs -u now breaks most recent lock
9795 if it can't find a lock by the caller.
9796
9797 * rcsfnms.c: Added check for KDELIM in filenames to pairfilenames().
9798
9799 Mon Dec 5 13:40:54 1983 Walter F. Tichy <wft@purdue>
9800
9801 * ci.c: Merged with 3.9.1.1: added calls to clearerr(stdin).
9802 * ci.c, co.c, rlog.c: made rewriteflag external.
9803
9804 * rcs.c: Added conditional compilation for sending mail.
9805 Alternatives: V4_2BSD, V6, USG, and other.
9806
9807 Fri Dec 2 22:47:45 1983 Walter F. Tichy <wft@purdue>
9808
9809 * rcsfnms.c: Added csh, red, and sl filename suffixes.
9810
9811 Wed Oct 19 04:22:11 1983 Jay Lepreau <lepreau@purdue>
9812
9813 * rcsbase.h: Make teeny logsize big
9814 * rcsgen.c: Added clearerr(stdin) for re-reading description from stdin.
9815
9816 Thu May 12 13:10:30 1983 Walter F. Tichy <wft@purdue>
9817
9818 * rcsedit.c:
9819 Added new markers Id and RCSfile; added locker to Header and Id.
9820 Overhauled expandline completely()
9821 (problem with $01234567890123456789@).
9822 Moved trymatch() and marker table to rcskeys.c.
9823 Log no longer expands full path of RCS file.
9824
9825 Wed May 11 14:24:13 1983 Walter F. Tichy <wft@purdue>
9826
9827 * rlog.c: Added -b, updated getnumericrev() accordingly.
9828 Replaced getpwuid() with getcaller().
9829 Added options -L and -R; Fixed selection bug with -l on multiple files.
9830 Fixed error on dates of the form -d'>date' (rewrote getdatepair()).
9831
9832 * rcsedit.c: Fixed truncation problem for $19chars followed by@@.
9833 Added retry to expandline to resume after failed match which ended in $.
9834
9835 * rcsfnms.c: Added initialization of Dbranch to InitAdmin().
9836 Changed pairfilenames():
9837 1. added copying of path from workfile to RCS file, if RCS file omitted;
9838 2. added getting the file status of RCS and working files;
9839 3. added ignoring of directories.
9840 Added comtable[] which pairs filename suffixes with comment leaders;
9841 updated InitAdmin() accordingly.
9842
9843 Tue May 10 17:03:06 1983 Walter F. Tichy <wft@purdue>
9844
9845 * ci.c: Added option -d and -w, and updated assignment of date, etc.
9846 to new delta.
9847 Option -k generates std. log message;
9848 fixed undef. pointer in reading of log.
9849 Replaced getlock() with findlock(),
9850 getpwuid() with getcaller().
9851 Moved all revision number generation to new routine addelta().
9852 Removed calls to stat(); now done by pairfilenames().
9853 Directed all interactive messages to stderr.
9854 * ci.c, co.c: Added handling of default branches.
9855 Replaced getpwuid() with getcaller().
9856 Replaced unlink()--link() with rename()
9857 * ci.c, co.c, rcs.c:
9858 Removed calls to stat(); now done by pairfilenames().
9859 Changed most calls to catchints() with restoreints().
9860
9861 * co.c: Added option -u and -f.
9862 Changed and renamed rmoldfile() to rmworkfile().
9863
9864 * rcs.c:
9865 Simplified breaklock(); added calls to findlock() and getcaller().
9866 Added option -b (default branch). Updated -s and -w for -b.
9867 Removed check for exit status of delivermail().
9868 Directed all interactive output to stderr.
9869
9870 * ident.c: Added option -q and input from reading stdin.
9871 Marker matching is now done with trymatch() (independent of keywords).
9872
9873 * rcsfcmp.c: Marker matching now uses trymatch().
9874 Marker pattern is now checked precisely.
9875
9876 * rcsgen.c: Changed putamin() to abort if trying to reread redirected
9877 stdin. Fixed getdesc() to output a prompt on initial newline.
9878
9879 * rcskeep.c: Added new markers Id and RCSfile; extraction added.
9880 Marker matching with trymatch().
9881
9882 * rcsutil.c: Added getcaller() and findlock().
9883 Changed catchints() to check SIGINT for SIG_IGN before setting up
9884 the signal (needed for background jobs in older shells).
9885 Added restoreints().
9886 Removed printing of full RCS path from logcommand().
9887
9888 Wed May 4 09:12:41 1983 Walter F. Tichy <wft@purdue>
9889
9890 * rcsbase.h: Added markers Id and RCSfile.
9891 Added Dbranch for default branches.
9892
9893 * rcskeys.c: Initial revision
9894
9895 Tue May 3 22:13:19 1983 Walter F. Tichy <wft@purdue>
9896
9897 * rcsdiff.c: Added default branch, option -q, exit status like diff.
9898 Added fterror() to replace faterror().
9899
9900 Tue Apr 5 14:47:36 1983 Walter F. Tichy <wft@purdue>
9901
9902 * rcsfnms.c: fixed Suffix in InitAdmin().
9903
9904 Mon Mar 28 11:14:57 1983 Walter F. Tichy <wft@purdue>
9905
9906 * rcsmerge.c, rcssyn.c: Added handling of default branch.
9907
9908 Fri Mar 25 18:12:51 1983 Walter F. Tichy <wft@purdue>
9909
9910 * rcslex.c, rcsrev.c: Only changed $Header to $Id.
9911
9912 Fri Feb 18 17:37:49 1983 Walter F. Tichy <wft@purdue>
9913
9914 * ident.c: removed printing of new line after last file.
9915
9916 Tue Feb 15 15:41:49 1983 Walter F. Tichy <wft@purdue>
9917
9918 * ci.c, co.c, rcs.c, rcsutil.c: Added call to fastcopy()
9919 to copy remainder of RCS file in blocks.
9920
9921 Tue Jan 18 18:04:25 1983 Walter F. Tichy <wft@purdue>
9922
9923 * rcs.c: Changed sendmail(): now uses delivermail,
9924 and asks whether to break the lock.
9925
9926 Mon Jan 17 18:01:04 1983 Walter F. Tichy <wft@purdue>
9927
9928 * rcsfnms.c: Added getwd() and rename(); these can be removed by
9929 defining V4_2BSD, since they are not needed in 4.2 bsd.
9930 Changed sys/param.h to sys/types.h.
9931
9932 Sat Jan 15 17:46:50 1983 Walter F. Tichy <wft@purdue>
9933
9934 * rcs.c: Removed putree(); replaced with puttree() in rcssyn.c.
9935 Combined putdellog() and scanlogtext(); deleted putdellog().
9936 Cleaned up diagnostics and error messages. Fixed problem with
9937 mutilated files in case of deletions in 2 files in a single command.
9938 Changed marking of selector from 'D' to DELETE.
9939
9940 * rcsdiff.c: Expanded mainprogram to handle multiple RCS files.
9941
9942 * rcsbase.h: Replaced dbm.h with BYTESIZ, fixed definition of rindex().
9943 Added variants of NCPFN and NCPPN for bsd 4.2,
9944 selected by defining V4_2BSD. Added macro DELNUMFORM
9945 to have uniform format for printing delta text nodes.
9946 Added macro DELETE to mark deleted deltas.
9947
9948 * rcssyn.c: Changed readdelta() to initialize selector and log-pointer.
9949 Changed puttree to check for selector==DELETE;
9950 putdtext() uses DELNUMFORM.
9951
9952 Fri Jan 14 15:37:31 1983 Walter F. Tichy <wft@purdue>
9953
9954 * ci.c, co.c, rcs.c:
9955 Added ignoring of interrupts while new RCS file is renamed;
9956 Avoids deletion of RCS files by interrupts.
9957
9958 Thu Jan 6 09:33:45 1983 Walter F. Tichy <wft@purdue>
9959
9960 * rcsdiff.c: Fixed passing of -c (context) option to diff.
9961
9962 Fri Dec 24 15:29:00 1982 Walter F. Tichy <wft@purdue>
9963
9964 * rcsdiff.c, rcsmerge.c: Added call to catchsig().
9965 * rlog.c: shortened output format.
9966 * rcskeep.c: added missing #endif.
9967 * rcsutil.c: added catchints(), ignoreints() for catching and ignoring
9968 interrupts; fixed catchsig().
9969
9970 Fri Dec 10 16:22:37 1982 Walter F. Tichy <wft@purdue>
9971
9972 * ci.c, rcs.c, rcsdiff.c: Corrected checking of return code from diff.
9973 * rcs.c: Removed unused variables,
9974 introduced variant COMPAT2 for skipping Suffix on -A files.
9975 * rcsdiff.c, rcslex.c: Improved error messages.
9976 * rcsmerge.c: Replaced getdelta() with gettree().
9977 * rcsbase.h: Added two forms of DATEFORM, one using %02d,
9978 the other %.2d.
9979 * rcslex.c: Changed exit status on error to 1.
9980
9981 Wed Dec 8 21:34:49 1982 Walter F. Tichy <wft@purdue>
9982
9983 * ci.c: Fixed return from addbranch().
9984 * ci.c, co.c, rcsutil.c, rlog.c: Using DATEFORM to format dates.
9985
9986 * co.c: removed actual from call to preparejoin;
9987 re-fixed printing of done at the end.
9988
9989 * rcs.c: Replaced getdelta() with gettree(),
9990 changed breaklock to update field lockedby, added some diagnostics.
9991
9992 * rlog.c: removed call to checkaccesslist().
9993 * rlog.c, rcsfnms.c: removed unused variable.
9994
9995 * rcssyn.c: renamed Commentleader to Commleader.
9996
9997 Sat Dec 4 13:24:08 1982 Walter F. Tichy <wft@purdue>
9998
9999 * ci.c: Updated field lockedby in removelock(),
10000 moved getlogmsg() before calling diff.
10001 * ci.c, co.c, rcsutil.c: Replaced SNOOPDIR with SNOOPFILE.
10002 * ci.c, co.c, rcsdiff.c, rcsrev.c, rlog.c:
10003 Replaced getdelta() with gettree().
10004 * co.c: Fixed printing of "done".
10005 * rcsdiff.c: Changed diagnostics.
10006 * ident.c, rcsbase.h: Added LOCKER.
10007 * rlog.c: Removed updating of field lockedby.
10008 * rcsbase.h: Locker, and USG (redefinition of rindex).
10009 * rcsedit.c: Added expansion of keyword Locker.
10010 * rcsfcmp.c, rcskeep.c: Initial revision
10011 * rcsrev.c: Replaced getdelta() with gettree().
10012 * rcssyn.c: Added routine gettree(),
10013 which updates keeplock after reading the delta tree.
10014 * rcsutil.c: changed addlock() to update lockedby-field.
10015
10016 Fri Dec 3 17:08:04 1982 Walter F. Tichy <wft@purdue>
10017
10018 * rcs.c:
10019 Replaced getlogin() with getpwuid(), fclose() with ffclose(),
10020 /usr/ucb/Mail with macro MAIL. Removed handling of Suffix (-x).
10021 fixed -u for missing revno.
10022 * rcs.c, rlog.c: Disambiguated structure members.
10023
10024 * rlog.c: Replaced getlogin with getpwuid(), %02d with %.2d,
10025 fancydate with PRINTDATE. Fixed printing of nil, removed
10026 printing of Suffix, added shortcut if no revisions are printed.
10027
10028 * rcsbase.h:
10029 Added dbm.h, stdio.h, RCSBASE, RCSSEP, RCSSUF, WORKMODE, TMPFILE3,
10030 PRINTDATE, PRINTTIME, map, and ctab; removed Suffix.
10031 Redefined keyvallength using NCPPN.
10032 Changed putc() to abort on write error.
10033
10034 * rcsedit.c: Added line number correction in case editing does
10035 not start at the beginning of the file. Changed keyword
10036 expansion to always print a space before closing KDELIM;
10037 Expansion for Header shortened.
10038
10039 * rcsutil.c: Added check to addlock() ensuring only one lock per person.
10040 Addlock also returns a pointer to the lock created.
10041 Deleted fancydate().
10042
10043 Thu Dec 2 13:27:13 1982 Walter F. Tichy <wft@purdue>
10044
10045 * ci.c: Added option -k.
10046
10047 Sun Nov 28 19:45:37 1982 Walter F. Tichy <wft@purdue>
10048
10049 * ci.c: Added mustcheckin() to check for redundant checkins.
10050 Added xpandfile() to do keyword expansion for -u and -l;
10051 -m appends linefeed to log message if necessary.
10052 getlogmsg() suppresses prompt if stdin is not a terminal.
10053 Replaced keeplock with lockflag.
10054 * ci.c, co.c:
10055 Replaced fclose() with ffclose(),
10056 %02d with %.2d, getlogin() with getpwuid().
10057
10058 * co.c: Replaced mode generation for working file with WORKMODE.
10059 Fixed nil printing. Fixed -j combined with -l and -p, and exit
10060 or non-existing revisions in preparejoin().
10061
10062 * ident.c: removed Suffix;
10063 added ungetc to avoid skipping over trailing KDELIM.
10064
10065 * merge.sh: 4.3BSD revision
10066
10067 * rcsmerge.c: Initial revision
10068
10069 * rcsfnms.c: Changed mktempfile() to store the generated filenames.
10070 Changed getfullRCSname() to store the file and pathname,
10071 and to delete leading "../" and "./".
10072
10073 * rcsgen.c: Replaced ferror() followed by fclose() with ffclose().
10074 Putdesc() now suppresses the prompts if stdin is not a terminal.
10075 A pointer to the current log message is now inserted into the
10076 corresponding delta, rather than leaving it in a global variable.
10077
10078 * rcslex.c: Renamed ctab to map and included EOFILE;
10079 ctab is now a macro in rcsbase.h.
10080 Added fflsbuf(), fputs(), and fprintf(), which abort the RCS operations
10081 properly in case there is an IO-error (e.g., file system full).
10082
10083 * rcsrev.c: fixed compartial() and compnum() for nil-parameters;
10084 fixed nils in error messages. Testprogram output shortened.
10085
10086 * rcssyn.c: Reading and printing of Suffix removed;
10087 version COMPAT2 skips the Suffix for files of release 2 format.
10088 Fixed problems with printing nil.
10089
10090 Sat Nov 27 12:24:37 1982 Walter F. Tichy <wft@purdue>
10091
10092 * rcsutil.c: moved rmsema(), trysema(), trydiraccess(),
10093 getfullRCSname() to rcsfnms.c. Introduced macro SNOOP so that snoop
10094 can be placed in directory other than TARGETDIR.
10095 Changed %02d to %.2d for compatibility reasons.
10096
10097 Sun Nov 14 14:49:30 1982 Walter F. Tichy <wft@purdue>
10098
10099 * rcsedit.c:
10100 removed Suffix from keyword expansion. Replaced fclose with ffclose.
10101 keyreplace() gets log message from delta, not from curlogmsg.
10102 fixed expression overflow in while(c=putc(GETC....
10103 checked nil printing.
10104
10105 Fri Nov 12 14:29:40 1982 Walter F. Tichy <wft@purdue>
10106
10107 * rcsfnms.c: changed pairfilenames() to handle file.sfx,v;
10108 also deleted checkpathnosfx(),
10109 checksuffix(), checkfullpath(). Semaphore name generation updated.
10110 mktempfile() now checks for nil path; freefilename initialized properly.
10111 Added Suffix .h to InitAdmin. Added testprogram PAIRTEST.
10112 Moved rmsema, trysema, trydiraccess, getfullRCSname
10113 rom rcsutil.c to here.
10114
10115 Mon Oct 18 20:57:23 1982 Walter F. Tichy <wft@purdue>
10116
10117 * ci.c:
10118 Fixed ci -l, added ci -u (both do an implicit co after the ci).
10119 Changed conflicting identifiers.
10120 * ci.c, co.c, rcs.c: Fixed call to getlogin(), added call to
10121 getfullRCSname().
10122 * ci.c, co.c, rcs.c: An RCS file inherits its mode during the first ci
10123 or rcs -i from the working file, otherwise it stays the same,
10124 except that write permission is removed.
10125 * ci.c, co.c, rcs.c, rcsedit.c, rcsgen.c: Added check for write error.
10126
10127 * co.c: The working file inherits its mode from the RCS file, plus
10128 write permission for the owner. The write permission is not given if
10129 locking is strict and co does not lock. An existing working file
10130 without write permission is deleted automatically. Otherwise, co asks
10131 (empty answer: abort co).
10132
10133 * rcs.c: I replaced curdir() with getfullRCSname(),
10134 cleaned up handling -U/L, and changed conflicting, long identifiers.
10135
10136 * rcsdiff.c: Initial revision
10137
10138 * rlog.c: call to curdir replaced with getfullRCSname(),
10139 fixed call to getlogin(), cosmetic changes on output,
10140 changed conflicting long identifiers.
10141
10142 * rcsbase.h: added macro STRICT_LOCKING, removed RCSUMASK.
10143 renamed JOINFILE[1,2] to JOINFIL[1,2].
10144
10145 * rcsedit.c: Renamed expandstring() to xpandstring().
10146
10147 * rcsfnms.c: InitAdmin() now initializes StrictLocks=STRICT_LOCKING
10148 (def. in rcsbase.h). renamed checkpath() to checkfullpath().
10149
10150 * rcsgen.c: improved the prompt on putdesc().
10151
10152 * rcsrev.c: renamed compnum->cmpnum, compnumfld->cmpnumfld,
10153 numericrevno->numricrevno.
10154
10155 * rcssyn.c: renamed putdeltatext to putdtext.
10156
10157 * rcsutil.c: added function getfullRCSname().
10158
10159 Wed Oct 13 16:04:59 1982 Walter F. Tichy <wft@purdue>
10160
10161 * ci.c: added include file dbm.h for getting BYTESIZ.
10162 This is used to check the return code from diff portably.
10163 * ci.c, co.c, ident.c, rcs.c, rcsedit.c, rcsgen.c, rlog.c:
10164 fixed type of variables receiving from getc() (char -> int).
10165
10166 * co.c: removed unused variables.
10167
10168 * rcsedit.c: made keyword expansion loop in expandline()
10169 portable to machines without sign-extension.
10170
10171 * rcsutil.c: Cleanup message is now suppressed in quiet mode.
10172
10173 Mon Oct 11 19:41:17 1982 Walter F. Tichy <wft@purdue>
10174
10175 * rcsbase.h: removed NBPW, NBPC, NCPW.
10176 added typdef int void to aid compiling
10177
10178 * rcslex.c: removed unused label out:;
10179 * rcslex.c, rcssyn.c:
10180 made sure all calls to getc() return into an integer, not a char.
10181
10182 * rcsrev.c: changed expandsym() to check for source==nil;
10183 returns zero length string in that case.
10184
10185 Thu May 6 11:38:00 1982 Walter F. Tichy <wft@purdue>
10186
10187 * maketime.c, partime.c: Initial revision
10188
10189
10190 Copyright (C) 2010-2022 Thien-Thi Nguyen
10191
10192 Copying and distribution of this file, with or without modification,
10193 are permitted provided the copyright notice and this notice are preserved.