1 Fri Nov 5 23:10:07 1993 Francois Pinard (pinard@icule)
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>.
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>.
13 * ptx.c: Add missing definition of isxdigit.
14 Reported by Nelson Beebe <beebe@math.utah.edu>.
16 * ptx.c: Define S_ISREG if not defined, then use it.
17 Reported by Karl Berry <karl@cs.umb.edu>.
19 Wed Nov 3 15:53:00 1993 Francois Pinard (pinard@icule)
21 * mkinstalldirs: New, from elsewhere.
22 * Makefile.in: Use it.
24 Mon Nov 1 00:48:34 1993 Francois Pinard (pinard@lagrande.IRO.UMontreal.CA)
26 * Makefile.in (clean): Delete ptx, not the obsolete $(PROGS).
28 Sun Oct 31 15:04:57 1993 Francois Pinard (pinard@raptor.IRO.UMontreal.CA)
30 * ptx.c (alloc_and_compile_regex): Zero out the whole allocated
31 pattern, not just a few fields.
33 * ptx.c (alloc_and_compile_regex): Clarify error message.
35 Thu Oct 28 08:29:29 1993 Francois Pinard (pinard@compy.IRO.UMontreal.CA)
37 * ptx.c (print_copyright): Deleted. Rather use a "copyright"
38 variable, print to standard output instead of standard error.
40 * ptx.c: Use error instead of fprintf (stderr, ...).
42 * ptx.c: Rename fold_lower_to_upper to ignore_case.
44 Wed Oct 27 18:41:52 1993 Francois Pinard (pinard@lagrande.IRO.UMontreal.CA)
46 * ptx.c: Add option -M for using another macro name than "xx".
47 Reported by Thorsten Ohl <ohl@physics.harvard.edu>.
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>.
55 * ptx.c (main): Add --help and --version processing.
56 (print_version): Deleted.
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>.
64 Tue Oct 26 08:39:14 1993 Francois Pinard (pinard@icule)
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.
70 * ptx.c: Remove sizeof_occurs and OCCURS_ALIGNMENT complexity.
71 The memory savings did not justify the portability headaches.
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>.
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>.
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>.
85 * Makefile.in (dist): Include examples/ in distribution.
87 Mon Oct 25 15:46:16 1993 Francois Pinard (pinard@icule)
89 * ptx.c: Change --display-width to --width, for consistency with
92 * examples/ajay/: New files.
93 Reported by Ajay Shah <ajayshah@cmie.ernet.in>.
94 Reported by Rakesh Chauhan <rk@cmie.ernet.in>.
96 * examples/luke/: New files.
97 Reported by Luke Kendall <luke@research.canon.oz.au>.
99 * examples/latex/: New files.
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>.
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.
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.
114 Wed Jun 9 15:01:28 1993 Francois Pinard (pinard@icule)
116 * Makefile.in (dist): Replace "echo `pwd`" by a mere "pwd".
119 Sat May 22 20:18:31 1993 Francois Pinard (pinard@icule)
121 * Makefile.in: Replace $(PROGS) by ptx.
123 * diacrit.h: Change `c' to `chr', better protect it.
125 * lib/COPYING.LIB: Deleted.
126 * lib/Makefile.in: Adjust accordingly.
128 Sat Feb 6 15:03:13 1993 Francois Pinard (pinard@icule)
130 * Makefile.in, lib/Makefile.in: In dist goals, ensure 777 mode for
131 directories, so older tar's will restore file modes properly.
133 Sun Jan 17 15:42:35 1993 Francois Pinard (pinard@icule)
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>.
139 Tue Jan 12 09:21:22 1993 Francois Pinard (pinard at icule)
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.
152 * Spelling fixes in various files.
153 Reported by Jim Meyering <meyering@cs.utexas.edu>.
155 Thu Jan 7 20:19:25 1993 Francois Pinard (pinard at icule)
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.
169 Fri Jan 1 19:52:49 1993 Francois Pinard (pinard at icule)
171 * Makefile.in, lib/Makefile.in: Reinstate $(CPPFLAGS), use it.
172 Richard wants it there. Remove $(ALLFLAGS) and reequilibrate.
174 Sun Dec 27 05:57:55 1992 Francois Pinard (pinard at icule)
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.
181 * Makefile, lib/Makefile.in: Define CHAR_SET_SIZE for SYNTAX_TABLE
184 * configure.in: Replace AC_USG by AC_HAVE_HEADERS(string.h).
185 Cleanup and reorganize a little.
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.
198 * gptx.c (perror_and_exit): Deleted. Use error() directly.
200 * gptx.c: Remove unneeded prototypes for system library routines.
202 * gptx.c (compare_words, compare_occurs): #define first and second
203 instead of using an intermediate variable.
205 * configure.in: Use AC_CONST.
206 * gptx.h: Do not define const.
207 * Define volatile dependent on __GNUC__, not __STDC__, and define
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.
217 Fri Nov 13 00:10:31 1992 Francois Pinard (pinard at icule)
219 * Makefile.in (dist): chmod a+r before making the tar file.
221 Tue Oct 6 12:47:00 1992 Francois Pinard (pinard at icule)
223 * {,doc/,lib/,src/}Makefile.in: Use exec_prefix. Add `uninstall'.
225 Wed Aug 19 16:02:09 1992 Francois Pinard (pinard at icule)
227 * ansi2knr.c: New file, from Ghostscript distribution.
228 * gptx.c: Get rid of many __STDC__ tests.
231 Fri Aug 14 22:53:05 1992 Francois Pinard (pinard at icule)
233 * gptx.c: Use HAVE_MCHECK instead of MCHECK_MISSING.
234 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS.
236 * configure.in: Autoconfigure for mcheck and strerror.
237 Reported by Bernd Nordhausen <bernd@iss.nus.sg>.
239 Thu Jun 18 09:15:12 1992 Francois Pinard (pinard at icule)
241 * configure.in, all Makefile's: Adapt to Autoconf 0.118.
243 Sun Feb 2 16:23:47 1992 Francois Pinard (pinard at icule)
245 * gptx.c (main): Returns int.
247 Tue Dec 10 09:53:21 1991 Francois Pinard (pinard at icule)
249 * gptx.c (usage_and_exit): Print --OPTION instead of +OPTION.
251 Wed Dec 4 10:31:06 1991 Francois Pinard (pinard at icule)
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>.
258 Mon Dec 2 10:41:43 1991 Francois Pinard (pinard at icule)
260 * gptx.c: Removed comma at end of enum.
262 * version.c: Add a few missing `const's.
264 * gptx.c: Add prototypes for close, fstat, open, perror and read
267 * gptx.c: Remove useless alloca declaration.
269 Sat Nov 9 20:03:37 1991 Francois Pinard (pinard at icule)
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.
275 Thu Nov 7 11:20:38 1991 Francois Pinard (pinard at icule)
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>.
281 * configure.in: Take care of POSIXish ISC.
282 Reported by Karl Berry <karl@cs.umb.edu>.
284 Tue Nov 5 09:42:58 1991 Francois Pinard (pinard at icule)
286 * configure.in, Makefile.in: Do not absolutize $(srcdir), because
287 this could create problems with automounters.
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.
293 Mon Oct 28 14:39:36 1991 Francois Pinard (pinard at icule)
295 * configure.in: New file.
296 * configure: Automatically generated from file configure.in
297 and David MacKenzie's autoconf.
299 Sat Oct 19 20:06:28 1991 Francois Pinard (pinard at icule)
301 * configure: Use ANSI header files if present, even with non ANSI
303 Reported by David MacKenzie <djm@eng.umd.edu>.
305 Tue Oct 15 08:43:13 1991 Francois Pinard (pinard at icule)
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>.
311 Fri Oct 11 15:19:42 1991 Francois Pinard (pinard at icule)
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.
318 Fri Oct 10 18:04:21 1991 Francois Pinard (pinard at icule)
322 Wed Oct 9 16:13:42 1991 Francois Pinard (pinard at icule)
324 * configure, Makefile.in: New files.
325 * Makefile, GNUmakefile, Depends: Deleted.
327 * gptx.c: Change -A output from `FILE(NN):' to `FILE:NN:'.
329 * gptx.c, gptx.h, version.c: Reinstate __STDC__ tests.
331 Tue Jun 25 11:35:32 1991 Francois Pinard (pinard at icule)
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.
337 * gptx.c: Call initialize_regex sooner, to ensure folded_chars is
338 properly initialized when -f and -i are simultaneously used.
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.
346 * gptx.h: Cleanup. Don't duplicate stdlib.h.
348 Wed Dec 5 18:00:23 1990 Francois Pinard (pinard at icule)
350 * gptx.c (usage_and_exit): Change -C explanation.
352 Sun Oct 28 16:11:36 1990 Francois Pinard (pinard at icule)
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.
358 Wed Jul 25 12:20:45 1990 Francois Pinard (pinard at icule)
360 * ctype.[ch]: Linked from my library.
362 Wed Jul 11 10:53:13 1990 Francois Pinard (pinard at icule)
364 * bumpalloc.h: Linked from my library.
366 Sun Aug 5 13:17:25 1990 Francois Pinard (pinard at icule)
370 * gptx.c: Implement IGNORE and PIGNORE defines.
372 * gptx.c: Implement special character protection for roff and TeX
373 output, through the edited_flag array.
375 Fri Aug 3 12:47:35 1990 Francois Pinard (pinard at icule)
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
383 Wed Aug 1 12:00:07 1990 Francois Pinard (pinard at icule)
385 * gptx.[hc]: Define and use OCCURS_ALIGNMENT, to avoid those
386 `Bus error's on Sparcs.
388 Fri Jul 27 12:04:40 1990 Francois Pinard (pinard at icule)
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,
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,
399 * gptx.c (perror_and_exit): New function, use it where convenient.
401 Thu Jul 26 13:28:13 1990 Francois Pinard (pinard at icule)
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.
407 Wed Jul 25 12:20:45 1990 Francois Pinard (pinard at icule)
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.
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.
417 * gptx.c: (find_occurs_in_text): Maintain the maximum length of
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.
423 Sun Jul 22 09:18:21 1990 Francois Pinard (pinard at icule)
425 * gptx (alloc_and_compile_regex): Realloc out all extra allocated
428 Mon Jul 16 09:07:25 1990 Francois Pinard (pinard at icule)
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.
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.
438 Sun Jul 15 17:28:39 1990 Francois Pinard (pinard at icule)
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
444 Sat Jul 14 10:54:21 1990 Francois Pinard (pinard at icule)
446 * gptx.[ch], version.c: Use prototypes in all header
447 functions. Add some missing const declarations.
449 Fri Jul 13 10:16:34 1990 Francois Pinard (pinard at icule)
451 * gptx.c: Enforce ptx compatibility mode by disallowing normal
452 mode extensions. Disallow -p if extensions are used.
454 * gptx.c: Finish implementation of Ignore and Only files.
456 Wed Jul 11 10:53:13 1990 Francois Pinard (pinard at icule)
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.
462 Tue Jul 10 09:02:26 1990 Francois Pinard (pinard at icule)
464 * gptx.c: Add -L option, `latin1_charset' variable and support.
466 * gptx.c: Remove old generate_roff and generate_tex variables,
467 replace with output_format which is of enum type.
469 Mon Jul 9 10:40:41 1990 Francois Pinard (pinard at icule)
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.
475 * gptx.c (alloc_and_compile_regex): New function.
477 Sun Jul 8 17:52:14 1990 Francois Pinard (pinard at icule)
479 * gptx.c: Make a more systematic use of SKIP_* macros, to get rid
480 of explicit ' ' references when possible.
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.
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
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.
497 Sat Jul 7 08:50:40 1990 Francois Pinard (pinard at icule)
499 * gptx.c: Change PRINT_SPACES and PRINT_FIELD macros to
500 print_spaces and print_field routines, respectively.
502 Fri Jul 6 09:44:39 1990 Francois Pinard (pinard at icule)
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.
508 * gptx.c: Move the inline code to reallocate the text buffer into
509 reallocate_text_buffer. Correct a small bug in this area.
511 * gptx.c: Modify -F to accept a STRING argument, modify output
512 routines to handle truncation marks having more than one
515 Thu Jul 5 11:08:59 1990 Francois Pinard (pinard at icule)
517 * gptx.c: Add -F option and logic.
519 * gptx.c: Select ptx compatibility mode if program is
520 installed under the name `ptx'. Install both gptx and ptx.
522 Thu Jun 7 17:21:25 1990 Francois Pinard (pinard at icule)
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.
528 Sat Apr 14 20:01:09 1990 Francois Pinard (pinard at icule)
532 * gptx.c: Removed limitations on table sizes: it should now go
533 until an `Out of memory' error. Use xmalloc. Rename some
536 * version.c, gptx.c (usage_and_exit): Add -C option to print
539 Mon Mar 12 17:59:42 1990 Francois Pinard (pinard at icule)
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.
546 * gptx.c: GCC linted.