OpenBSD CVS

CVS log for src/usr.bin/lex/filter.c


[BACK] Up to [local] / src / usr.bin / lex

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9 / (download) - annotate - [select for diffs], Wed Aug 30 02:54:07 2017 UTC (6 years, 8 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.8: +2 -4 lines
Diff to previous 1.8 (colored)

Remove unused variable; no binary change.

From Michael W. Bombardieri, thanks!

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 17 19:27:48 2017 UTC (6 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.7: +5 -7 lines
Diff to previous 1.7 (colored)

combine malloc/memset into calloc. from Michael W. Bombardieri

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 18 06:11:23 2016 UTC (7 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.6: +1 -5 lines
Diff to previous 1.6 (colored)

Nuke more unused variables.

ok millert@

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 19 23:28:03 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

it is not necessary to cast the result of malloc/calloc.
also replace some 0s with the modern concept of NULL

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 19 23:20:34 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.4: +12 -12 lines
Diff to previous 1.4 (colored)

flex_alloc and flex_free are nothing more than malloc and free, so replace
them with the real functions so as to not trick people into thinking they
are special

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 19 22:52:40 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.3: +187 -179 lines
Diff to previous 1.3 (colored)

orbital strike from moonbase knf

Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 19 22:25:53 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.2: +17 -26 lines
Diff to previous 1.2 (colored)

repair some of the preposterously damaged indentation

Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 19 22:16:43 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.1: +1 -3 lines
Diff to previous 1.1 (colored)

we don't keep vim modelines in files

Revision 1.1 / (download) - annotate - [select for diffs], Thu Nov 19 19:43:40 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN

Update flex from ancient 2.5.4 to the recent 2.5.39.
This work was all done by Serguey Parkhomovsky. Thanks.
Some changes from upstream:
* Removed autotools cruft/localization/texinfo manual/etc
* Kept the old manpage, as the new manpage is content-free
* Used safe string handling functions and fixed several compiler warnings
* pledge(2). Flex 2.5.39 now forks/execs its filter chains and needs proc
  exec in addition to what was previously pledged
* Removed register keyword from all variable declarations
* renamed parse.c, parse.h, scan.c, skel.c with init prefix so compiling
  flex outside of obj by accident wouldn't clobber the bootstrap files
* Minor fixes (spelling, accessing buf[strlen(buf) - 1] for zero-length
  strings in initscan.c/scan.l, etc) that were already in our tree

This is a huge change, so it's going in the tree code bomb style.
I'm not excited about the growth in complexity (like now running m4
to _post_ process lexers) but hopefully this will be a one time update
and we will now take "ownership" of the code.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.