-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog
4111 lines (3302 loc) · 173 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2021-01-30 Bruno Haible <[email protected]>
Mark Autoconf 2.71 as supported.
* autogen.sh: Update comment.
2020-12-08 Bruno Haible <[email protected]>
Mark Autoconf 2.70 as supported.
* autogen.sh: Update comment.
2020-10-04 Bruno Haible <[email protected]>
Fix warnings from Autoconf 2.69c.
* configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments.
* doc/configure.ac: Likewise.
* lib/configure.ac: Likewise.
* src/configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments. Use
AC_CACHE_CHECK, AC_LANG_PUSH/AC_LANG_POP, AC_COMPILE_IFELSE
* tests/configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments. Use
ac_cv_c_compiler_gnu instead of ac_cv_prog_gcc, and
ac_cv_cxx_compiler_gnu instead of ac_cv_prog_gxx. Don't use 'test' with
option '-a'.
2020-08-30 Bruno Haible <[email protected]>
Make the code C++17 compliant.
* lib/getline.cc (getstr): Don't use the 'register' keyword.
2020-08-29 Bruno Haible <[email protected]>
Fix link error on native Windows with MSVC/clang.
* tests/test2.c (SET_BINARY): On native Windows, use _setmode, not
setmode.
2020-08-29 Bruno Haible <[email protected]>
Update after gnulib changed.
* configure.ac (AC_PREREQ): Require Autoconf >= 2.64.
* doc/configure.ac (AC_PREREQ): Likewise.
* lib/configure.ac (AC_PREREQ): Likewise.
* src/configure.ac (AC_PREREQ): Likewise.
* tests/configure.ac (AC_PREREQ): Likewise.
* autogen.sh: Update comment.
2020-02-10 Bruno Haible <[email protected]>
Rely entirely on the GNU Build System.
* Makefile.vms: Remove file.
* INSTALL.vms: Remove file.
* Makefile.in (SOURCE_FILES): Remove them.
* Makefile.devel (src/config.h_vms): Remove target.
(totally-clean): Update.
* src/Makefile.in (GENERATED_FILES): Remove config.h_vms.
2018-10-24 Bruno Haible <[email protected]>
Update after gnulib changed.
* configure.ac (AC_PREREQ): Require Autoconf >= 2.63.
* doc/configure.ac (AC_PREREQ): Likewise.
* lib/configure.ac (AC_PREREQ): Likewise.
* src/configure.ac (AC_PREREQ): Likewise.
* tests/configure.ac (AC_PREREQ): Likewise.
* autogen.sh: Update comment.
2018-09-16 Bruno Haible <[email protected]>
Fix "Unescaped left brace in regex" warnings from Perl 5.26.
Reported and patch by Jehan <[email protected]> <[email protected]> at
<https://savannah.gnu.org/bugs/?54088>.
* doc/texi2html: Escape braces in regular expressions.
2018-09-14 Bruno Haible <[email protected]>
doc: Assume texinfo 4.0 or newer.
* doc/gperf.texi: Omit Next, Prev, Up fields from @node lines.
2018-09-08 Bruno Haible <[email protected]>
Avoid "implicit fallthrough" warnings also from clang.
Reported by Nico Weber <[email protected]> in
<https://savannah.gnu.org/bugs/?53029>.
Clang emits these warnings in C++11 mode only, see
<https://clang.llvm.org/docs/AttributeReference.html#fallthrough>,
and only in clang 3.9 or newer, see
<https://releases.llvm.org/3.9.0/tools/clang/docs/ReleaseNotes.html>.
To avoid them, either [[fallthrough]] or the (nearly equivalent) older
[[clang::fallthrough]] can be used, see
<https://llvm.org/viewvc/llvm-project?view=revision&revision=262881>.
* src/output.cc (Output::output_hash_function): Enhance the fallthrough
marker.
* tests/*.exp: Update.
2018-09-08 Bruno Haible <[email protected]>
Fix failure of "make check -j2".
Reported and fix provided by Bernhard M. Wiedemann in
<https://savannah.gnu.org/bugs/?53208>.
* tests/Makefile.in (check-test): Depend on 'check-ada'.
2018-09-08 Bruno Haible <[email protected]>
Don't print uninitialized hash values in debug mode.
Reported by Frank Wojcik <[email protected]> in
<https://savannah.gnu.org/patch/?9560>.
* src/output.cc (output_keyword_entry): Add an 'is_duplicate' argument.
(Output::output_keyword_table): Update callers.
2018-09-08 Bruno Haible <[email protected]>
Improve the speed of the positions search.
Reported by Frank Wojcik <[email protected]> in
<https://savannah.gnu.org/patch/?9562>.
* src/search.cc (Search::find_positions): Double the speed of step 4.
2018-09-08 Bruno Haible <[email protected]>
Really prefer more efficient hash functions over less efficient ones.
Reported by Frank Wojcik <[email protected]> in
<https://savannah.gnu.org/patch/?9561>.
* src/search.cc (Search::find_positions): In step 4, make sure a less
efficient hash function does not replace a more efficient one. Also,
include i3 = -1 among the search.
2018-09-08 Bruno Haible <[email protected]>
Correct width of columns when outputting the asso_values array.
Patch by Frank Wojcik <[email protected]>.
* src/output.cc (Output::output_hash_function): Increase the
field_width by 1 if _max_hash_value+1 is a power of 10.
2018-07-25 Bruno Haible <[email protected]>
Avoid "implicit fallthrough" warnings in the generated code.
Reported by Phil Willoughby at
<https://lists.gnu.org/archive/html/bug-gperf/2018-07/msg00002.html>.
* src/output.cc (Output::output_hash_function): Emit a more elaborate
fallthrough marker.
* tests/*.exp: Update.
2018-04-24 Bruno Haible <[email protected]>
Support input files with CR/LF line terminators.
Reported at <https://savannah.gnu.org/bugs/?53732>.
* src/input.cc (Input::read_input): Convert CR/LF sequences to LF.
2018-01-27 Bruno Haible <[email protected]>
Rename some files.
* INSTALL.windows: Renamed from README.windows.
* INSTALL.vms: Renamed from README.vms.
* Makefile.in (SOURCE_FILES): Update.
2018-01-23 Bruno Haible <[email protected]>
Don't use an undocumented Autoconf macro.
* src/configure.ac: Use AC_CONFIG_HEADERS instead of AC_CONFIG_HEADER.
2017-07-15 Bruno Haible <[email protected]>
Get rid of autom4te.cache directories (left over from autoconf).
* Makefile.devel (configure, */configure, src/config.h.in): Remove
autom4te.cache directory after running autoconf or autoheader.
2017-04-16 Bruno Haible <[email protected]>
Initialize the Keyword::_lineno field through the constructor.
* src/keyword.h (struct Keyword, struct KeywordExt): Add lineno argument
to constructor.
(Keyword_Factory::create_keyword): Add lineno argument.
* src/keyword.icc (struct Keyword, struct KeywordExt): Add lineno
argument to constructor.
* src/main.cc (KeywordExt_Factory::create_keyword): Pass lineno argument
to KeywordExt constructor.
* src/input.cc (Input::read_input): Pass lineno to create_keyword.
2017-03-31 Bruno Haible <[email protected]>
Fix doc build error with perl 5.22.
* doc/texi2html (update_sec_num): Omit defined(...) for array.
2017-01-10 Bruno Haible <[email protected]>
Update some URL.
* README: Update.
2017-01-02 Marcel Schaible <[email protected]>
* gperf-3.1 released.
2016-12-29 Bruno Haible <[email protected]>
Make autogen.sh more user-friendly.
* autogen.sh: Emit a message at the end, if everything succeeded.
2016-12-03 Bruno Haible <[email protected]>
Make Makefile.devel more useful for the users of the released tarball.
* Makefile.devel (totally-clean): New target.
* autogen.sh: Invoke it and 'all'.
2016-11-27 Bruno Haible <[email protected]>
Fix build with mingw.
* README.windows: Augment PATH for mingw, so that it finds libstdc++.
2016-11-27 Bruno Haible <[email protected]>
Assume the available C compiler supports ANSI C. Remove K&R C cruft.
* lib/getopt.h: Assume 'const' is defined. Use ANSI C prototypes.
* lib/getopt.c: Assume 'const' is defined. Use ANSI C prototypes.
Include <stddef.h>. Declare strcmp and strlen.
* lib/getopt1.c: Assume 'const' and NULL are defined. Use ANSI C
prototypes.
* lib/getopt.h.patch: Remove file.
* lib/getopt.c.patch: Remove file.
* lib/Makefile.in (SOURCE_FILES): Remove them.
* tests/jstest*.gperf: Assume 'const' is defined.
* tests/test.c: Use ANSI C prototypes.
(in_word_set): Fix prototype.
* tests/test2.c: Use ANSI C prototypes.
(in_word_set): Fix prototype.
Reported by Erik Johansson at <https://savannah.gnu.org/patch/?7382>.
2016-11-26 Bruno Haible <[email protected]>
Drop the inline specifiers from the generated lookup function.
It's not adequate because
- this lookup function is quite large in fact, not worth inlining,
- with gcc -O0, it leads to link errors, see
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41194#c2>
- the hash function is 'static', the lookup function is non-static,
but references from non-static inline functions to static functions
and variables are forbidden, see ISO C 99 section 6.7.4.(3).
* src/output.cc (Output::output_lookup_function): Don't emit an inline
specifier.
* tests/*.exp: Update.
Reported by Sebastian Freundt and Sergii Strelkovskyi
at <https://savannah.gnu.org/bugs/?37071>.
2016-11-26 Bruno Haible <[email protected]>
Change mailing list address to <[email protected]>.
* src/output.cc (Output::output): Change bug report address to
* src/options.cc (Options::long_usage): Likewise.
* README: Likewise.
* doc/gperf.texi (Contributors): Likewise.
* tests/*.{c,exp,out}: Update.
Reported by Eric Blake <[email protected]>
at <https://lists.gnu.org/archive/html/bug-gperf/2014-10/msg00000.html>.
2016-11-26 Bruno Haible <[email protected]>
Change the 'len' parameter type to 'size_t'.
* src/output.cc (output_upperlower_strncmp, output_upperlower_memcmp,
Output::output_hash_function, Output::output_lookup_function,
Output::output): Emit declarations with 'size_t len' instead of
'unsigned int len'.
* tests/*.exp: Update.
* doc/gperf.texi (Output Format): Change declarations of 'hash' and
'in_word_set'.
* NEWS: Mention the change.
Reported by Pedro Giffuni <[email protected]>
at <https://lists.gnu.org/archive/html/bug-gperf/2014-08/msg00000.html>.
2016-11-26 Bruno Haible <[email protected]>
Use proper 'ar' program when cross-compiling or when AR is specified.
* lib/configure.ac (AR): Determine through AC_CHECK_TOOL.
* lib/Makefile.in (AR): Use value determined by 'configure'.
Reported by György Andrasek <[email protected]>
at <https://lists.gnu.org/archive/html/bug-gperf/2014-04/msg00000.html>.
2016-11-26 Bruno Haible <[email protected]>
Avoid 'warning: cast from pointer to integer of different size'
in output code on 64-bit native Windows platforms.
* src/output.cc (output_keyword_entry): Cast pointer to 'size_t',
not to 'long', before casting it further to 'int'.
* tests/*.exp: Update.
Reported at <https://savannah.gnu.org/bugs/?45330>.
2016-11-26 Bruno Haible <[email protected]>
Don't use 'register' storage-class specifier in C++ output code.
* src/output.cc (register_scs): New variable.
(Output::Output): Initialize it.
(output_upperlower_strcmp, output_upperlower_strncmp,
output_upperlower_memcmp, Output::output_hash_function,
Output::output_lookup_function_body, Output::output_lookup_function):
Use it.
Reported at <https://savannah.gnu.org/bugs/?44887>.
2016-11-26 Bruno Haible <[email protected]>
Avoid 'warning: use of old-style cast' in output code.
* src/output.h (Output::output_asso_values_index): New method
declaration.
* src/output.cc (Output::output_asso_values_index): New method,
extracted from Output::output_asso_values_ref.
(Output::output_asso_values_ref): Use it. In C++ mode, emit C++ style
cast syntax.
Reported at <https://savannah.gnu.org/bugs/?44887>.
2016-11-26 Bruno Haible <[email protected]>
Avoid 'warning: implicit conversion changes signedness' in output code.
* src/output.cc (Output::output_lookup_function_body): Emit declaration
of 'key' as 'unsigned int', not 'int'. Optimize comparison accordingly.
* tests/*.exp: Update.
Reported at <https://savannah.gnu.org/bugs/?44887>.
2016-11-26 Bruno Haible <[email protected]>
Avoid 'warning: implicit conversion changes signedness' in output code.
* src/output.cc (Output::output_hash_function): Emit declaration of
'hval' as 'unsigned int', not 'int'.
* tests/*.exp: Update.
Reported at <https://savannah.gnu.org/bugs/?44887>.
2016-11-25 Bruno Haible <[email protected]>
Fix g++ -Wall warnings.
* src/search.cc (Search::prepare, Search::find_positions,
Search::optimize): Add braces in 'if (...) for (...)', to pacify
g++ 4.6.3 warnings "suggest explicit braces to avoid ambiguous 'else'"
(although there is no 'else'!).
2016-11-25 Bruno Haible <[email protected]>
Fix typo in autogen.sh, introduced on 2012-07-01.
* autogen.sh: Fix typo.
2016-11-25 Bruno Haible <[email protected]>
Fix "make check" error on Mac OS X.
* tests/Makefile.in (POSTPROCESS_FOR_MINGW): Run 'sed' in the C locale.
This fixes an error "sed: RE error: illegal byte sequence" on Mac OS X
when producing languages.out.
Reported at <https://savannah.gnu.org/bugs/?45329>.
2016-11-23 Bruno Haible <[email protected]>
Update installation instructions for Windows.
* README.windows: Assume a 64-bit Windows. Explain both 32-bit and
64-bit builds. Revamp instructions for the MS Visual C/C++ tool chain
and for Cygwin.
2016-11-23 Bruno Haible <[email protected]>
Drop the nickname "woe32".
* README.windows: Renamed from README.woe32.
* Makefile.in (SOURCE_FILES): Update.
2016-11-19 Bruno Haible <[email protected]>
doc: Prepare for possible use of GNU texi2any.
* doc/Makefile.in (TEXI2ANY): New variable.
(gperf_0.html): New rule.
2016-11-19 Bruno Haible <[email protected]>
doc: Don't generate Postscript-formatted doc by default.
* doc/Makefile.in (all): Don't depend on 'ps'.
2014-10-15 Eric Blake <[email protected]>
doc: fix invalid use of @itemx
* doc/gperf.texi (Output Details): Use correct macro.
2012-07-01 Bruno Haible <[email protected]>
Fix "make clean" with MSVC.
With MSVC 9, a program is created together with a .manifest file.
* src/Makefile.in (clean): Remove also the .manifest file.
* tests/Makefile.in (clean): Remove also the .manifest files.
2012-07-01 Bruno Haible <[email protected]>
Update expected test results.
* tests/test-6.exp: Expect to see --constants-prefix option.
2012-07-01 Bruno Haible <[email protected]>
Fix compilation error with MSVC.
* src/output.cc: Include config.h.
(DYNAMIC_ARRAY, FREE_DYNAMIC_ARRAY): New macros, copied from
src/search.cc.
(output_constant): Use them.
2012-07-01 Bruno Haible <[email protected]>
Remove old infrastructure for building with MSVC.
* autogen.sh: Don't remove src/config.h.msvc.
* Makefile.devel (src/config.h.msvc): Remove rule.
(all): Don't depend on it.
* src/Makefile.in (GENERATED_FILES): Remove config.h.msvc.
* src/.gitignore: Remove config.h.msvc.
* Makefile.msvc: Remove file.
* Makefile.in (SOURCE_FILES): Remove Makefile.msvc.
2012-07-01 Bruno Haible <[email protected]>
Support for building with MSVC much like for Unix.
* autogen.sh: Fetch also 'compile' and 'ar-lib'.
* Makefile.in (IMPORTED_FILES): Add build-aux/compile, build-aux/ar-lib.
* build-aux/.gitignore: Ignore also 'compile' and 'ar-lib'.
* lib/Makefile.in: Use $(OBJEXT) where suitable.
* README.woe32: Change instructions for compiling with MSVC.
2012-07-01 Bruno Haible <[email protected]>
Move build infrastructure files to build-aux/.
* autogen.sh: Copy install-sh and mkinstalldirst into build-aux/.
* configure.ac: Invoke AC_CONFIG_AUX_DIR.
* Makefile.in (IMPORTED_FILES): Update.
(distdir): Create subdirectories as needed.
* doc/Makefile.in (MKINSTALLDIRS): Update.
* src/Makefile.in (MKINSTALLDIRS): Update.
* .gitgnore: Remove install-sh, mkinstalldirs.
* build-aux/.gitignore: New file.
2012-07-01 Bruno Haible <[email protected]>
Distribute install-sh.
* autogen.sh: Fetch also install-sh.
* Makefile.in (IMPORTED_FILES): Add install-sh.
* configure.ac: Remove hack with AC_CONFIG_AUX_DIR_DEFAULT.
* .gitignore: Add install-sh.
2012-07-01 Bruno Haible <[email protected]>
Remove files distributed via gnulib from version control.
* autogen.sh: Fetch mkinstalldirs from the gnulib repository.
* mkinstalldirs: Remove file.
* .gitignore: Add mkinstalldirs.
2012-07-01 Bruno Haible <[email protected]>
Remove autotools generated files from version control.
* autogen.sh: New file.
* configure: Remove file.
* lib/configure: Remove file.
* src/configure: Remove file.
* tests/configure: Remove file.
* doc/configure: Remove file.
* src/config.h.in: Remove file.
* src/config.h.msvc: Remove file.
* src/config.h_vms: Remove file.
* .gitignore: Ignore configure.
* lib/.gitignore: New file.
* src/.gitignore: New file.
* tests/.gitignore: New file.
* doc/.gitignore: Ignore configure.
2012-07-01 Bruno Haible <[email protected]>
Turn doc/gperf.1 into a distributed built file.
* doc/gperf.1: Remove file.
* Makefile.devel (doc/gperf.1): Remove rule.
(all): Don't depend on it.
* doc/Makefile.in (man, gperf.1, gperf.1-update): New rules.
(all): Depend on man.
(distdir): Depend on gperf.1-update.
(GENERATED_FILES): Remove gperf.1.
(DISTRIBUTED_BUILT_FILES): Add gperf.1.
* doc/.gitignore: Add gperf.1.
* configure (AC_INIT): Rely on doc/gperf.texi, not doc/gperf.1.
* doc/configure (AC_INIT): Rely on gperf.texi, not gperf.1.
2012-07-01 Bruno Haible <[email protected]>
Remove distributed built files from version control.
* doc/.gitignore: New file.
* doc/gperf.info: Remove file.
* doc/gperf.dvi: Remove file.
* doc/gperf.ps: Remove file.
* doc/gperf.pdf: Remove file.
* doc/gperf.html: Remove file.
* doc/gperf_toc.html, doc/gperf_[0-9].html, doc/gperf_[0-9][0-9].html:
Remove files.
2012-07-01 Bruno Haible <[email protected]>
Allow editor backup files in git checkouts.
* .gitignore: New file.
2012-07-01 Bruno Haible <[email protected]>
Create tarballs through an Automake-like "make dist" command.
* Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
(PACKAGE, VERSION, TAR, GZIP): New macros.
(dist): New rule.
* doc/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
* lib/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
* src/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
* tests/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
2012-04-28 Bruno Haible <[email protected]>
* configure: Regenerated with autoconf-2.69.
* doc/configure: Likewise.
* lib/configure: Likewise.
* src/configure: Likewise.
* tests/configure: Likewise.
2011-01-16 Bruno Haible <[email protected]>
* src/options.cc (Options::parse_options): Bump copyright year.
New option --constants-prefix.
* src/options.h (Options): Add member functions get_constants_prefix,
set_constants_prefix. Add member _constants_prefix.
* src/options.icc (Options::get_constants_prefix): New functions.
* src/options.cc (DEFAULT_CONSTANTS_PREFIX): New constant.
(Options::long_usage): Document --constants-prefix option.
(Options::Options): Initialize _constants_prefix member.
(Options::set_constants_prefix): New function.
(long_options): Add --constants-prefix option.
(Options::parse_options): Handle --constants-prefix option.
* src/input.cc (Input::read_input): Handle %define constants-prefix
declaration.
* src/output.cc (output_constant): New function.
(Output::output_constants): Invoke it.
(Output::output_lookup_function_body): Prefix each reference to a
constant with the constants prefix.
* doc/gperf.texi: Bump copyright year.
(Gperf Declarations): Document %define constants-prefix.
(Controlling Identifiers): New section.
(Output Details): Document --constants-prefix option.
* NEWS: Mention the changes.
Reported by Julian Zubek <[email protected]>.
2011-01-16 Bruno Haible <[email protected]>
* configure: Regenerated with autoconf-2.68.
* doc/configure: Likewise.
* lib/configure: Likewise.
* src/configure: Likewise.
* tests/configure: Likewise.
2010-07-31 Bruno Haible <[email protected]>
* configure: Regenerated with autoconf-2.67.
* doc/configure: Likewise.
* lib/configure: Likewise.
* src/configure: Likewise.
* tests/configure: Likewise.
2010-07-04 Bruno Haible <[email protected]>
* configure: Regenerated with autoconf-2.66.
* doc/configure: Likewise.
* lib/configure: Likewise.
* src/configure: Likewise.
* tests/configure: Likewise.
* src/config.h.in: Likewise.
* src/config.h.msvc: Likewise.
* src/config.h_vms: Likewise.
2010-03-30 Bruno Haible <[email protected]>
Modernize README.woe32.
* README.woe32: Mention the mingw and Cygwin environments.
2009-12-22 Eric Blake <[email protected]> (tiny change)
Avoid gcc warnings on Cygwin.
* lib/getopt.c (_getopt_internal): Add braces. Fix indentation.
* tests/smtp.gperf: Cast arguments of <ctype.h> functions.
* tests/test2.c: Include <io.h>.
2009-12-22 Bruno Haible <[email protected]>
Avoid g++ warnings.
* src/options.cc (Options::print_options): Add parentheses.
* src/output.cc (Output::output_lookup_array): Cast fprintf argument.
2009-12-22 Bruno Haible <[email protected]>
Support CPPFLAGS as mandated by GNU standards.
* lib/Makefile.in (CPPFLAGS): Use autoconf determined value.
* src/Makefile.in (CPPFLAGS): Likewise.
* tests/Makefile.in (CPPFLAGS): Likewise.
(check-c, check-ada, check-modula3, check-pascal, check-lang-utf8,
test.$(OBJEXT), check-lang-ucs2, test2.$(OBJEXT), check-smtp): Use
CPPFLAGS when compiling a .c file.
(VALIDATE): Pass also CPPFLAGS.
* tests/validate: Use CPPFLAGS when compiling a C or C++ file.
2009-12-20 Bruno Haible <[email protected]>
* doc/gperf.info: Regenerated.
* doc/gperf*.html: Likewise.
* doc/gperf.dvi: Likewise.
* doc/gperf.ps: Likewise.
* doc/gperf.pdf: Likewise.
* tests/*.exp: Update.
Change the default language to ANSI-C.
* src/options.cc (Options::long_usage): Mention new default language.
(Options::Options): Change default of _option_word.
(Options::set_language): Change fallback.
* doc/gperf.texi (Gperf Declarations, Output Language): Mention new
default language.
* NEWS: Mention the change.
Reported by Albert Cahalan <[email protected]>.
* src/version.cc (version_string): Bump to 3.1.
* doc/gperf.texi: Bump version.
2009-12-20 Bruno Haible <[email protected]>
Allow processing the tests with parallel make.
* tests/Makefile.in (check-link-c, check-link-c++): Remove rules.
(test.$(OBJEXT), test2.$(OBJEXT)): New rules.
(check-c): Add commands for building cout. Depend on test.$(OBJEXT).
(check-ada, check-modula3, check-pascal, check-lang-utf8): Depend on
test.$(OBJEXT).
(check-lang-ucs2): Depend on test2.$(OBJEXT).
Reported by Bryan Østergaard <[email protected]>.
2009-02-01 Brendan Kehoe <[email protected]>
* gperf-3.0.4 released.
* src/version.cc: Bump to 3.0.4.
* tests/*.exp: Bump to 3.0.4 in header.
* doc/gperf.1: Regenerate with gperf 3.0.4.
* doc/gperf.texi: Adjust version.
* doc/texinfo.tex: Update to copy from texinfo-4.13.
2009-02-01 Bruno Haible <[email protected]>
* tests/Makefile.in (LDFLAGS, OBJEXT, EXEEXT): New variables.
(check-link-c, check-ada, check-modula3, check-pascal, check-lang-utf8,
check-lang-ucs2): Use OBJEXT and LDFLAGS.
(check-smtp): Use LDFLAGS.
(clean): Use EXEEXT as suffix of programs to be removed.
* aclocal.m4 (CL_PROG_INSTALL): Fix detection of broken AIX installbsd
program.
* tests/Makefile.in (clean): Remove *.dSYM directories left over by gcc
on MacOS X 10.5.
* src/options.cc (Options::parse_options): Bump copyright year.
2009-01-19 Bruno Haible <[email protected]>
Don't include the length in the hash function if all keywords have the
same length.
* src/search.h (Search): Add _hash_includes_len field.
* src/search.cc (Search::prepare): Initialize it.
(Search::count_duplicates_tuple, Search::count_duplicates_multiset,
Search::prepare_asso_values, Search::find_asso_values,
Search::compute_hash): Use it instead of !option[NOLENGTH].
* src/output.h (Output): New field _hash_includes_len. Add it as
constructor argument.
* src/output.cc (Output::Output): Add hash_includes_len argument.
(Output::output_hash_function): Use _hash_includes_len instead of
!option[NOLENGTH].
* src/main.cc (main): Pass _hash_includes_len from Search to Output.
* tests/permut2.exp: Updated expected test result.
* tests/permut3.exp: Likewise.
* tests/permutc2.exp: Likewise.
Reported by Behdad Esfahbod <[email protected]>.
2009-01-14 Bruno Haible <[email protected]>
* configure.ac: More consistent m4 quoting.
* src/configure.ac: Likewise.
* lib/configure.ac: Likewise.
* tests/configure.ac: Likewise.
* doc/configure.ac: Likewise.
2009-01-01 Bruno Haible <[email protected]>
* doc/gperf.texi (Gperf Declarations): Mention the C99 standard.
2008-08-23 Bruno Haible <[email protected]>
* doc/gperf.texi (Output Copyright): Reword more carefully.
Suggested by Paul Jarc <[email protected]>.
2008-08-23 Bruno Haible <[email protected]>
* doc/gperf.texi (Output Copyright): Adjust for GPLv3.
2008-08-23 Bruno Haible <[email protected]>
All source files are now under GPLv3+.
* COPYING: Replace with GPLv3.
* **/configure.ac, **/Makefile.*, **/*.h, **/*.c, **/*.cc, **/*.icc:
Change copyright notice to GPLv3+.
* src/options.cc (Options::parse_options): Update --version output
accordingly.
* doc/gperf.texi: Reference the GPLv3.
* doc/gpl-3.0.texi: New file, copied from the gnulib git repository.
* doc/gpl.texinfo: Remove file.
* doc/Makefile.in: Update.
2008-05-06 Bruno Haible <[email protected]>
* doc/gperf.texi: Set @firstparagraphindent.
(Bibliography): Don't indent the entries.
2008-05-06 Bruno Haible <[email protected]>
* doc/gperf.texi (Output Copyright): New section.
Reported by Mike Ingrassia <[email protected]> and
Karice McIntyre <[email protected]>.
2008-04-06 Bruno Haible <[email protected]>
* tests/Makefile.in: Use "LC_ALL=C tr" instead of "tr".
2007-09-08 Bruno Haible <[email protected]>
Change generated code to avoid a warning by GCC 4.2 that the meaning
of __inline will be changed (!).
* src/output.cc (Output::output_lookup_function): Emit the inline
marker also for gcc-4.2 in c99 mode.
* tests/c-parse.exp, tests/charsets.exp, tests/chill.exp,
tests/cplusplus.exp, tests/gpc.exp, tests/incomplete.exp,
tests/java.exp, tests/languages.exp, tests/modula2.exp,
tests/objc.exp, tests/permut2.exp, tests/permut3.exp,
tests/permutc2.exp, tests/test-4.exp: Update.
Reported by Jim Meyering <[email protected]>.
2007-09-08 Bruno Haible <[email protected]>
Allow creating the HTML documentation with texi2html or makeinfo.
* doc/texi2html: New file, from GNU gettext.
* doc/Makefile.in (TEXI2HTML): Invoke it.
(gperf.html, gperf_toc.html): Don't pass option -expandinfo.
* doc/gperf.texi (makeinfo): New variable.
(dircategory, direntry): Enclose in @ifinfo.
(Table of Contents): Move to the beginning except in TeX mode.
2007-04-30 Brendan Kehoe <[email protected]>
* gperf-3.0.3 released.
* src/version.cc: Bump to 3.0.3.
* tests/*.exp: Bump to 3.0.3 in header.
* doc/gperf.1: Regenerate with gperf 3.0.3.
2007-04-06 Bruno Haible <[email protected]>
Improve support for mingw.
* tests/Makefile.in (check-c, check-ada, check-modula3, check-pascal,
check-lang-utf8, check-lang-ucs2): Remove '\r' from output before diff.
(POSTPROCESS_FOR_MINGW): New variable.
(check-test): Use it to postprocess output before diff.
2007-04-04 Bruno Haible <[email protected]>
Support for newer GNU standards.
* doc/configure.ac (mandir): Remove assignment.
* doc/Makefile.in (datarootdir): New variable.
(docdir, dvidir, psdir, pdfdir, htmldir): Use value determined by
autoconf.
* configure.ac: Require autoconf >= 2.60.
* doc/configure.ac: Likewise.
* lib/configure.ac: Likewise.
* src/configure.ac: Likewise.
* tests/configure.ac: Likewise.
* configure: Regenerated with autoconf-2.61.
* doc/configure: Likewise.
* lib/configure: Likewise.
* src/configure: Likewise.
* tests/configure: Likewise.
* src/config.h.in: Likewise.
* src/config.h.msvc: Likewise.
* src/config.h_vms: Likewise.
2007-04-04 Bruno Haible <[email protected]>
* doc/Makefile.in (MAKEINFO): Disable also the LC_MESSAGES and LC_ALL
environment variables.
2007-04-04 Bruno Haible <[email protected]>
* configure.ac: Renamed from configure.in.
* doc/configure.ac: Renamed from doc/configure.in.
* lib/configure.ac: Renamed from lib/configure.in.
* src/configure.ac: Renamed from src/configure.in.
* tests/configure.ac: Renamed from tests/configure.in.
* Makefile.devel: Update.
* INSTALL: Update.
2007-03-31 Bruno Haible <[email protected]>
* tests/test.c (in_word_set): New declaration.
* tests/test2.c (in_word_set): Likewise.
2007-03-31 Bruno Haible <[email protected]>
* src/options.cc (Options::parse_options): Bump copyright year.
2007-03-31 Bruno Haible <[email protected]>
* doc/gperf.texi: Fix typo.
2007-03-31 Bruno Haible <[email protected]>
Change generated code after the meaning of __inline is changed in
GCC 4.3.
* src/output.cc (Output::output_lookup_function): Emit an inline
marker that also works with gcc-4.3 in c99 or gnu99 mode.
* tests/c-parse.exp, tests/charsets.exp, tests/chill.exp,
tests/cplusplus.exp, tests/gpc.exp, tests/incomplete.exp,
tests/java.exp, tests/languages.exp, tests/modula2.exp,
tests/objc.exp, tests/permut2.exp, tests/permut3.exp,
tests/permutc2.exp, tests/test-4.exp: Update.
Reported by Bruce Korb <[email protected]>.
2006-06-29 Brendan Kehoe <[email protected]>
* gperf-3.0.2 released.
* doc/Makefile.in (all): No longer depend on dvi.
2006-01-22 Brendan Kehoe <[email protected]>
* doc/gperf.texi: Update copyright to be 1989-2006.
(UPDATED): Change to 22 January 2006.
* doc/gperf.1 (TH): Fix date.
* configure.in: Update copyright years.
* configure: Regenerate.
* src/Makefile.in: Update copyright years.
* doc/gperf.{dvi,ps,pdf}: Regenerated by manually invoking tex
instead of trying to use texi2dvi, whose run of etex ends up
actually always running pdfetex, thus always recreating gperf.pdf.
2006-01-13 Brendan Kehoe <[email protected]>
* NEWS: Add note about #line directive fix.
* doc/gperf.1: Regenerate with Makefile.devel.
* doc/gperf.texi (UPDATED): Correct to be today.
* doc: Regenerated by doing make in a configured tree.
Requires makeinfo, texi2dvi, texi2pdf, and texi2html.
* configure.in: Add AC_OBJEXT and AC_EXEEXT.
* lib/Makefile.in (OBJEXT): Define for subst.
(OBJECTS): Use $(OBJEXT) instead of '.o'.
* src/Makefile.in: Make dependencies use $(OBJEXT).
(OBJEXT, EXEEXT): Define for subst.
(TARGETPROG): Add $(EXEEXT).
(OBJECTS): Use $(OBJEXT) instead of '.o'.
(clean): Remove *.$(OBJEXT) instead of *.o.
2006-01-13 Bruno Haible <[email protected]>
Fix #line directives for filenames containing backslashes.
* src/output.cc (output_line_directive): New function.
(output_keyword_entry, Output::output): Use it.
Reported by Alexander <[email protected]>.
* src/options.cc (Options::parse_options): Update years in --version
output.
2005-08-29 Brendan Kehoe <[email protected]>
* src/keyword.cc: Tweak comment to avoid nesting.
2005-08-27 Bruno Haible <[email protected]>
Fix missing ranlib detection when cross-compiling.
* aclocal.m4 (CL_PROG_RANLIB): Remove macro.
* lib/configure.in: Use AC_PROG_RANLIB instead of CL_PROG_RANLIB.
2005-07-30 Bruno Haible <[email protected]>
* src/version.cc: Bump version number to 3.0.2.
* doc/gperf.texi: Likewise.
* tests/c-parse.exp, tests/charsets.exp, tests/chill.exp,
tests/cplusplus.exp, tests/gpc.exp, tests/incomplete.exp,
tests/java.exp, tests/languages.exp, tests/modula2.exp,
tests/objc.exp, tests/permut2.exp, tests/permut3.exp,
tests/permutc2.exp, tests/test-4.exp: Update.
2005-07-30 Bruno Haible <[email protected]>
* src/positions.h: Add forward declarations of friend classes.
Needed for compilation with g++ 4.0.
2004-08-22 Bruno Haible <[email protected]>
* tests/Makefile.in (check-lang-syntax): Add test for the
--length-table-name option.
* tests/test-6.exp: Update.
2004-08-21 Bruce Lilly <[email protected]>
* src/input.cc (Input::read_input): Accept length-table-name
declaration.
* src/options.h (Options::get_lengthtable_name,
Options::set_lengthtable_name): New declarations.
(Options): Add field _lengthtable_name.
* src/options.icc (Options::get_lengthtable_name): New inline method.
* src/options.cc (DEFAULT_LENGTHTABLE_NAME): New constant.
(Options::long_usage): Document --length-table-name option.
(Options::Options): Initialize _lengthtable_name field.
(Options::~Options): Update.
(Options::set_lengthtable_name): New method.
(long_options): Add option --length-table-name.
(Options::parse_options): Implement --length-table-name option.
* src/output.cc (Output::output_keylength_table, output_switch_case,
Output::output_lookup_function_body): Use option.get_lengthtable_name.
* doc/gperf.texi (Gperf Declarations): Document %define
length-table-name.
(Output Details): Document --length-table-name option.
2003-06-12 Bruno Haible <[email protected]>
* gperf-3.0.1 released.
* src/version.cc: Bump version number to 3.0.1.
* doc/gperf.texi: Likewise.
* tests/c-parse.exp, tests/charsets.exp, tests/chill.exp,
tests/cplusplus.exp, tests/gpc.exp, tests/incomplete.exp,
tests/java.exp, tests/languages.exp, tests/modula2.exp,
tests/objc.exp, tests/permut2.exp, tests/permut3.exp,
tests/permutc2.exp, tests/test-4.exp: Update.
2003-05-31 Bruno Haible <[email protected]>
* doc/gperf.texi (User-supplied Struct): Mention the possibility of an
abbreviated struct declaration.
* src/input.cc (Input::read_input): Support struct declarations of the
form "struct foo;".
* tests/incomplete.gperf: New file.
* tests/incomplete.exp: New file.
* tests/Makefile.in (check-test): Check incomplete.gperf too.
Reported by Rob Leslie <[email protected]>.
2003-05-20 Bruno Haible <[email protected]>
* doc/Makefile.in (gperf.ps): Don't use $< in a target rule.
2003-05-27 Bruno Haible <[email protected]>
* Makefile.vms (CC): Correct value.
(getopt.obj, getopt1.obj, getline.obj, hash.obj): Don't set
HAVE_CONFIG_H.
2003-05-17 Bruno Haible <[email protected]>
* Makefile.msvc (DEBUGFLAGS): New variable.
(gperf.exe): Use it, and MFLAGS too.
2003-05-08 Bruno Haible <[email protected]>
* gperf-3.0 released.
2003-05-07 Bruno Haible <[email protected]>
* src/version.cc: Bump version number to 3.0.
* doc/gperf.texi: Likewise.
* tests/c-parse.exp, tests/charsets.exp, tests/chill.exp,
tests/cplusplus.exp, tests/gpc.exp, tests/java.exp,
tests/languages.exp, tests/modula2.exp, tests/objc.exp,
tests/permut2.exp, tests/permut3.exp, tests/permutc2.exp,
tests/test-4.exp: Update.
* src/configure.in: Fix AC_INIT argument.
* Makefile.devel (configure, lib/configure, src/configure,
tests/configure, doc/configure): Use the newest autoconf.
(src/config.h.in): Use the newest autoheader.
2003-05-03 Bruno Haible <[email protected]>
* doc/gperf.texi: Use two spaces as sentence separator, as recommended
by the texinfo manual.
2003-04-12 Bruno Haible <[email protected]>
* doc/configure.in (mandir): Change default value.
* doc/Makefile.in (docdir): Use datadir instead of prefix.
* Makefile.msvc (datadir): New variable.
(mandir, docdir): Use it instead of prefix.
(install, installdirs): Update.
* Makefile.vms (datadir): New variable.
(mandir, docdir): Use it instead of prefix.
(install, installdirs): Update.