Sync with FreeBSD. Most importantly, this removes the need for perl.
[dragonfly.git] / gnu / usr.bin / ptx / ChangeLog
1 Fri Nov  5 23:10:07 1993  Francois Pinard  (pinard@icule)
2
3         * Version 0.3
4
5         * check-out: New name for check_out.
6         * Makefile.in: Change check_out for check-out everywhere.
7         Reported by Jim Meyering <meyering@comco.com>.
8
9         * Makefile.in (realclean): Do not remove .stamp-h.in and
10         config.h.in.  One should not need Autoconf installed.
11         Reported by Nelson Beebe <beebe@math.utah.edu>.
12
13         * ptx.c: Add missing definition of isxdigit.
14         Reported by Nelson Beebe <beebe@math.utah.edu>.
15
16         * ptx.c: Define S_ISREG if not defined, then use it.
17         Reported by Karl Berry <karl@cs.umb.edu>.
18
19 Wed Nov  3 15:53:00 1993  Francois Pinard  (pinard@icule)
20
21         * mkinstalldirs: New, from elsewhere.
22         * Makefile.in: Use it.
23
24 Mon Nov  1 00:48:34 1993  Francois Pinard  (pinard@lagrande.IRO.UMontreal.CA)
25
26         * Makefile.in (clean): Delete ptx, not the obsolete $(PROGS).
27
28 Sun Oct 31 15:04:57 1993  Francois Pinard  (pinard@raptor.IRO.UMontreal.CA)
29
30         * ptx.c (alloc_and_compile_regex): Zero out the whole allocated
31         pattern, not just a few fields.
32
33         * ptx.c (alloc_and_compile_regex): Clarify error message.
34
35 Thu Oct 28 08:29:29 1993  Francois Pinard  (pinard@compy.IRO.UMontreal.CA)
36
37         * ptx.c (print_copyright): Deleted.  Rather use a "copyright"
38         variable, print to standard output instead of standard error.
39
40         * ptx.c: Use error instead of fprintf (stderr, ...).
41
42         * ptx.c: Rename fold_lower_to_upper to ignore_case.
43
44 Wed Oct 27 18:41:52 1993  Francois Pinard  (pinard@lagrande.IRO.UMontreal.CA)
45
46         * ptx.c: Add option -M for using another macro name than "xx".
47         Reported by Thorsten Ohl <ohl@physics.harvard.edu>.
48
49         * examples/ignore/: New files.
50         * eign: Linked to examples/ignore/eign.
51         * Makefile.in: Install and uninstall $(datadir)/eign.
52         * configure.in: Remove testing of a default ignore file.
53         Reported by Nelson Beebe <beebe@math.utah.edu>.
54
55         * ptx.c (main): Add --help and --version processing.
56         (print_version): Deleted.
57
58         * ptx.c: Use -traditional instead of --no-gnu-extensions,
59         --ignore-case instead of --fold-letter-case, --format=<format>
60         instead of --tex-output and --roff-output.
61         * argmatch.c: New file.  Taken from fileutils/lib.
62         Reported by Karl Berry <karl@cs.umb.edu>.
63
64 Tue Oct 26 08:39:14 1993  Francois Pinard  (pinard@icule)
65
66         * ptx.c (usage): New name for usage_and_exit.  Accept an exit
67         status parameter.  If zero, print full help on stdout.  If
68         non-zero, print a one-line helper on stderr.
69
70         * ptx.c: Remove sizeof_occurs and OCCURS_ALIGNMENT complexity.
71         The memory savings did not justify the portability headaches.
72
73         * ptx.c (copy_unescaped_string): New function.
74         (main): Use it with options -F, -S and -W.
75         Reported by Dave Cottingham <dc@haiti.gsfc.nasa.gov>.
76
77         * ptx.c (fix_output_parameters): Force edit of '\f', because some
78         systems does not consider it to be whitespace.
79         Reported by Stephane Berube <berube@iro.umontreal.ca>.
80
81         * ptx.c (fix_output_parameters): For roff output, do not disallow
82         characters with 8th bit set.
83         Reported by James Clark <jjc@jclark.com>.
84
85         * Makefile.in (dist): Include examples/ in distribution.
86
87 Mon Oct 25 15:46:16 1993  Francois Pinard  (pinard@icule)
88
89         * ptx.c: Change --display-width to --width, for consistency with
90         other GNU programs.
91
92         * examples/ajay/: New files.
93         Reported by Ajay Shah <ajayshah@cmie.ernet.in>.
94         Reported by Rakesh Chauhan <rk@cmie.ernet.in>.
95
96         * examples/luke/: New files.
97         Reported by Luke Kendall <luke@research.canon.oz.au>.
98
99         * examples/latex/: New files.
100
101         * ptx.c (find_occurs_in_text): Assign 0 to refererence_length so
102         GNU C will not warn anymore against its unitialized use.
103         Reported by Loic Dachary <L.Dachary@cs.ucl.ac.uk>.
104
105         * lib/: Move routines in main directory first, then destroy.
106         * Makefile.in: Merge lib/Makefile.in, clean up.
107         * configure.in: Do not create lib/Makefile.in.
108
109         * acconfig.h: New file.
110         * .stamp-h.in: Used for timestamping autoheader.
111         * Makefile.in: Use acconfig.h and .stamp-h.in.  Force
112         autoheader whenever acconfig.h is modified.
113
114 Wed Jun  9 15:01:28 1993  Francois Pinard  (pinard@icule)
115
116         * Makefile.in (dist): Replace "echo `pwd`" by a mere "pwd".
117         Create a gzip file.
118
119 Sat May 22 20:18:31 1993  Francois Pinard  (pinard@icule)
120
121         * Makefile.in: Replace $(PROGS) by ptx.
122
123         * diacrit.h: Change `c' to `chr', better protect it.
124
125         * lib/COPYING.LIB: Deleted.
126         * lib/Makefile.in: Adjust accordingly.
127
128 Sat Feb  6 15:03:13 1993  Francois Pinard  (pinard@icule)
129
130         * Makefile.in, lib/Makefile.in: In dist goals, ensure 777 mode for
131         directories, so older tar's will restore file modes properly.
132
133 Sun Jan 17 15:42:35 1993  Francois Pinard  (pinard@icule)
134
135         * Makefile.in, lib/Makefile.in: Put $(CFLAGS) after $(CPPFLAGS),
136         so the installer can override automatically configured choices.
137         Reported by Karl Berry <karl@cs.umb.edu>.
138
139 Tue Jan 12 09:21:22 1993  Francois Pinard  (pinard at icule)
140
141         * configure.in: Check for setchrclass().
142         * diacrit.[hc]: New file, extracted from my own ctype.[hc].
143         * ctype.[hc]: Deleted.
144         * Makefile.in: Distribute diacrit.[hc], but not ctype.[hc].
145         * ptx.c: Include "diacrit.h" rather than "ctype.h".
146         Include <ctype.h> for ANSI C, or else, use our own definitions.
147         (initialize_regex): Use ctype.h macros for making the folding
148         table and for making the \w+ fastmap.  Previously, was reusing the
149         regex syntax table or looking at character bit structure.
150         (main): Execute setchrclass (NULL) if available and ANSI C.
151
152         * Spelling fixes in various files.
153         Reported by Jim Meyering <meyering@cs.utexas.edu>.
154
155 Thu Jan  7 20:19:25 1993  Francois Pinard  (pinard at icule)
156
157         * Makefile.in: Using autoheader, derive config.h.in from
158         configure.in.  Distribute config.h.in.
159         Use config.status for reconstructing config.h from config.h.in.
160         Have all $(OBJECTS) depend upon config.h.
161         Always use -I. calling the C compiler, for config.h to be found.
162         Remove config.h in distclean-local.
163         * lib/Makefile.in: Always use -I.. calling the C compiler, for
164         config.h to be found.  Also use $(DEFS).
165         Have all $(OBJECTS) depend upon ../config.h.
166         * configure.in: Create config.h from config.h.in.
167         * ptx.c, ctype.c: Conditionnaly include config.h.
168
169 Fri Jan  1 19:52:49 1993  Francois Pinard  (pinard at icule)
170
171         * Makefile.in, lib/Makefile.in: Reinstate $(CPPFLAGS), use it.
172         Richard wants it there.  Remove $(ALLFLAGS) and reequilibrate.
173
174 Sun Dec 27 05:57:55 1992  Francois Pinard  (pinard at icule)
175
176         * ptx.c (find_occurs_in_text): Introduce word_start and word_end
177         variables, and use them instead of the word_regs structure.  This
178         takes care of the fact newer regex.h does not allocate the arrays
179         any more, and these were used even when regexps were not compiled.
180
181         * Makefile, lib/Makefile.in: Define CHAR_SET_SIZE for SYNTAX_TABLE
182         to work correctly.
183
184         * configure.in: Replace AC_USG by AC_HAVE_HEADERS(string.h).
185         Cleanup and reorganize a little.
186
187         * ptx.c: Renamed from gptx.c.  Add -G (--no-gnu-extensions)
188         and clarify some long option names by making them more
189         explicit.  Remove all PTX_COMPATIBILITY conditionals.
190         Introduce gnu_extensions variable initialized to 1.  Let -G
191         give it the value 0, but still allow and process GNU specific
192         options and long option names.  The Ignore file is now the same
193         whatever the value of gnu_extensions.
194         * ptx.texinfo: Renamed from gptx.texinfo, adjusted.
195         * Makefile.in, configure.in: Adjusted accordingly.  Now
196         installs only one program under the name $(binprefix)ptx.
197
198         * gptx.c (perror_and_exit): Deleted.  Use error() directly.
199
200         * gptx.c: Remove unneeded prototypes for system library routines.
201
202         * gptx.c (compare_words, compare_occurs): #define first and second
203         instead of using an intermediate variable.
204
205         * configure.in: Use AC_CONST.
206         * gptx.h: Do not define const.
207         * Define volatile dependent on __GNUC__, not __STDC__, and define
208         it to __volatile__.
209
210         * gptx.h, version.c: Deleted, integrated into gptx.c.
211         * Remove src/ and doc/ subdirectories, merging them in main.
212         * Move lib/bumpalloc.h, lib/ctype.[ch] in main directory.
213         * Integrate all ChangeLogs in main ChangeLog.
214         * Integrate all Makefiles in main Makefile and lib/Makefile,
215         rewriting them all along the way.
216
217 Fri Nov 13 00:10:31 1992  Francois Pinard  (pinard at icule)
218
219         * Makefile.in (dist): chmod a+r before making the tar file.
220
221 Tue Oct  6 12:47:00 1992  Francois Pinard  (pinard at icule)
222
223         * {,doc/,lib/,src/}Makefile.in: Use exec_prefix.  Add `uninstall'.
224
225 Wed Aug 19 16:02:09 1992  Francois Pinard  (pinard at icule)
226
227         * ansi2knr.c: New file, from Ghostscript distribution.
228         * gptx.c: Get rid of many __STDC__ tests.
229         * version.c: Idem.
230
231 Fri Aug 14 22:53:05 1992  Francois Pinard  (pinard at icule)
232
233         * gptx.c: Use HAVE_MCHECK instead of MCHECK_MISSING.
234         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS.
235
236         * configure.in: Autoconfigure for mcheck and strerror.
237         Reported by Bernd Nordhausen <bernd@iss.nus.sg>.
238
239 Thu Jun 18 09:15:12 1992  Francois Pinard  (pinard at icule)
240
241         * configure.in, all Makefile's: Adapt to Autoconf 0.118.
242
243 Sun Feb  2 16:23:47 1992  Francois Pinard  (pinard at icule)
244
245         * gptx.c (main): Returns int.
246
247 Tue Dec 10 09:53:21 1991  Francois Pinard  (pinard at icule)
248
249         * gptx.c (usage_and_exit): Print --OPTION instead of +OPTION.
250
251 Wed Dec  4 10:31:06 1991  Francois Pinard  (pinard at icule)
252
253         * gptx.c (compare_occurs, compare_words): Change parameters to
254         (void *) to comply with qsort ANSI declaration, and cast the true
255         type inside the function, each time a parameter is used.
256         Reported by Byron Rakitzis <byron@archone.tamu.edu>.
257
258 Mon Dec  2 10:41:43 1991  Francois Pinard  (pinard at icule)
259
260         * gptx.c: Removed comma at end of enum.
261
262         * version.c: Add a few missing `const's.
263
264         * gptx.c: Add prototypes for close, fstat, open, perror and read
265         if __STDC__.
266
267         * gptx.c: Remove useless alloca declaration.
268
269 Sat Nov  9 20:03:37 1991  Francois Pinard  (pinard at icule)
270
271         * configure.in, all/Makefile.in: Directory reorganization,
272         including separate src and doc, in plus of lib.  Ensure all
273         Makefile's can be used independently.
274
275 Thu Nov  7 11:20:38 1991  Francois Pinard  (pinard at icule)
276
277         * gptx.texinfo: Renamed from gptx.texi.  Now `TeX'able.
278         * Makefile.in: Ensure distributing texinfo.tex.
279         Reported by Karl Berry <karl@cs.umb.edu>.
280
281         * configure.in: Take care of POSIXish ISC.
282         Reported by Karl Berry <karl@cs.umb.edu>.
283
284 Tue Nov  5 09:42:58 1991  Francois Pinard  (pinard at icule)
285
286         * configure.in, Makefile.in: Do not absolutize $(srcdir), because
287         this could create problems with automounters.
288
289         * configure.in, Makefile.in: Remove IF_* devices, they were
290         solving a problem caused only by non timestamping shars, and
291         gptx is now distributed in tar format.
292
293 Mon Oct 28 14:39:36 1991  Francois Pinard  (pinard at icule)
294
295         * configure.in: New file.
296         * configure: Automatically generated from file configure.in
297         and David MacKenzie's autoconf.
298
299 Sat Oct 19 20:06:28 1991  Francois Pinard  (pinard at icule)
300
301         * configure: Use ANSI header files if present, even with non ANSI
302         compilers.
303         Reported by David MacKenzie <djm@eng.umd.edu>.
304
305 Tue Oct 15 08:43:13 1991  Francois Pinard  (pinard at icule)
306
307         * Makefile.in: Install gptx and ptx separately.  On DEC Ultrix
308         4.1, install cannot install more than one file at a time.
309         Reported by Simon Leinen <simon@liasun1.epfl.ch>.
310
311 Fri Oct 11 15:19:42 1991  Francois Pinard  (pinard at icule)
312
313         * Makefile.in: `realclean' did not work, because lib/Makefile was
314         disappearing at `distclean' time.  I tried separate doc and src
315         directories, but this is not worth the heaviness.  Split some
316         goals instead, using _doc, _lib and _src suffixes.
317 \f
318 Fri Oct 10 18:04:21 1991  Francois Pinard  (pinard at icule)
319
320         * Version 0.2
321
322 Wed Oct  9 16:13:42 1991  Francois Pinard  (pinard at icule)
323
324         * configure, Makefile.in: New files.
325         * Makefile, GNUmakefile, Depends: Deleted.
326
327         * gptx.c: Change -A output from `FILE(NN):' to `FILE:NN:'.
328
329         * gptx.c, gptx.h, version.c: Reinstate __STDC__ tests.
330
331 Tue Jun 25 11:35:32 1991  Francois Pinard  (pinard at icule)
332
333         * gptx.c: Something is wrong in -r reference allocation, I suspect
334         casting does not do what I expect.  I relax the constraints so to
335         make it work for now.  To be revisited.
336
337         * gptx.c: Call initialize_regex sooner, to ensure folded_chars is
338         properly initialized when -f and -i are simultaneously used.
339
340         * gptx.c: Remove -p option and rather compile two separate
341         programs, one by defining PTX_COMPATIBILITY, to conform a GNU
342         standard asking to not depend on the program installed name.  This
343         also removes the -p option, so loosing the debatable advantage of
344         dynamically reverting to ptx compatibility mode.
345
346         * gptx.h: Cleanup.  Don't duplicate stdlib.h.
347
348 Wed Dec  5 18:00:23 1990  Francois Pinard  (pinard at icule)
349
350         * gptx.c (usage_and_exit): Change -C explanation.
351
352 Sun Oct 28 16:11:36 1990  Francois Pinard  (pinard at icule)
353
354         * gptx.h: Remove the PROTO macros and usage.
355         * gptx.c: Remove all the #ifdef __STDC__ noise.
356         * version.c: Remove all the #ifdef __STDC__ noise.
357
358 Wed Jul 25 12:20:45 1990  Francois Pinard  (pinard at icule)
359
360         * ctype.[ch]: Linked from my library.
361
362 Wed Jul 11 10:53:13 1990  Francois Pinard  (pinard at icule)
363
364         * bumpalloc.h: Linked from my library.
365 \f
366 Sun Aug  5 13:17:25 1990  Francois Pinard  (pinard at icule)
367
368         * Version 0.1
369
370         * gptx.c: Implement IGNORE and PIGNORE defines.
371
372         * gptx.c: Implement special character protection for roff and TeX
373         output, through the edited_flag array.
374
375 Fri Aug  3 12:47:35 1990  Francois Pinard  (pinard at icule)
376
377         * gptx.c: Implement new -R option for automatic referencing, with
378         the possibility of multiple input files in normal mode.  Now,
379         option -r implies ptx compatibility mode default for -S; exclude
380         reference from context whenever easy to do, and allow coselection
381         of both -r and -R.
382
383 Wed Aug  1 12:00:07 1990  Francois Pinard  (pinard at icule)
384
385         * gptx.[hc]: Define and use OCCURS_ALIGNMENT, to avoid those
386         `Bus error's on Sparcs.
387
388 Fri Jul 27 12:04:40 1990  Francois Pinard  (pinard at icule)
389
390         * gptx.c (initialize_regex): Use only isalpha and "ctype.h" to
391         initialize Sword syntax, getting rid of any other explicit ISO
392         8859-1 references.  This will make the MS-DOS port easier,
393         character set wise.
394
395         * gptx.c (swallow_file_in_memory): Revised along the lines of
396         io.c from GNU diff 1.14, so it could handle stin and fifos,
397         and work faster.
398
399         * gptx.c (perror_and_exit): New function, use it where convenient.
400
401 Thu Jul 26 13:28:13 1990  Francois Pinard  (pinard at icule)
402
403         * gptx.c (swallow_input_text): Remove white space compression even
404         if not in ptx compatibility mode.  This being out of the way, use
405         swallow_file_in_memory instead of inputting characters one by one.
406
407 Wed Jul 25 12:20:45 1990  Francois Pinard  (pinard at icule)
408
409         * gptx.c (find_occurs_in_text): Include the sentence separator as
410         part of the right context, except for separator's suffix white
411         space.  Formerly, it was excluded from all contexts.
412
413         * gptx.h: Check STDLIB_PROTO_ALREADY to conditionalize prototype
414         declarations for standard C library routines; check __GNUC__
415         before using `volatile' on function prototypes.
416
417         * gptx.c: (find_occurs_in_text): Maintain the maximum length of
418         all words read.
419         (define_all_fields): Optimize scanning longish left contexts by
420         sometimes doing a backward jump from the keyword instead of always
421         scanning forward from the left context boundary.
422
423 Sun Jul 22 09:18:21 1990  Francois Pinard  (pinard at icule)
424
425         * gptx (alloc_and_compile_regex): Realloc out all extra allocated
426         space.
427
428 Mon Jul 16 09:07:25 1990  Francois Pinard  (pinard at icule)
429
430         * gptx.c: In OCCURS structure, modify left, right and reference
431         pointers and make them displacements, to save some space.  Define
432         DELTA typedef, use it, make all other necessary changes.
433
434         * gptx.c: Work on portability.  Define const and volatile to
435         nothing if not __STDC__.  On BSD, define str[r]chr to be [r]index.
436         Avoid writings specific to GNU C.
437
438 Sun Jul 15 17:28:39 1990  Francois Pinard  (pinard at icule)
439
440         * gptx.c: Add a word_fastmap array and use it if -W has not been
441         specified, instead of using default regexps.  Finish implementing
442         the Break files.
443
444 Sat Jul 14 10:54:21 1990  Francois Pinard  (pinard at icule)
445
446         * gptx.[ch], version.c: Use prototypes in all header
447         functions.  Add some missing const declarations.
448
449 Fri Jul 13 10:16:34 1990  Francois Pinard  (pinard at icule)
450
451         * gptx.c: Enforce ptx compatibility mode by disallowing normal
452         mode extensions.  Disallow -p if extensions are used.
453
454         * gptx.c: Finish implementation of Ignore and Only files.
455
456 Wed Jul 11 10:53:13 1990  Francois Pinard  (pinard at icule)
457
458         * gptx.c: Revise WORD typedef and use it in OCCURS typedef;
459         adjust all usages.  Add BLOCK and WORD_ARRAY typedefs, revise in
460         various place to make better usage of these.  Use BUMP_ALLOC.
461
462 Tue Jul 10 09:02:26 1990  Francois Pinard  (pinard at icule)
463
464         * gptx.c: Add -L option, `latin1_charset' variable and support.
465
466         * gptx.c: Remove old generate_roff and generate_tex variables,
467         replace with output_format which is of enum type.
468
469 Mon Jul  9 10:40:41 1990  Francois Pinard  (pinard at icule)
470
471         * gptx.c (compare_words): Check word_regex.translate and do not
472         use the translation table if not computed.  Also protect against
473         possible 8-bit problems.
474
475         * gptx.c (alloc_and_compile_regex): New function.
476
477 Sun Jul  8 17:52:14 1990  Francois Pinard  (pinard at icule)
478
479         * gptx.c: Make a more systematic use of SKIP_* macros, to get rid
480         of explicit ' ' references when possible.
481
482         * gptx.c: Replace `head' field by `left' in the OCCURS structure,
483         delay the `before' computation from find_occurs_in_text to
484         define_all_fields, and make all necessary adjustments.  Also
485         add a `right' field in the OCCURS structure, use it to get rid of
486         explicit '\n' references when possible.
487
488         * gptx.c (initialize_regex): New function.  Compute the syntax
489         table for regex.  Get rid of previous break_chars_init variable
490         and break_chars array, use word_regex and word_regex_string
491         instead.
492
493         * gptx.c: Use re_search to find words and re_match to skip over
494         them.  Add -W option and support.  Use re_search to find end of
495         lines or end of sentences, add -S option and support.
496
497 Sat Jul  7 08:50:40 1990  Francois Pinard  (pinard at icule)
498
499         * gptx.c: Change PRINT_SPACES and PRINT_FIELD macros to
500         print_spaces and print_field routines, respectively.
501
502 Fri Jul  6 09:44:39 1990  Francois Pinard  (pinard at icule)
503
504         * gptx.c (generate_output): Split into define_all_fields,
505         generate_all_output, output_one_roff_line, output_one_tex_line,
506         and output_one_tty_line.
507
508         * gptx.c: Move the inline code to reallocate the text buffer into
509         reallocate_text_buffer.  Correct a small bug in this area.
510
511         * gptx.c: Modify -F to accept a STRING argument, modify output
512         routines to handle truncation marks having more than one
513         character.
514
515 Thu Jul  5 11:08:59 1990  Francois Pinard  (pinard at icule)
516
517         * gptx.c: Add -F option and logic.
518
519         * gptx.c: Select ptx compatibility mode if program is
520         installed under the name `ptx'.  Install both gptx and ptx.
521
522 Thu Jun  7 17:21:25 1990  Francois Pinard  (pinard at icule)
523
524         * gptx.c: Make each OCCURS a variable size thing, depending on
525         various options; mark occurs_found table size with an integer
526         counter instead of an end pointer.
527 \f
528 Sat Apr 14 20:01:09 1990  Francois Pinard  (pinard at icule)
529
530         * Version 0.0
531
532         * gptx.c: Removed limitations on table sizes: it should now go
533         until an `Out of memory' error.  Use xmalloc.  Rename some
534         variables.
535
536         * version.c, gptx.c (usage_and_exit): Add -C option to print
537         Copyright.
538
539 Mon Mar 12 17:59:42 1990  Francois Pinard  (pinard at icule)
540
541         * ChangeLog initialisation.  Previous experiments towards gptx
542         were done at the defunct site ora.odyssee.qc.ca, which was a
543         Sun-3/160 running SunOS 3.0.  The files have been stocked for
544         a long time to kovic.iro archives, then imported to icule.
545
546         * gptx.c: GCC linted.