forked from GerHobbelt/libtre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
1133 lines (882 loc) · 35 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
Fri Oct 2 13:08:49 CEST 2009 Ville Laurikari <[email protected]>
* Include the new Visual Studio project files in packages.
M ./Makefile.am -3 +3
Sun Sep 20 09:52:14 CEST 2009 Ville Laurikari <[email protected]>
tagged TRE 0.8.0
Sun Sep 20 09:49:52 CEST 2009 Ville Laurikari <[email protected]>
* Updates for 0.8.0.
M ./NEWS +10
M ./THANKS +1
M ./configure.ac -1 +1
M ./doc/tre-syntax.html -10 +13
M ./po/fi.po -1 +1
M ./po/sv.po -1 +1
Sat Sep 19 23:11:13 CEST 2009 Ville Laurikari <[email protected]>
* Fixed warnings on Windows.
M ./lib/regcomp.c -2 +2
M ./win32/config.h +1
Sat Sep 19 23:07:25 CEST 2009 Ville Laurikari <[email protected]>
* Updated Python module and examples.
By permission from the original author, I've changed the license of
the Python module to be the same as the rest of the library. Also,
slight changes to module API.
M ./python/example.py -5 +12
M ./python/setup.py.in -43 +28
M ./python/tre-python.c -16 +6
Sat Sep 19 23:05:29 CEST 2009 Ville Laurikari <[email protected]>
* Replaced Visual C++ 6 project files with Visual Studio 2008 files.
R ./win32/retest.dsp
A ./win32/retest.vcproj
R ./win32/tre.dsp
R ./win32/tre.dsw
A ./win32/tre.sln
A ./win32/tre.vcproj
Sat Sep 19 20:40:43 CEST 2009 Ville Laurikari <[email protected]>
* Added tre_ prefix to all functions.
This fixes long-standing problems where binaries compiled against
libtre would end up using symbols from libc, usually resulting in
crashes.
The #include <tre/regex.h> header now defines macros like this:
#define regexec tre_regexec
Recompiling is necessary, so updated the libtre ABI version number
accordingly.
./lib/regex.h -> ./lib/tre.h
M ./lib/Makefile.am -2 +2
M ./lib/regcomp.c -1 +1 r17
M ./lib/regerror.c -2 +2 r17
A ./lib/regex.h
M ./lib/regexec.c -1 +1 r17
M ./lib/tre-ast.c r17
M ./lib/tre-ast.h r18
M ./lib/tre-compile.c -1 +1 r17
M ./lib/tre-compile.h r18
M ./lib/tre-config.h.in -3 +3
M ./lib/tre-filter.c r17
M ./lib/tre-filter.h r18
M ./lib/tre-internal.h -1 +1 r18
M ./lib/tre-match-approx.c -1 +1 r17
M ./lib/tre-match-backtrack.c -1 +1 r17
M ./lib/tre-match-parallel.c -1 +1 r17
M ./lib/tre-match-utils.h r18
M ./lib/tre-mem.c r17
M ./lib/tre-mem.h r18
M ./lib/tre-parse.c r17
M ./lib/tre-parse.h r18
M ./lib/tre-stack.c r17
M ./lib/tre-stack.h -1 +1 r18
M ./lib/tre.h -4 +8 r17
M ./lib/xmalloc.c r17
M ./lib/xmalloc.h r18
M ./python/tre-python.c -1 +1 r17
M ./src/agrep.c r17
M ./tests/bench.c r17
M ./tests/randtest.c r17
M ./tests/retest.c r17
M ./tests/test-str-source.c r17
M ./win32/config.h r18
M ./win32/tre.def -16 +16
Tue Jul 28 12:07:35 CEST 2009 Ville Laurikari <[email protected]>
* Updated.
M ./THANKS -1 +1
Fri Sep 4 19:17:48 CEST 2009 Ville Laurikari <[email protected]>
* Fixed a bug when sizeof(size_t) != sizeof(int).
The PyArg_ParseTuple "s#" formatter requires an int (and _not_ a
size_t) for the string length. On 64-bit platforms the higher bits
were often left as garbage, leading to an out of memory condition
later in libtre. Then, a second yet unfixed bug would lead to a
crash. This fix at least takes care of the first bug.
M ./python/tre-python.c -1 +1
Sat May 23 18:54:37 CEST 2009 Ville Laurikari <[email protected]>
tagged TRE 0.7.6
Sat May 23 18:45:33 CEST 2009 Ville Laurikari <[email protected]>
* Updated for 0.7.6.
M ./NEWS +9
M ./README.darcs -1 +1
M ./THANKS +1
M ./configure.ac -1 +1
M ./lib/Makefile.am -1 +1
M ./po/fi.po -46 +38
M ./po/sv.po -47 +40
Fri May 22 17:32:07 CEST 2009 Ville Laurikari <[email protected]>
* Changed the license from LGPL to a BSD-style license.
The new license is essentially the same as the "2 clause" BSD-style
licenses used in NetBSD. See the file LICENSE for details.
R ./COPYING.LESSER
M ./LICENSE -17 +25
M ./README -8 +3
M ./lib/regcomp.c -15 +2
M ./lib/regerror.c -15 +2
M ./lib/regex.h -15 +2
M ./lib/regexec.c -15 +2
M ./lib/tre-ast.c -15 +2
M ./lib/tre-ast.h -15 +2
M ./lib/tre-compile.c -16 +3
M ./lib/tre-compile.h -15 +2
M ./lib/tre-filter.c -15 +2
M ./lib/tre-internal.h -15 +2
M ./lib/tre-match-approx.c -15 +2
M ./lib/tre-match-backtrack.c -15 +2
M ./lib/tre-match-parallel.c -15 +2
M ./lib/tre-match-utils.h -15 +2
M ./lib/tre-mem.c -15 +2
M ./lib/tre-mem.h -15 +2
M ./lib/tre-parse.c -15 +2
M ./lib/tre-parse.h -15 +2
M ./lib/tre-stack.c -15 +2
M ./lib/tre-stack.h -15 +2
M ./lib/xmalloc.c -15 +2
M ./lib/xmalloc.h -15 +2
M ./src/agrep.c -19 +3
M ./tests/bench.c -15 +2
M ./tests/randtest.c -15 +2
M ./tests/retest.c -15 +2
M ./tests/test-str-source.c -15 +2
M ./utils/autogen.sh -1 +1
Fri May 22 14:24:18 CEST 2009 Ville Laurikari <[email protected]>
* Fixed to compile on systems which don't have mbrtowc.
M ./tests/retest.c -5 +6
M ./tests/test-str-source.c -2 +1
Fri May 22 11:09:50 CEST 2009 Ville Laurikari <[email protected]>
* Removed gnulib.
M ./Makefile.am -2 +2
M ./README.darcs -5
M ./configure.ac -8 +6
R ./gnulib/
R ./gnulib/Makefile.am
M ./lib/Makefile.am -2
M ./lib/regerror.c -1 +8
M ./src/Makefile.am -3 +2
M ./src/agrep.c -4 +41
M ./tests/Makefile.am -2 +2
M ./utils/autogen.sh -8 +1
M ./win32/tre.dsp -6 +2
Fri May 22 11:08:53 CEST 2009 Ville Laurikari <[email protected]>
* Fix more warnings from gcc and lint.
These should allow for a clean build in the NetBSD tree with WARNS=4.
Thanks to Alistair Crooks for the patches!
M ./lib/regcomp.c -2 +2
M ./lib/regerror.c -1 +3
M ./lib/regexec.c -9 +9
M ./lib/tre-compile.c -18 +21
M ./lib/tre-internal.h -2 +2
M ./lib/tre-match-approx.c -20 +18
M ./lib/tre-match-backtrack.c -11 +17
M ./lib/tre-match-parallel.c -8 +6
M ./lib/tre-match-utils.h -5 +5
M ./lib/tre-parse.c -10 +16
M ./lib/tre-stack.h -1 +1
M ./lib/xmalloc.c -5 +10
M ./lib/xmalloc.h -10 +12
M ./src/agrep.c -2 +2
M ./tests/retest.c -19 +24
Wed May 20 10:24:20 CEST 2009 Ville Laurikari <[email protected]>
* Fixed compiler warnings.
M ./lib/tre-match-approx.c -3
M ./lib/tre-match-backtrack.c -3
M ./tests/retest.c -2 +2
M ./tests/test-str-source.c -1 +1
Tue May 19 20:29:42 CEST 2009 Ville Laurikari <[email protected]>
* Surround tests for known bugs with #ifdef KNOWN_BUG.
M ./tests/retest.c -9 +12
Tue May 19 18:43:35 CEST 2009 Ville Laurikari <[email protected]>
* Updates for new gettext and gnulib.
M ./configure.ac -2 +2
M ./utils/autogen.sh +1
Tue May 19 18:42:13 CEST 2009 Ville Laurikari <[email protected]>
* Some updates and fixes to documentation.
M ./doc/tre-api.html -6 +20
Tue May 19 18:41:01 CEST 2009 Ville Laurikari <[email protected]>
* Try iso-8859-1 tests with a locale which is more often available.
M ./tests/retest.c -4 +4
Fri Mar 20 19:02:41 CET 2009 Ville Laurikari <[email protected]>
* Updated for new automake.
M ./Makefile.am -1
M ./configure.ac +1
Wed Mar 18 19:00:40 CET 2009 Andy Agrawal <[email protected]>
* Fix str_handler_get_next in to inspect 'ch', not 'c'.
This function was always returning 0. Also, TRE relies on the fact
that this function sets *c to 0, so I'm adding that to the API
documentation. If you change str_handler_get_next and return 1 if ch
is 0, before setting *c, you will get an infinite loop or a seg fault.
The other alternative is to fix GET_NEXT_WCHAR. One advantage of
fixing GET_NEXT_WCHAR is that the data can be allowed to contain the
null character and so it can be used for binary data.
M ./doc/tre-api.html -2 +4
M ./tests/test-str-source.c -1 +1
Wed Mar 11 21:16:43 CET 2009 Andy Agrawal <[email protected]>
* Refactor char class assertion checking code
M ./lib/tre-match-approx.c -14 +1
M ./lib/tre-match-backtrack.c -14 +1
M ./lib/tre-match-parallel.c -15 +1
M ./lib/tre-match-utils.h -1 +14
Wed Mar 11 09:55:17 CET 2009 Andy Agrawal <[email protected]>
* Fix backtracking for reguexec. See tests/test-str-source for some examples.
M ./lib/tre-match-backtrack.c +2
M ./tests/test-str-source.c -4 +16
Wed Nov 28 00:59:50 CET 2007 Wolfgang Jenkner <[email protected]>
* wretest - use the retest suite with regw*, too
Add some code to translate the byte-oriented test cases in retest to
wchar_t strings and offsets, then pass them to regwcomp and friends.
This is done when the pre-processor symbol WRETEST is defined. Change the
build system accordingly, so that retest and the new wretest are built
from the same file retest.c.
M ./configure.ac +3
M ./tests/Makefile.am +15
M ./tests/retest.c -13 +180
Wed Nov 28 00:50:41 CET 2007 Wolfgang Jenkner <[email protected]>
* wchar buglets
A typo prevented the correct definitions of the macros
BT_STACK_WIDE_IN and BT_STACK_WIDE_OUT from being used.
Pass BT_STACK_WIDE_IN an argument to get the correct expansion.
(tre_tnfa_run_backtrack): Ignore the comment about ignoring multibyte
characters and add a separate clause for STR_WIDE, using wmemcmp.
Update str_wide.
M ./lib/tre-match-backtrack.c -7 +12
Sun Nov 4 17:47:56 CET 2007 Ville Laurikari <[email protected]>
* Fixed a bug in \<.
\< always matched at the beginning of the string. Thanks to Shmuel
Zeigerman for the bug report.
See http://laurikari.net/pipermail/tre-general/2007-February/000128.html
M ./lib/tre-match-utils.h -1 +1
M ./tests/retest.c +2
Fri Mar 16 18:18:02 CET 2007 Ville Laurikari <[email protected]>
* Refactoring.
M ./lib/tre-compile.c -60 +29
Sun Jan 28 20:08:45 CET 2007 Ville Laurikari <[email protected]>
* Fixed regoff_t documentation for wide characters.
The documentation erroneously claimed that offsets are always given in
bytes (they are bytes in byte and multibyte strings, but wchar_t
offsets in wchar_t strings).
Thanks to Gregory Sharp for pointing this out.
M ./doc/tre-api.html -10 +9
Sun Dec 10 09:11:47 CET 2006 Ville Laurikari <[email protected]>
tagged TRE 0.7.5
Sat Dec 9 22:11:49 CET 2006 Ville Laurikari <[email protected]>
* Updated for 0.7.5.
M ./NEWS +3
M ./README -93 +107
M ./po/fi.po -18 +20
M ./po/sv.po -18 +20
Sat Dec 9 21:44:07 CET 2006 Ville Laurikari <[email protected]>
* Skip localization tests on OpenBSD.
Thanks to Matthias Kilian for letting me know of the test failures.
M ./THANKS +1
M ./tests/retest.c -2 +2
Sat Dec 9 21:34:55 CET 2006 Ville Laurikari <[email protected]>
* Added support for the -q command line option.
M ./doc/agrep.1.in +4
M ./src/agrep.c -2 +13
Sat Dec 9 21:16:27 CET 2006 Ville Laurikari <[email protected]>
* Fixed handling of agrep record buffer size with short reads.
Merged patch from Peter D. Gray, thanks!
The old code was not properly taking into account the possibility that
read() may return less bytes than what was requested even when not at
end of file. If the buffer was not filled the buffer size was anyway
increased. With files where short reads happen (often with pipes)
this sometimes lead to "out of memory" errors.
M ./src/agrep.c -46 +54
Sat Dec 9 20:29:48 CET 2006 Ville Laurikari <[email protected]>
* Update for latest gnulib.
M ./README.darcs -1 +1
M ./configure.ac -1 +1
Sun Dec 3 09:45:37 CET 2006 Ville Laurikari <[email protected]>
* Don't force static linking for test programs.
IIRC, this was causing compilation problems on OS X.
M ./tests/Makefile.am -3
Sun Dec 3 09:36:07 CET 2006 Ville Laurikari <[email protected]>
* Fixed some warnings with the Intel C/C++ compiler.
The Intel compiler gives warnings for shadowing other identifiers in
scope.
M ./lib/tre-compile.c -14 +14
M ./lib/tre-stack.h -4 +4
Sun Sep 24 08:20:54 CEST 2006 Ville Laurikari <[email protected]>
* Fixed include directories for release builds.
Thanks to Samets Anton for reporting the problem.
M ./win32/tre.dsp -1 +1
Fri Sep 22 13:31:16 CEST 2006 Ville Laurikari <[email protected]>
* Updated for 0.7.5.
M ./THANKS +1
Wed Sep 20 13:22:13 CEST 2006 Ville Laurikari <[email protected]>
* Fixed linking of test programs.
The test programs weren't linked agains all possibly needde libraries.
Builds were failing on OS X and FreeBSD because of this. Also, the
`bench' program is not needed during "make check" so don't build it.
Thanks to Bob Carlitz for reporting the problems.
M ./lib/Makefile.am -1 +1
M ./tests/Makefile.am -4 +5
Sat Jul 29 13:31:28 CEST 2006 Ville Laurikari <[email protected]>
* Sorted command line parameter lists.
M ./src/agrep.c -29 +29
Sat Jul 29 13:07:08 CEST 2006 Ville Laurikari <[email protected]>
* Updated line numbers.
M ./po/fi.po -10 +10
M ./po/sv.po -10 +10
Sat Jul 29 13:05:05 CEST 2006 Ville Laurikari <[email protected]>
* Changed using * and + after another repetition operator to an error.
The use of * and + after another repetition operator is now reserved
for future extension.
Thanks to Bram Matthys for letting me know of the performance problems
when using "++" and back references in the same regex.
M ./NEWS +12
M ./THANKS +1
M ./doc/tre-api.html -1 +2
M ./lib/regerror.c -14 +14
M ./lib/regex.h -1 +1
M ./lib/tre-parse.c -7 +23
M ./po/fi.po -3 +3
M ./po/sv.po -3 +3
M ./tests/retest.c +8
Sat Jul 29 10:40:39 CEST 2006 Ville Laurikari <[email protected]>
* Documentation updates.
Thanks to Dominick Meglio for sending these!
M ./NEWS +2
M ./doc/tre-api.html -2 +8
M ./doc/tre-syntax.html -5 +32
Sat Jul 29 08:51:23 CEST 2006 Ville Laurikari <[email protected]>
* Fixed handling of + and ? in BREs.
+ and ? were considered special even in the obsolete "basic" regex
(BRE) mode. In BRE mode + and ? are ordinary characters. I added
some tests for these.
Thanks to Rich Felker for reporting the bug.
M ./THANKS +1
M ./lib/tre-parse.c -1 +3
M ./tests/retest.c +5
Fri Jul 28 16:24:45 CEST 2006 Ville Laurikari <[email protected]>
* Fixed regex parser on big-endian 64 bit architectures.
This bug was not about 64 bit clean code as such. The bug just
doesn't cause any trouble on little-endian 64 bit machines (x86_64) or
32 bit machines, but causes a lot of trouble on big-endian 64 bit
machines (sparc, powerpc). I added an assert to catch similar bugs
in the future.
Thanks to Peter D. Gray for notifying me about the problem and helping
in debugging it.
M ./NEWS +3
M ./lib/tre-parse.c -1 +4
Wed Jul 26 10:02:09 CEST 2006 Ville Laurikari <[email protected]>
* Fixed agrep exit status when no matches found.
`agrep' always returned 0 even when no matches were found. Thanks to
Peter D. Gray for letting me know.
Added tests for agrep exit status.
M ./NEWS +3
M ./THANKS +1
M ./src/agrep.c -1 +3
M ./tests/agrep/basic.ok +100
M ./tests/agrep/delimiters.ok +120
A ./tests/agrep/exitstatus.args
A ./tests/agrep/exitstatus.input
A ./tests/agrep/exitstatus.ok
M ./tests/agrep/records.ok +100
M ./tests/agrep/run-tests.sh -2 +14
Sat Jul 22 13:57:51 CEST 2006 Ville Laurikari <[email protected]>
* Updated for 0.7.5.
M ./NEWS +5
M ./configure.ac -1 +1
Tue Jul 25 08:13:46 CEST 2006 Ville Laurikari <[email protected]>
* Fixed two makefile bugs.
The file `agrep.1' was included in the source tarball, although it is
generated by the configure script.
A `make clean' in tests/agrep accidentally removed `Makefile.in'.
Thanks to Santiago Vila for pointing these out.
Added some consistency checks to `build-sources.sh' so similar bugs
won't happen in the future.
M ./doc/Makefile.am -1 +1
M ./tests/agrep/Makefile.am -1 +1
M ./utils/build-sources.sh +22
Sat Jul 22 18:11:55 CEST 2006 Ville Laurikari <[email protected]>
* Fixed %doc usage.
Thanks to Dirk for pointing this out.
M ./tre.spec.in -2 +5
Sat Jul 22 14:17:17 CEST 2006 Ville Laurikari <[email protected]>
* Updated for latest gnulib.
M ./utils/autogen.sh -1 +2
Sat Jul 22 13:59:47 CEST 2006 Ville Laurikari <[email protected]>
* Removed guessing of best optimizing CFLAGS.
With old versions of GCC "-O1 -fomit-frame-pointer" produced the best
code for x86 systems, but with GCC 4.x this is no longer the case.
With GCC 4.1.0, building with "-O1 -fomit-frame-pointer" makes TRE
about 15% slower than when built with "-O2 -g" (the default).
Removing the "-g" has a negligible positive effect, so it's better to
leave it in so the result is actually debuggable.
M ./configure.ac -3
M ./m4/Makefile.am -1
R ./m4/tre_prog_cc_optimizations.m4
Wed May 24 18:29:40 CEST 2006 Ville Laurikari <[email protected]>
* Fixed spacing in help texts and translations.
M ./po/fi.po -4 +4
M ./po/sv.po -18 +14
M ./src/agrep.c -2 +2
Wed May 24 16:50:22 CEST 2006 Ville Laurikari <[email protected]>
* Swedish translation of TRE from Daniel Nylander.
M ./THANKS +1
M ./po/LINGUAS +1
A ./po/sv.po
Mon May 22 07:17:10 CEST 2006 Ville Laurikari <[email protected]>
tagged TRE 0.7.4
Sun May 21 21:48:28 CEST 2006 Ville Laurikari <[email protected]>
* Updated agrep help texts and documentation.
M ./THANKS +1
M ./doc/agrep.1.in -3 +15
M ./po/fi.po -9 +20
M ./src/agrep.c -2 +6
Sun May 21 21:27:44 CEST 2006 Ville Laurikari <[email protected]>
* Added instructions for building from darcs repo sources.
A ./README.darcs
Sun May 21 21:23:56 CEST 2006 Ville Laurikari <[email protected]>
* Updated win32 stuff to work again.
M ./win32/config.h +4
M ./win32/retest.dsp -4 +4
M ./win32/tre.dsp -6 +6
Sun May 21 20:24:06 CEST 2006 Ville Laurikari <[email protected]>
* Added LGPL file to repo.
I would prefer this to be pulled in by `automake --add-missing' but it
seems it only knows how to pull the GPL, not the LGPL.
A ./COPYING.LESSER
Sun May 21 19:59:15 CEST 2006 Ville Laurikari <[email protected]>
* Updated for 0.7.4.
M ./NEWS -1 +22
Sun May 21 18:12:49 CEST 2006 Ville Laurikari <[email protected]>
* Added special handling for MinGW.
MinGW seems to have broken versions of wcsrtombs() and wcstombs(), so
I turned off wchar support completely on MinGW.
Additionally, agrep seems to output \r\n newlines on MinGW which was
causing problems with the agrep test suite. Now they are filtered out
before comparing with reference results.
M ./configure.ac +10
M ./tests/agrep/Makefile.am -1 +3
M ./tests/agrep/run-tests.sh +8
Sun May 21 17:39:21 CEST 2006 Ville Laurikari <[email protected]>
* Cosmetic changes.
M ./configure.ac -2 +2
M ./lib/regexec.c -1 +1
M ./lib/tre-match-backtrack.c -3 +3
M ./lib/tre-parse.c -4 +4
M ./lib/tre-stack.c -1 +1
M ./tests/retest.c -3 +3
Sun May 21 14:36:49 CEST 2006 Ville Laurikari <[email protected]>
* Replaced %Zd with %lu and a cast.
Unfortunately, %Zd is not available on all platforms. The z modifier
seems to be introduced in C99. So, replaced these with `unsigned long'
(`size_t' cannot be wider than `unsigned long') which is more
portable.
M ./lib/tre-match-parallel.c -1 +1
M ./tests/test-str-source.c -3 +5
Sun May 21 10:58:28 CEST 2006 Ville Laurikari <[email protected]>
* Fixed some compiler warnings.
M ./lib/regcomp.c -1 +1
M ./lib/tre-internal.h -1 +1
M ./lib/tre-parse.c -1 +1
Sun May 21 09:30:44 CEST 2006 Ville Laurikari <[email protected]>
* Fixed approximate and backtracking matcher to work better with reguexec().
Previously, the user-provided tre_str_source had to give a zero as the
last character. Now the return value of get_next_char() is properly
checked also in the approximate and backtracking matchers.
M ./lib/tre-match-approx.c -1 +6
M ./lib/tre-match-backtrack.c -1 +6
Sun May 21 09:17:26 CEST 2006 Ville Laurikari <[email protected]>
* Fixes for --enable-system-abi.
Fixed to work when REG_BASIC is already defined, also fixed to work
when one of REG_NOSPEC or REG_LITERAL is already defined.
M ./lib/regex.h -2 +4
Sun May 21 09:12:33 CEST 2006 Ville Laurikari <[email protected]>
* Simplified tre_expand_macro.
This avoids using btowc() which doesn't seem to exist on HP-UX 11.00
and makes the code a lot simpler.
M ./lib/tre-parse.c -34 +19
Sun May 21 09:04:35 CEST 2006 Ville Laurikari <[email protected]>
* Fixed printf arguments when regoff_t is not of type int.
When configured with --enable-system-abi the `rm_so' and `rm_eo'
fields of `struct regmatch_t' may not be of type `int'. This was
actually causing agrep and the test programs to crash on some
platforms.
M ./src/agrep.c -3 +3
M ./tests/bench.c -2 +2
M ./tests/retest.c -3 +3
M ./tests/test-str-source.c -1 +1
Sun May 21 09:04:00 CEST 2006 Ville Laurikari <[email protected]>
* Fixed a number of bugs in agrep.
The record delimiter was included in the record. This meant that
echo foo | agrep 'foo$'
did not match, even though it obviously should.
When --show-position and -v were combined, the positions shown were
incorrect. Now the entire record is indicated as the match.
When --color and -v were combined, spurious coloring was printed for
an empty string.
M ./po/fi.po -9 +9
M ./src/agrep.c -19 +35
Sun May 21 08:52:08 CEST 2006 Ville Laurikari <[email protected]>
* Fixed backtracking matcher to work if malloc(0) returns NULL.
When configured with --without-alloca, the backtracking matches uses
malloc() to allocate memory. On some platforms, at least Digital UNIX
V4.0, trying to allocate a zero length block with malloc() gives NULL
(i.e. an error), instead of some pointer.
M ./lib/tre-match-backtrack.c -12 +21
Sun May 21 08:43:18 CEST 2006 Ville Laurikari <[email protected]>
* Added regression tests for agrep.
These are quite rudimentary, but test the agrep specific functionality
pretty well. Actual regex matching functionality is already covered
by `retest.c' so that stuff shouldn't be repeated here.
M ./configure.ac +1
M ./tests/Makefile.am +2
A ./tests/agrep/
A ./tests/agrep/Makefile.am
A ./tests/agrep/basic.args
A ./tests/agrep/basic.input
A ./tests/agrep/basic.ok
A ./tests/agrep/delimiters.args
A ./tests/agrep/delimiters.input
A ./tests/agrep/delimiters.ok
A ./tests/agrep/records.args
A ./tests/agrep/records.input
A ./tests/agrep/records.ok
A ./tests/agrep/run-tests.sh
Sun May 21 08:32:17 CEST 2006 Ville Laurikari <[email protected]>
* Included GNU getopt implementation from gnulib.
Many systems don't have getopt_long(). This is unfortunate, because
it makes agrep behave differently on different systems. Now the
getopt implementation from gnulib is used if the system does not
already have a usable getopt_long(). As a result, agrep command line
parsing always works in the same way on all platforms.
See http://www.gnu.org/software/gnulib/ for more information on
gnulib.
M ./Makefile.am -2 +2
M ./configure.ac -10 +21
A ./gnulib/
A ./gnulib/Makefile.am
M ./lib/Makefile.am -2 +3
M ./src/Makefile.am -2 +3
M ./src/agrep.c -17 +2
M ./tests/Makefile.am -1 +1
M ./utils/autogen.sh -5 +10
Sun May 21 08:17:41 CEST 2006 Ville Laurikari <[email protected]>
* Added test cases for a suspected bug in \D.
It turned out \D works fine.
M ./tests/retest.c -1 +4
Sun May 21 07:47:27 CEST 2006 Ville Laurikari <[email protected]>
* Fixed not to build agrep if --disable-approx is used.
agrep uses the approximate matching API and fails to compile if it
isn't available.
M ./configure.ac -5 +9
M ./src/Makefile.am -1 +1
Thu May 18 19:49:30 CEST 2006 Ville Laurikari <[email protected]>
* Removed automatically generated file from repository.
R ./po/tre.pot
Mon May 15 11:35:52 CEST 2006 Ville Laurikari <[email protected]>
* Fixed agrep to handle interruptions and errors from read().
M ./po/fi.po -10 +15
M ./po/tre.pot -10 +15
M ./src/agrep.c -4 +20
Sun May 14 20:39:37 CEST 2006 Ville Laurikari <[email protected]>
* Declaring public functions `extern' for clarity.
M ./lib/regex.h -30 +59
Fri May 12 14:00:49 CEST 2006 Ville Laurikari <[email protected]>
* Updated email address for bug reports.
M ./configure.ac -1 +1
M ./doc/agrep.1.in -2 +2
M ./po/Makevars -1 +1
M ./po/fi.po -14 +14
M ./po/tre.pot -13 +13
M ./src/agrep.c -1 +2
M ./tre.spec.in -1 +1
Fri May 12 12:26:07 CEST 2006 Ville Laurikari <[email protected]>
* Fixed params array signedness inconsistencies.
M ./lib/tre-ast.h -2 +2
M ./lib/tre-compile.c -1 +1
M ./lib/tre-parse.c -1 +1
Fri May 12 12:22:35 CEST 2006 Ville Laurikari <[email protected]>
* Merged spec file patch from Jan Kasprzak.
M ./THANKS +1
M ./tre.spec.in -3 +8
Fri May 12 09:58:35 CEST 2006 Ville Laurikari <[email protected]>
* Fixed setting direction of tags after union nodes.
Thanks to Nikolai Weibull for spotting this.
M ./THANKS +1
M ./lib/tre-compile.c -2 +2
Wed May 10 20:34:04 CEST 2006 Ville Laurikari <[email protected]>
* Added things needed for building DLLs on Cygwin and MinGW.
Surprisingly, libtool requires these magic incantations in order to
make in build DLLs on Cygwin and MinGW.
M ./configure.ac +1
M ./lib/Makefile.am -1 +1
Wed May 10 15:18:34 CEST 2006 Ville Laurikari <[email protected]>
* Added requirement for automake 1.9.
M ./configure.ac -1 +1
Wed May 10 14:11:30 CEST 2006 Ville Laurikari <[email protected]>
* Fixed a (harmless) compiler warning in 64 bit builds.
M ./lib/xmalloc.c -1 +1
Wed May 10 14:07:14 CEST 2006 Ville Laurikari <[email protected]>
* Fixed printf format string and argument types for 64 bit builds.
M ./lib/tre-compile.c -1 +1
M ./lib/tre-match-parallel.c -1 +1
M ./lib/tre-parse.c -52 +45
M ./tests/test-str-source.c -3 +3
Wed May 10 13:51:06 CEST 2006 Ville Laurikari <[email protected]>
* Fixed tre_stack to handle sizeof(int) != sizeof(void*)
This gets rid of most compiler warnings of x86_64. The old code was
casting small ints to void pointers. Now the stack uses a union to
store items on the stack, and the stack API has separate functions for
pushing and popping integers and pointers.
M ./lib/tre-compile.c -114 +114
M ./lib/tre-parse.c -39 +39
M ./lib/tre-stack.c -8 +25
M ./lib/tre-stack.h -15 +22
Wed May 10 13:33:04 CEST 2006 Ville Laurikari <[email protected]>
* Don't build test code until "make check".
M ./tests/Makefile.am -2 +2
Wed May 10 13:29:22 CEST 2006 Ville Laurikari <[email protected]>
* Removed unused tre_filter code.
This was just something I experimented with and never got finished
up. The files are still in the repository, but aren't included in the
source code distributions or builds.
M ./lib/Makefile.am -2
M ./lib/regexec.c -14
M ./win32/tre.dsp -8
Sun Apr 2 16:01:34 CEST 2006 Ville Laurikari <[email protected]>
tagged TRE 0.7.3
Sun Apr 2 15:56:15 CEST 2006 Ville Laurikari <[email protected]>
* Fixed to work with shared home directories.
M ./tests/build-run.sh -4 +8
Sun Apr 2 14:57:26 CEST 2006 Ville Laurikari <[email protected]>
* Updated for 0.7.3.
M ./NEWS +4
Sun Apr 2 14:44:25 CEST 2006 Ville Laurikari <[email protected]>
* Fixed some remaining GPL references to LGPL.
M ./README -4 +4
M ./lib/tre-compile.c -1 +1
M ./lib/tre-stack.c -1 +1
M ./po/fi.po -1 +1
M ./po/tre.pot -1 +1
M ./python/setup.py.in -11 +13
M ./tre.spec.in -1 +1
Sun Apr 2 14:26:32 CEST 2006 Ville Laurikari <[email protected]>
* ChangeLog is now generated by darcs.
R ./ChangeLog
A ./ChangeLog.old
M ./utils/autogen.sh +3
Sun Apr 2 14:22:20 CEST 2006 Ville Laurikari <[email protected]>
* Fixed DOS newlines to UNIX newlines.
M ./python/example.py -13 +13
Sun Apr 2 14:20:27 CEST 2006 Ville Laurikari <[email protected]>
* The Python language bindings are now LGPL as well.
I received permission from Nikolai Saoukh, the author of the Python
language bindings for TRE, to change the license to anything I like.
M ./LICENSE -4
R ./python/COPYING
M ./python/tre-python.c -10 +11
Sun Apr 2 13:19:03 CEST 2006 Ville Laurikari <[email protected]>
* Test script now waits for jobs to finish.
M ./tests/build-on-hosts.sh -3 +5
M ./tests/build-tests.sh -1 +3
Sun Apr 2 12:34:28 CEST 2006 Ville Laurikari <[email protected]>
* Updated test hosts.
A ./tests/build-hosts/earthquake
R ./tests/build-hosts/hutcs
Sun Apr 2 13:18:18 CEST 2006 Ville Laurikari <[email protected]>
* Updated localization files.
M ./po/fi.po -35 +35
M ./po/tre.pot -32 +32
Sun Apr 2 13:17:07 CEST 2006 Ville Laurikari <[email protected]>
* Added missing flags when TRE_USE_SYSTEM_REGEX_H is defined.
M ./lib/regex.h +2
Sun Apr 2 10:44:06 CEST 2006 Ville Laurikari <[email protected]>
* Changed license from GPL to LGPL.
Due to numerous requests, and the absence of the not-so-expected
onslaught of proprietary software turning free because of the TRE
license, I've decided to change the license to LGPL.
M ./LICENSE -5 +18
M ./NEWS +5
M ./configure.ac -1 +1
M ./lib/regcomp.c -10 +11
M ./lib/regerror.c -10 +11
M ./lib/regex.h -10 +11
M ./lib/regexec.c -10 +11
M ./lib/tre-ast.c -10 +11
M ./lib/tre-ast.h -10 +12
M ./lib/tre-compile.c -10 +11
M ./lib/tre-compile.h -10 +12
M ./lib/tre-filter.c -10 +11
M ./lib/tre-internal.h -10 +11
M ./lib/tre-match-approx.c -10 +11
M ./lib/tre-match-backtrack.c -10 +11
M ./lib/tre-match-parallel.c -10 +11
M ./lib/tre-match-utils.h -11 +11
M ./lib/tre-mem.c -10 +11
M ./lib/tre-mem.h -10 +11
M ./lib/tre-parse.c -10 +12
M ./lib/tre-parse.h -10 +12
M ./lib/tre-stack.c -10 +12
M ./lib/tre-stack.h -10 +12
M ./lib/xmalloc.c -11 +12
M ./lib/xmalloc.h -11 +12
A ./python/COPYING
M ./src/agrep.c -11 +12
M ./tests/bench.c -10 +11
M ./tests/randtest.c -10 +11
M ./tests/retest.c -10 +11
M ./tests/test-str-source.c -10 +11
Mon Mar 28 21:33:39 CEST 2005 Ville Laurikari <[email protected]>
* Added support for "(?#text)" comment syntax.
Thanks to Dominick Meglio <[email protected]> for contributing this
patch.
M ./lib/tre-parse.c +17
M ./tests/retest.c +4
Mon Mar 28 21:24:45 CEST 2005 Ville Laurikari <[email protected]>
* Added REG_UNGREEDY cflag and 'U' pattern modifier.
The REG_UNGREEDY regex compilation flag reverses the normal situation
where repetition operators are greedy unless a '?' is appended. With
the REG_UNGREEDY flag in effect, repetition operators are non-greedy
unless a '?' is appended.
The 'U' pattern modifier, as in "(?U)" and "(?U:pattern)", turns on
the REG_UNGREEDY flag for a selected part of the regex.
Thanks to Dominick Meglio <[email protected]> for contributing the
original version of this patch.
M ./lib/regex.h -1 +2
M ./lib/tre-parse.c -7 +26
M ./tests/retest.c -2 +11
Mon Mar 28 17:31:22 CEST 2005 Ville Laurikari <[email protected]>
* Added comments.
M ./configure.ac -5 +23
Mon Aug 22 08:55:18 CEST 2005 Ville Laurikari <[email protected]>
* Added "record-number" alias for "line-number" option.
M ./src/agrep.c +1
Mon Aug 22 08:50:43 CEST 2005 Ville Laurikari <[email protected]>
* Added --show-position command line flag.
The flag causes the match start and end positions to be printed for
each output record. The start and end positions are separated by a
dash. For example:
$ agrep --help | agrep --show-position -2 descrpition --show-cost
2:26-37:See tre(7) for a complete description.
M ./src/agrep.c -3 +11
Mon Mar 28 21:06:07 CEST 2005 Ville Laurikari <[email protected]>
* Updated `autogen.sh' to use autopoint to set up gettext.
M ./configure.ac +1
M ./utils/autogen.sh +6
Mon Mar 28 21:02:45 CEST 2005 Ville Laurikari <[email protected]>
* Removed `config.h.in' from repository.
This file is automatically generated by autoconf, no need to keep this
in the repository.
R ./config.h.in
Mon Mar 28 20:56:03 CEST 2005 Ville Laurikari <[email protected]>
* Fix bug in parsing \E.
There was a bug in parsing the part of a regexp that comes after \E.