-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathChangeLog
10655 lines (6425 loc) · 332 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
2017-05-06 Will Estes <[email protected]>
* po/ca.po, po/da.po, po/de.po, po/eo.po, po/es.po, po/fi.po,
po/fr.po, po/ga.po, po/hr.po, po/ko.po, po/nl.po, po/pl.po,
po/pt_BR.po, po/ro.po, po/ru.po, po/sr.po, po/sv.po, po/tr.po,
po/vi.po, po/zh_CN.po, po/zh_TW.po: gettext: pulled latest
translations; recompiled against current sources
2017-05-06 Will Estes <[email protected]>
* NEWS: version 2.6.4 * NEWS: Record release date.
2017-05-06 Will Estes <[email protected]>
* .prev-version: note previous version
2017-05-06 Will Estes <[email protected]>
* NEWS: doc: update NEWS for upcoming release
2017-05-04 viktor.shepel <[email protected]>
* doc/flex.texi: doc: Correct typo in C code sample in manual
2017-05-04 Explorer09 <[email protected]>
* src/flex.skl: scanner: Mention %# comments are removed when
building skel.c
2017-05-02 Demi Obenour <[email protected]>
* src/flex.skl: Honor user definitions of yy_* macros The user may have defined the yy_* macros themselves. In that case,
don't clobber them.
2017-05-02 Demi Obenour <[email protected]>
* src/flex.skl, src/main.c: Don't leak macro definitions into header
files This allowed unnamespaced definitions to leak into header files,
breaking client code. Fixes #142
2017-05-03 Demi Obenour <[email protected]>
* src/scan.l: scanner: Check for 0 bracecount when EOL ends quoted
literal. This can happen in the case of // comments (which Flex doesn't
handle specially).
2017-05-03 Demi Obenour <[email protected]>
* src/scan.l: scanner: when bracelevel is negative, treat as zero. This really should never happen, but this at least fixes the
breakage on Verilator.
2017-04-02 Jeff Smith <[email protected]>
* tests/Makefile.am, tests/tableopts.am, tests/tableopts.sh: test:
enable more silent building of tests. When running 'make V=0 check', some compile and link steps are made
less verbose and some are not. This cleans up most steps that are
not. These have no effect if V=0 is not specified.
2017-05-03 Demi Obenour <[email protected]>
* src/Makefile.am, src/misc.c, src/mkskel.sh: build: Delete comments
from skeleton file. Since the comments in flex.skl are, by hypothesis, not needed in
skel.c, we remove them. THis reduces the size of the resulting
executable somewhat.
2017-05-03 Explorer09 <[email protected]>
* Makefile.am, configure.ac, lib/Makefile.am: build: do not generate
lib/Makefile.in. Files in lib/ are picked up and built using makefile directives in
src/Makefile.am. Remove the need to generate lib/Makefile.in and the
stub lib/Makefile.am.
2017-05-02 Will Estes <[email protected]>
* po/POTFILES.in: gettext: revert listing generated .c files
2017-04-10 Jeff Smith <[email protected]>
* src/filter.c: FLEX_EXIT() is the preferred way to exit flex
2017-04-11 Explorer09 <[email protected]>
* src/misc.c: Fix myesc() 'sptr' conditionals * Don't call isascii() here. It's deprecated in POSIX and not needed for myesc's case. * The check of the character class and range here should match
what's defined as {ESCSEQ} in scan.l, so for [[:xdigit:]] we use
isxdigit(); for [0-7] we check '0' <= c <= '7' (not isdigit(c)
because isdigit is locale-dependant in standard's sense) * Add missing length limit for "\x<hex>" (<hex> is at most 2 digits)
2017-04-11 Explorer09 <[email protected]>
* src/flexdef.h, src/misc.c: Obsolete htoui() and otoui(); use
strtoul(). No sense to keep these two function when libc's strtoul() can do the
same job, but better.
2017-04-12 Todd C. Miller <[email protected]>
* src/flex.skl: scanner: update yy_buf_size after yyrealloc()
2017-05-02 Simon Sobisch <[email protected]>
* configure.ac: build: use lowest versions for gettext, automake.
2017-05-02 Simon Sobisch <[email protected]>
* po/Makevars, po/Rules-getpo, po/update_linguas.sh: gettext: more
recent makevars; new script to update po files. Previously, "make dist" and similar commands would cause the po
files to be updated, which is incorrect. The more recent version now
used should not do this. Replaced Rules-getpo by extra script to manually update and rebuild
all po files.
2017-05-02 Simon Sobisch <[email protected]>
* po/POTFILES.in: gettext: list generated files instead of flex,
bison sources in POTFILES.in. Listing the flex and bison sources -- as the gettext manual suggests
-- causes warnings. Listing the generated C files for the lexer and
parser removes the warnings. Since both files contain line
directives, any translator who needs to refer back to those files
should be able to find the context in which strings are needed.
2017-05-02 Simon Sobisch <[email protected]>
* autogen.sh: build: only touch ChangeLog if it does not exist
2017-05-02 Simon Sobisch <[email protected]>
* configure.ac, doc/Makefile.am: build: list earliest useable
versions for automake
2017-05-02 Simon Sobisch <[email protected]>
* autogen.sh: build: check for how to call libtoolize. Previously, we would call libtoolize and if that failed, we would
call glibtoolize since some platforms have the libtoolize program
under that name. Instead, we check to see if the environment variable LIBTOOLIZE is
set and use that if so. Otherwise, we try to find a program
"libtoolize" on the path and failing that glibtoolize. We alert the
user if no suitable program can be found.
2017-01-06 Alastair Hughes <[email protected]>
* configure.ac, m4/ax_prog_cc_for_build.m4, src/Makefile.am: build:
support cross compiling. Check for cross compiling. If cross compiling, build stage1flex
using a custom link command. We also override LDADD since that adds
the replacement implementations that are cross compiled, and instead
always use the replacement library implementations. We don't use BUILD_OBJEXT and BUILD_EXEEXT since it seems that
automake does not support these. Fixes #78.
2017-02-17 Explorer09 <[email protected]>
* configure.ac, src/flexdef.h: build: Include <strings.h>; add
strcasecmp() check to configure. strings.h (not string.h) is the standard-defined include header for
strcasecmp(). Include <strings.h> for portability (even though glibc
exposes strcasecmp() declaration also in <string.h> by default).
2017-02-17 Explorer09 <[email protected]>
* configure.ac, src/flexdef.h: build: Let configure error if missing
required functions, headers.. `configure` will now error if a required header or function is not
found on the system. Also add comments on optional functions checks. Add sys/stats.h and sys/wait.h to list of required headers in
configure. This fixes issue #180.
2017-02-12 Explorer09 <[email protected]>
* src/dfa.c, src/flexdef.h: scanner: compute powers of two faster. Replace the naive "for" loop in determining power of two with a
clever bitwise solution. This code is around the Internet already
and is in Public Domain.
2017-02-07 Explorer09 <[email protected]>
* configure.ac, tests/Makefile.am, tests/pthread.l: test: skip
pthread test when needed files missing. "Unlisting" the pthread test when libpthread is not available is
never a good idea. Should let it compile into a stub program that
returns the "skip" status. configure.ac and tests/Makefile.am are edited so that pthread test
can be built anyway, but only works (not as the stub) when both
pthread.h and libpthread are detected on the system. Also fix a small typo in tests/pthread.l comments.
2017-02-16 Will Estes <[email protected]>
* src/Makefile.am: build: mv scan.c when building dist. Revert change to copy scan.c when building the distribution archive.
Move it instead. This satisfies automake's notions of what should be
clean and ensures that the distribution archive contains a
just-built copy of scan.c. Fixes #186
2017-02-06 Will Estes <[email protected]>
* src/Makefile.am: build: don't assume distdir/scan.c is writeable
2017-01-02 Explorer09 <[email protected]>
* src/Makefile.am: build: Add dist-hook to force remake scan.c. This will ensure the flex scanner included in release tarball being
generated by exactly the flex version to be released. Here's one catch after this change: You may not run "make dist" or
"make distdir" if you configure the flex source to be
cross-compiled.
2017-01-02 Explorer09 <[email protected]>
* src/Makefile.am: build: respect '--localedir' from configure. Makefile shouldn't overwrite the 'localedir' variable, because
that's what '--localedir' option in 'configure' is for.
2017-01-02 Explorer09 <[email protected]>
* src/Makefile.am: build: Remove "-I$(top_srcdir)/intl" from
CPPFLAGS. Revert commit e02c3d27eeb6b53ec82532ab080c23ce26813fd4 ("include the intl/ subdirectory when searching for include files") Flex doesn't come with libintl source code, so inclusion of
$(top_srcdir)/intl subdirectory during compiling is unnecessary. This flag seems to be left after "remove intl from dist" (commit
8f45da06adbd7dbcdfdbdd5c20ff4c47fc504f35) without someone cleaning
this up. Users who need to build with gettext functionality from libintl
would use the '--with-libintl-prefix' configure option.
2017-02-03 Explorer09 <[email protected]>
* src/regex.c: scanner: fix regcomp's error reporting, double
malloc. Fix unneeded double malloc - let regerror(). Write its message after
our "regcomp for (regex) failed: " string. Also, errbuf cannot be free()'d because of flexfatal containing a
longjmp.
2017-01-03 Explorer09 <[email protected]>
* tests/Makefile.am, tests/no_bison_stub.c: test: Skip bison tests
if bison is not available
2017-01-03 Explorer09 <[email protected]>
* configure.ac: build: remove repeated bison detection from
configure. AC_PROG_YACC already detects the bison program. We can just use it,
and make notice if [ $YACC != 'bison -y' ] Remove unused AC_SUBST([BISON], ...). Add AM_CONDITIONAL([HAVE_BISON], ...) so that we can skip bison
tests in testsuite when bison is absent. We don't make any attempt to detect other yacc implementations since
flex is developed with bison. While it would be possible, the need
isn't there right now. It would be possible to add a --with-parser
option that defaulted to bison if such a need cropped up.
2017-01-01 Explorer09 <[email protected]>
* src/Makefile.am: build: fix Makefile parse.h dependency clauses. The current clauses stating "main.c: parse.h" and "yylex.c: parse.h"
do not work as expected. Make did not try to build parse.h upon
building flex-main.o as it would think main.c exist already and
ignore the clause. Fix this by explicitly stating that the .o files
depend on parse.h instead. This dependency bug only happens if user builds flex from a
checked-out repository.
2017-01-03 Explorer09 <[email protected]>
* tests/Makefile.am: test: Remake *_scanner.c if *_scanner.h is
missing. If a ${foo}_scanner.c exists but the respective ${foo}_scanner.h is
missing, then 'make' can halt. Fix this by deleting the
${foo}_scanner.c file and then remake it. This rule is the same as
the automake-generated rule for .c files that require LEX or YACC
(except automake will use ylwrap).
2016-12-31 Explorer09 <[email protected]>
* tests/Makefile.am: test: remove BUILT_SOURCES; add missing
dependencies. Without BUILT_SOURCES in Makefile, no test sources in tests/ will be
built when using the default "make all" target. This is desireable
for people who are just building flex but who do not want to run,
and therefore, build any part of the test suite. Also fix missing sources dependencies: bison_nr_scanner.$(OBJEXT): bison_nr_parser.h bison_yylloc_scanner.$(OBJEXT): bison_yylloc_parser.h bison_yylval_scanner.$(OBJEXT): bison_yylval_parser.h
2017-01-19 Explorer09 <[email protected]>
* configure.ac, lib/reallocarray.c, src/flexint.h, src/misc.c:
build: detect overflow for [re]allocate_array. Use reallocarray() when we have it (i.e. in OpenBSD system). When we
don't, use equivalent overflow detection for our allocate_array and
reallocate_array functions. Remove lib/reallocarray.c from our LIBOBJS as we no longer need it. Provide a fallback SIZE_MAX macro definition in flexint.h (not
preprocessor friendly, but enough for our reallocate_array use
case).
2017-01-23 Will Estes <[email protected]>
* NEWS, configure.ac: doc: v2.6.4
2017-01-23 Thomas Klausner <[email protected]>
* src/Makefile.am: build: more BSD make and vpath build fixes. BSD make doesn't like $< with more than one source specified.
Additionally, make sure to specify srcdir when referring to source
files since vpath builds depend on this.
2017-01-22 Thomas Klausner <[email protected]>
* src/Makefile.am: build: Fix skel.c generation with BSD make
2017-01-22 Christos Zoulas <[email protected]>
* src/flex.skl: Add more defines in the non-reentrant part. Fix the reentrant part; don't "#define yyfoo yyfoo" because it
breaks code that does #ifndef yywrap ..
2017-01-22 Christos Zoulas <[email protected]>
* src/flexdef.h: scanner: Add yyparse prototype
2017-01-22 Thomas Klausner <[email protected]>
* src/flex.skl: scanner: move comment for consistency
2017-01-22 Christos Zoulas <[email protected]>
* src/misc.c: scanner: Use array instead of pointer
2017-01-22 Christos Zoulas <[email protected]>
* src/main.c: scanner: manage path to m4 better. Avoid alloca() for SSP; it is better anyway; since we don't need to
strdup the path.
2017-01-22 Christos Zoulas <[email protected]>
* src/gen.c: scanner: Avoid creating unused label
2017-01-22 Christos Zoulas <[email protected]>
* src/buf.c: Cast argument to avoid arithmetic on void *.
2017-01-22 Christos Zoulas <[email protected]>
* src/scan.l: scanner: Use strncpy
2017-01-22 Christos Zoulas <[email protected]>
* src/main.c: scanner: Use prefix when defining yywrap to avoid
redefinition. Fixes regression introduced in v2.6.3.
2017-01-22 Christos Zoulas <[email protected]>
* src/flexdef.h, src/misc.c: scanner: Include stdarg.h for va_list
2017-01-22 Christos Zoulas <[email protected]>
* src/flexdef.h, src/main.c, src/parse.y: scanner: Rename warn to
lwarn. This avoids a naming conflict in NetBSD's libc.
2017-01-01 Explorer09 <[email protected]>
* tests/README: test: document automake convention for skipped exit
status.
2017-01-03 Explorer09 <[email protected]>
* tests/Makefile.am: test: let testwrapper scripts be run by
${SHELL}. This allows user to use a different shell if /bin/sh has problems.
The use of $SHELL (variable) to run scripts is already an Automake
convention. All shell scripts in build-aux are run by $SHELL.
2017-01-02 Explorer09 <[email protected]>
* tests/options.cn, tests/tableopts.sh,
tests/testwrapper-direct.sh, tests/testwrapper.sh: test: Remove test
scripts bashisms. They now all work under a POSIX compliant sh. Specifically, 'dash'
can now be used for running "make check" tests. Note that none of these scripts has ever been using a pipe, so `set
-o pipefail` is unnecessary and removed.
2017-01-02 Explorer09 <[email protected]>
* tests/testwrapper.sh: test: exit on '-1' test non-zero status. If a '-1' test program returns a non-zero status, don't go further
and compare it's (numeric) output values. This allows a '-1' test to
indicate a "skip" status or an otherwise error. (Currently no such
'-1' test would skip like this, though.) Shell syntax note: `set -e` will not exit with the syntax like this
`test $(false) = $(false);`. The exit statuses of `false` in the
example will be ignored instead. But putting the output in a
variable, such as `VAR=$(false)`, DOES exit.
2017-01-02 Explorer09 <[email protected]>
* Makefile.am, src/Makefile.am: build: Fix 'make indent' target This 'make indent' target has not been working since the directories
reorganization in flex 2.6.0. Now make it work again. Note that the current indent profile breaks many styles of existing
code. The indent target should not be used until the .indent.pro
options are reviewed for desireability.
2017-01-01 Explorer09 <[email protected]>
* configure.ac: build: Simplify indent program detection
2017-01-12 Tobias Klauser <[email protected]>
* src/filter.c: filter: Don't emit #line if %option noline set One place emitting a #line directive to the generated header was
missed in commit 647a92b9f4 when resolving #55. Fix it to respect
gen_line_dirs as well.
2017-01-12 Will Estes <[email protected]>
* po/ca.po, po/da.po, po/de.po, po/eo.po, po/es.po, po/fi.po,
po/fr.po, po/ga.po, po/hr.po, po/ko.po, po/nl.po, po/pl.po,
po/pt_BR.po, po/ro.po, po/ru.po, po/sr.po, po/sv.po, po/tr.po,
po/vi.po, po/zh_CN.po, po/zh_TW.po: translation: refresh po files
from translation project
2017-01-10 Harald van Dijk <[email protected]>
* src/flex.skl: c++: Fix yyrestart(NULL) SEGV. Binding a reference to a dereferenced null pointer is invalid and
compilers optimise away the &file == 0 check. We need a real stream. yyin is available already, and yyrestart(NULL) is only supported
when yyin will not be used, so there is no harm in just passing in
that. Since we now always have a valid stream, we can skip the null
check too. Fixes #98.
2017-01-09 luistung <[email protected]>
* src/scan.l: scanner: join symbol list. Removed a newline that caused a problem building the scanner in some
circumstances. Specifically: 'bad character' error when executing /bin/sh ../build-aux/ylwrap scan.l lex.yy.c scan.c -- flex
2017-01-11 Will Estes <[email protected]>
* src/flex.skl: scanner: remove void cast before fprintf
2016-12-30 Will Estes <[email protected]>
* NEWS: doc: update NEWS for 2.6.3 release
2016-11-26 Explorer09 <[email protected]>
* configure.ac, src/Makefile.am: build: New configure option
'--disable-bootstrap'. If configure is run with '--disable-bootstrap', then stage1flex
won't be built and stage1scan.c will be generated by sed'ing scan.c. This option is intended to workaround bootstrap bugs rather than to
fix the bootstrapping issues which are proving subtler and harder to
fix than anyone would like.
2016-11-26 Explorer09 <[email protected]>
* src/Makefile.am: build: "make clean" deletes stage1scan.c,
stage1flex
2016-11-26 Explorer09 <[email protected]>
* configure.ac, src/Makefile.am: build: allow building libfl even
with --disable-libfl. For various reasons, we may wish to build libfl explicitly even when
configure has been run with the --disable-libfl option. This is
possible, now, via 'make -C src libfl.la'.
2016-12-19 Alexis La Goutte <[email protected]>
* src/flex.skl: scanner: remove trailing whitespace in skeleton
2016-12-01 Demi Obenour <[email protected]>
* src/buf.c, src/main.c, src/parse.y: scanner: Disallow, overquote
'[' and ']' in prefix
2016-12-29 Samuel Thibault <[email protected]>
* src/main.c: scanner: allocate correct buffer size for m4 path. Flex did not check the length of the m4 path which could lead to a
buffer overflow in some cases. Additionally, not all platforms
believe in PATH_MAX, so stop relying on it. Fixes #138
2016-11-24 Will Estes <[email protected]>
* NEWS: doc: note no more libcompat in NEWS
2016-11-24 Will Estes <[email protected]>
* lib/Makefile.am: build: explain empty lib/Makefile.am
2016-11-20 Explorer09 <[email protected]>
* configure.ac: build: warn about cross compiling with *alloc
2016-11-19 Explorer09 <[email protected]>
* configure.ac, lib/Makefile.am, lib/lib.c, src/Makefile.am: build:
Link $(LIBOBJS) from src/ dir, remove libcompat.la. The libcompat.la library was small and less friendly to
bootstrapping and cross compilation. Now, we will simply link
individual object files as needed, which is simpler.
2016-11-16 Explorer09 <[email protected]>
* src/Makefile.am: build: Let stage1flex respect LFLAGS
2016-11-14 Will Estes <[email protected]>
* NEWS: doc: describe --disable-libfl in NEWS
2016-10-31 Explorer09 <[email protected]>
* configure.ac, src/Makefile.am: build: Add --disable-libfl
configure option. Disabling libfl is useful when building flex for a cross-toolchain. Fixes: GH-99
2016-11-09 Demi Obenour <[email protected]>
* src/flex.skl, tests/array_r.l: fix backwards incompatible changes
in 2.6.2. This patch addscompatibility `#defines` for all macros affected by
`%prefix`. Fixes #113.
2016-11-08 Will Estes <[email protected]>
* tests/.gitignore: git: ignore quote_in_comment artifacts
2016-11-08 Demi Obenour <[email protected]>
* src/scan.l, tests/Makefile.am, tests/quote_in_comment.l,
tests/quote_in_comment.txt: Fixes a major bug in Flex's own lexing
of literals. My changes caused Flex to mishandle string and character literals in
line comments. This commit fixes them. Fixes #113.
2016-11-06 Thomas Klausner <[email protected]>
* configure.ac: Fix unportable test(1) operator. "==" is only supported by bash, "=" is the standard comparison
operator.
2016-11-02 Demi Obenour <[email protected]>
* tests/quotes.l: Add more escaping tests
2016-11-01 Demi Obenour <[email protected]>
* src/scan.l: Fix another escaping bug in non-indented verbatim section 2 code. I also did some reformatting.
2016-10-28 Alastair Hughes <[email protected]>
* configure.ac: build: fix false negatives for help2man and texi2dvi HELP2MAN and TEXI2DVI (or the corresponding ac_prog variables) will
never be zero length as they fall back to the missing script; check
for the fall back and warn on that instead of always warning.
2016-10-28 Explorer09 <[email protected]>
* doc/Makefile.am: doc: Don't delete flex.1 during "make distclean". flex.1 is pre-generated in release tarball. If we delete it, the
next "configure and make" on the source directory will then require
help2man unnecessarily.
2016-10-27 Alastair Hughes <[email protected]>
* NEWS, doc/Makefile.am: Only regenerate the man page when required. Make the flex binary an order-only prerequisite, and add back the
prerequisites from before 7cfb440. This prevents rebuilding the man
page whenever the flex binary is rebuilt, which causes problems if
help2man is not installed and will never work when cross compiling. Fixes #108.
2016-10-26 Will Estes <[email protected]>
* NEWS, src/Makefile.am: build: no longer build PIC version of
libfl. The PIC version of libfl was not being built correctly. From the
lack of bug reports around this problem, we conclude that the PIC
version of libfl is not used and so we drop it from the build build
targets for flex.
2016-10-25 Explorer09 <[email protected]>
* README.md: doc: README.md formatting fixes * Wrap everything in the raw document in 72 char per line limit. * Proper casing for terms "Git" and "GitHub" (don't try to look
lazy). * Add unordered list marks when needed. * Say `configure && make && make install` and quoted for fixed-width font. Signed-off-by: Kang-Che Sung <[email protected]>
2016-10-25 Will Estes <[email protected]>
* NEWS, configure.ac: build: version 2.6.3 begins
2016-10-24 Will Estes <[email protected]>
* NEWS: doc: mark 2.6.2 release date
2016-10-24 Will Estes <[email protected]>
* .gitignore, NEWS, configure.ac: build: switch xz to lzip
2016-10-20 Demi Obenour <[email protected]>
* src/scan.l, tests/quotes.l: Fix M4 quotation in section 2 prologue
and refactor duplicated code
2016-10-21 Alex Kennedy <[email protected]>
* doc/flex.texi: Update flex.texi: Removed repedative wording "Flex used to" was written twice at the beginning of Chapter 9,
paragraph 2.
2016-09-27 Demi Obenour <[email protected]>
* src/dfa.c, src/gen.c, src/main.c, src/nfa.c, src/parse.y,
src/scan.l, tests/bison_yylval_scanner.l,
tests/include_by_push.direct.l: Improved M4 quotation This fixes M4 quotation of certain strings beginning with `yy` (in
section 3 of the input file only) and character literals. The new
quotation method is also less brittle and faster. Tests that relied on the old behavior were fixed. Also, `yyconst` is no longer defined; use `const` (which it
unconditionally was defined to) instead.
2016-10-19 Will Estes <[email protected]>
* Makefile.am, configure.ac: build: for automake, flex is foreign
2016-10-19 Will Estes <[email protected]>
* README, README.md: doc: mv README to README.md
2016-10-19 Will Estes <[email protected]>
* README: doc: touch up README
2016-10-19 Will Estes <[email protected]>
* README: doc: README no longer mentions sourceforge
2016-10-06 Will Estes <[email protected]>
* NEWS: doc: update NEWS with more post-2.6.1 additions
2016-09-27 Demi Obenour <[email protected]>
* src/filter.c, src/flexdef.h, src/main.c, src/misc.c,
src/options.c, src/options.h, src/scan.l, src/yylex.c,
tests/Makefile.am, tests/alloc_extra.l, tests/array_r.l,
tests/basic_r.l, tests/c_cxx_nr.lll, tests/c_cxx_r.lll,
tests/debug_r.l, tests/include_by_reentrant.direct.l,
tests/lineno_r.l, tests/mem_nr.l, tests/mem_r.l, tests/posix.l,
tests/posixly_correct.l, tests/pthread.l, tests/quotes.l,
tests/reject.l4, tests/rescan_nr.direct.l, tests/rescan_r.direct.l,
tests/string_nr.l, tests/string_r.l: Fix M4 quoting of section 3. This fixes M4 quoting of section 3 of the input file, including
escape sequences and character constants. Tests were added to verify the behavior in section 3 with respect to
quoting. Both escaping of quotes and quoting of potential
macro-start characters are tested. Existing tests were also fixed to
account for the new -- and now correct -- behavior. Many tests
relied on the old behavior of expanding M4 macros in section 3.
They needed to be updated for the new behavior.
2016-10-03 Mightyjo <[email protected]>
* src/flex.skl, tests/.gitignore, tests/Makefile.am,
tests/cxx_restart.ll, tests/cxx_restart.txt: Fix yyrestart(NULL)
SEGV.
2016-09-05 Demi Obenour <[email protected]>
* src/scan.l: scanner: M4 quoting fixes
2016-09-05 Demi Obenour <[email protected]>
* src/Makefile.am: Support `make indent` for out of source builds
2016-09-24 Demi Obenour <[email protected]>
* src/Makefile.am, src/mkskel.sh: Simplify some shell code
2016-09-23 Demi Obenour <[email protected]>
* doc/flex.texi, src/flex.skl, src/flexdef.h, src/main.c,
src/options.c, src/options.h, src/scan.l, tests/.gitignore,
tests/Makefile.am, tests/noansi_nr.l, tests/noansi_nr.txt,
tests/noansi_r.l, tests/noansi_r.txt: no longer generate K&R C
scanners
2016-09-04 Demi Obenour <[email protected]>
* src/scan.l: Fix escaping of `[[` and `]]` in strings Previously, `[[` and `]]` were not escaped in strings, which led to
bad interactions with m4. Also, don't break strings on newline, as GCC et al support
whitespace between a backslash and the subsequent newline.
2016-06-20 Translation Project <[email protected]>
* NEWS, po/sv.po: new sv translation
2016-05-23 Demetri Obenour <[email protected]>
* src/misc.c: Delete action_m4_define from misc.c This function was not used and always triggered a fatal error when
run.
2016-05-20 Will Estes <[email protected]>
* tests/Makefile.am, tests/testwrapper-direct.sh: test: run direct
tests from srcdir
2016-01-11 Egor Pugin <[email protected]>
* tests/include_by_buffer.direct.l, tests/include_by_push.direct.l,
tests/include_by_reentrant.direct.l: Exited with error code on some
conditions in include tests
2016-05-20 Will Estes <[email protected]>
* tests/testwrapper.sh: test: drop .exe when making input file names
2016-05-20 Will Estes <[email protected]>
* tests/Makefile.am: test: removed dependencies for include tests
2016-04-28 Tobias Klauser <[email protected]>
* src/scanflags.c: Avoid realloc on every call of sf_push() Currently, every call to sf_push() realloc()'s _sf_stack, even if
the maximum size _sf_max wasn't changed. As the indentation beneath
the "if" clause already indicates, the realloc() should only be
executed if _sf_max was increased. Found by compiling flex with the -Wmisleading-indentation flags of
gcc, which leads to the following warning: scanflags.c: In function âsf_pushâ: scanflags.c:42:5: warning:
this âifâ clause does not guard... [-Wmisleading-indentation] if
(_sf_top_ix + 1 >= _sf_max) ^~ scanflags.c:44:9: note: ...this
statement, but the latter is misleadingly indented as if it is
guarded by the âifâ _sf_stk = realloc(_sf_stk,
sizeof(scanflags_t) * _sf_max); ^~~~~~~
2016-03-31 Will Estes <[email protected]>
* doc/Makefile.am: build: prettified command to build man page
2016-03-31 Will Estes <[email protected]>
* doc/Makefile.am: build: added man page to DISTCLEANFILES
2016-03-31 Will Estes <[email protected]>
* BUGS, TODO: remove unused TODO, BUGS files
2016-03-31 Will Estes <[email protected]>
* to.do/README, to.do/Wilhelms.todo, to.do/Wish-List,
to.do/flex.rmail, to.do/streams.mail, to.do/unicode/FlexLexer.h,
to.do/unicode/ccl.c, to.do/unicode/changes.txt,
to.do/unicode/ecs.c, to.do/unicode/flex.1, to.do/unicode/flex.skl,
to.do/unicode/flexdef.h, to.do/unicode/gen.c, to.do/unicode/main.c,
to.do/unicode/misc.c, to.do/unicode/scan.l, to.do/unicode/tblcmp.c:
removed to.do/ directory
2016-03-31 Will Estes <[email protected]>
* po/POTFILES.in: gettext: removed flex.skl from POTFILES.in file
list
2016-03-31 rlar <rlar>
* src/Makefile.am: fix skel.c dependency (missing tables_shared.c)
and polish build rule Also remove references to srcdir since skel.c is no longer mentioned
in po/POTFILES.in.
2016-03-31 rlar <rlar>
* doc/Makefile.am: fix flex.1 dependency git clean -fdx && ./autogen.sh && \ mkdir -p ../build && cd ../build && ../flex/configure && make -j10
&& \ make dist failed with: > help2man: can't get `--help' info from ../../flex/src/flex Note: There is no dependency except for the flex binary.
2016-03-31 rlar <rlar>
* src/Makefile.am: fix stage1scan.c and stage1scan.l dependency git clean -fdx && ./autogen.sh && \ mkdir -p ../build && cd ../build && ../flex/configure && make -j10 failed with: > ../src/stage1flex -o stage1scan.c stage1scan.l > stage1flex: can't
open stage1scan.l Note: stage1scan.c is not necessairy in the "make dist" generated tar.gz
file. stage1flex will be build from scan.c (which is
distributed), and this will then generate stage1scan.c from scan.l
2016-03-31 Will Estes <[email protected]>
* po/POTFILES.in: gettext: list src/flex.skl in po/POTFILES.in
2016-03-29 rlar <rlar>
* src/gen.c: warning in generated code, with -Ca warning: conversion to 'yy_state_type' from 'flex_uint32_t' may
change the sign of the result [-Wsign-conversion]
2016-03-29 rlar <rlar>
* tests/Makefile.am: suppress `WARNINGFLAGS' for the almost obsolete
`noansi' test cases
2016-03-29 rlar <rlar>
* configure.ac, src/Makefile.am, tests/Makefile.am: configure option
`--enable-warnings' and `WARNINGFLAGS' `WARNINGFLAGS' can be passed when invoking `configure' and when invoking `make' if configure switch `--enable-warnings' was given then default to something useful if we have `GCC' `WARNINGFLAGS' is not used when compiling `stage1flex' to avoid unnecessary clutter
2016-03-31 Tobias Klauser <[email protected]>
* src/main.c: Fix potential buffer overflow in strncat() When using clang/llvm 3.8 to compile flex, the following warning is
emitted: main.c:378:27: warning: the value of the size argument in 'strncat'
is too large, might lead to a buffer overflow [-Wstrncat-size]
strncat(m4_path, m4, sizeof(m4_path));
^~~~~~~~~~~~~~~
main.c:378:27: note: change the argument to be the free space in the
destination buffer minus the terminating null byte strncat(m4_path,
m4, sizeof(m4_path)); ^~~~~~~~~~~~~~~
sizeof(m4_path) - strlen(m4_path) - 1Fix it up by using the solution proposed by the warning message.
2016-03-29 Robert.Larice Robert Larice <[email protected]>
* src/Makefile.am: build: simplified dependency tracking so parallel
make runs succeed
2016-03-20 rlar <rlar>
* src/flex.skl, src/gen.c, src/main.c: avoid warning in generated
code, with -Cf warning: conversion to 'unsigned int' from 'int' may change the sign
of the result [-Wsign-conversion]
2016-03-18 Will Estes <[email protected]>
* NEWS, configure.ac: mention v2.6.2; summarize changes since 2.6.1
2016-03-18 Will Estes <[email protected]>
* doc/flex.texi: doc: corrected example in manual, gh#67
2016-03-16 rlar <rlar>
* tests/string_nr.l, tests/string_r.l, tests/yyextra.l: warning:
conversion to 'size_t' from 'int' may change the sign of the result
[-Wsign-conversion]
2016-03-16 rlar <rlar>
* tests/mem_nr.l, tests/mem_r.l, tests/pthread.l: warning:
conversion to 'long unsigned int' from 'int' may change the sign of
the result [-Wsign-conversion]
2016-03-16 rlar <rlar>
* src/flex.skl: warning: conversion to 'flex_uint32_t' from 'long
unsigned int' may alter its value [-Wconversion] struct yytbl_reader, member bread is of type flex_uint32_t
2016-03-16 rlar <rlar>
* tests/alloc_extra.l, tests/bison_nr_main.c,
tests/bison_nr_parser.y, tests/bison_yylloc_parser.y: warning:
redundant redeclaration of '...' [-Wredundant-decls]
2016-03-16 rlar <rlar>
* tests/bison_nr_parser.y, tests/bison_yylloc_parser.y,
tests/bison_yylval_parser.y, tests/pthread.l: warning: no previous
prototype for '...' [-Wmissing-prototypes]
2016-03-16 rlar <rlar>
* tests/multiple_scanners_r_main.c: warning: unused variable 'fp'
[-Wunused-variable]
2016-03-16 rlar <rlar>
* tests/pthread.l: main(), warning: redundant redeclaration of
'main' [-Wredundant-decls]
2016-03-16 rlar <rlar>
* tests/include_by_reentrant.direct.l, tests/lineno_nr.l,
tests/lineno_r.l, tests/lineno_trailing.l: main(), warning:
old-style function definition [-Wold-style-definition]
2016-03-16 rlar <rlar>
* tests/alloc_extra.l, tests/array_nr.l, tests/array_r.l,
tests/basic_nr.l, tests/basic_r.l, tests/ccl.l, tests/debug_nr.l,
tests/debug_r.l, tests/extended.l, tests/mem_nr.l, tests/mem_r.l,
tests/noansi_r.l, tests/posix.l, tests/posixly_correct.l,
tests/prefix_nr.l, tests/prefix_r.l, tests/quotes.l,
tests/string_nr.l, tests/string_r.l, tests/yyextra.l: main(),
warning: old-style function definition [-Wold-style-definition]
2016-03-01 rlar <rlar>
* src/ecs.c, src/tblcmp.c: Fix two more casts
2016-03-14 Bastian Köcher <[email protected]>
* src/gen.c: Fixes yyl compare with unsigned warning
2016-03-13 Robert Larice <[email protected]>
* configure.ac: Suppress portability warnings in Makefile generation
2016-02-27 rlar <rlar>
* src/flex.skl: generated code, in yyensure_buffer_stack(), change
type of local `num_to_alloc' which is exclusively used in yy_size_t context
2016-03-01 rlar <rlar>
* src/flex.skl: generated code, in yy_get_next_buffer(), change type
of local `number_to_move' suits better, because `yy_n_chars' and `yy_buf_size' are of type
`int'
2016-02-27 rlar <rlar>
* src/flex.skl: generated code, `_yybytes_len' is of type `int', fix
code accordingly
2016-02-28 rlar <rlar>
* src/gen.c: generated code, `max_size' seems to be of type `int',
fix casts accordingly
2016-02-28 rlar <rlar>
* src/flex.skl: generated code, here `new_size' is of type `int',
fix casts accordingly
2016-02-28 rlar <rlar>
* src/flex.skl: generated code, `yy_buf_size' is of type `int', fix
casts accordingly
2016-02-28 rlar <rlar>
* src/flex.skl: generated code, `offset' is of type `int'
2016-02-28 rlar <rlar>
* src/gen.c: generated code, `yy_more_len' is of type `int'
2016-02-28 rlar <rlar>
* src/scan.l: scan.l, rewrite two loops to avoid unneccesairy
casting
2016-03-01 rlar <rlar>
* src/regex.c, src/tables.c: improve readability
2016-02-28 rlar <rlar>
* src/tblcmp.c: another cast in tblcmp.c to avoid warning
2016-02-28 rlar <rlar>
* src/buf.c: casts in buf_append() to get rid of warnings
2016-02-28 rlar <rlar>
* src/dfa.c, src/gen.c: cast to suite type of flex_uint32_t td_lolen
2016-02-28 rlar <rlar>
* src/main.c, src/misc.c, src/regex.c, src/scan.l, src/scanopt.c,
src/tables_shared.c: cast to get rid of warnings
2016-03-01 rlar <rlar>
* src/buf.c, src/main.c: cast and fix usage of log10(), ceil to
prevent buffer overflow
2016-03-01 rlar <rlar>
* src/tables.c: tables.c, sprinkle casts to get rid of warnings
2016-03-01 rlar <rlar>
* src/tables.c: yytbl_data_compress(), change type of local newsz to
get rid of warnings
2016-03-01 rlar <rlar>
* src/tables.c, src/tables.h: change type of struct
yytbl_writer.total_written to get rid of warnings
2016-02-28 rlar <rlar>
* src/tables.c: change argument type of yytbl_writen() to get rid of
warnings
2016-03-01 rlar <rlar>
* src/tables.c: yytbl_write8/16/32(), change type of local variables
to get rid of warnings
2016-02-28 rlar <rlar>
* src/flexdef.h, src/misc.c, to.do/unicode/flexdef.h,
to.do/unicode/misc.c: change return type and rename int
htoi()/otoi() --> unsigned int htoui()/otoui()
2016-03-01 Will Estes <[email protected]>
* NEWS: Mention 2.6.1 release date
2016-02-28 rlar <rlar>
* src/gen.c: avoid warning, add (int) cast to the read() return
value For similiarity with the fread() case.
2016-02-28 rlar <rlar>
* src/scan.l: avoid warning, POSIX says yyless() has an `int'
argument
2016-02-29 rlar <rlar>
* src/filter.c: use type size_t in filter_tee_header() to avoid
warnings
2016-02-29 rlar <rlar>
* src/filter.c, src/misc.c, src/scanopt.c, src/tables.c: add
(size_t) casts to malloc invocations to prevent warnings
2016-02-29 rlar <rlar>
* src/buf.c, src/misc.c, src/scan.l, src/scanopt.c, src/tables.c:
add (int) casts to some strlen() invocations to prevent warnings
2016-02-29 rlar <rlar>
* src/flexdef.h, src/scan.l, src/sym.c: ndlookup(), char *, to get
rid of casts and warnings
2016-02-28 rlar <rlar>
* src/flexdef.h, src/scan.l, src/sym.c: ndinstal(), char *, to get
rid of casts and warnings
2016-02-28 rlar <rlar>
* src/flexdef.h, src/scan.l, src/sym.c: cclinstal() and ccllookup(),
char *, to get rid of casts and warnings
2016-02-28 rlar <rlar>
* src/gen.c: warning: redundant redeclaration of
âgen_next_stateâ [-Wredundant-decls]
2016-02-28 rlar <rlar>
* src/gen.c: warning: no previous prototype for âmkecstblâ
[-Wmissing-prototypes]
2016-02-28 rlar <rlar>
* src/main.c: warning: suggest parentheses around assignment used as
truth value [-Wparentheses]
2016-02-28 rlar <rlar>
* src/flexdef.h: warning: redundant redeclaration of âyywrapâ
[-Wredundant-decls]
2016-02-28 rlar <rlar>