OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Mon Dec 26 19:16:01 2022 UTC (16 months, 3 weeks ago) by jmc
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, HEAD
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

spelling fixes; from paul tagliamonte
amendments to his diff are noted on tech

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 23 02:53:44 2021 UTC (2 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.27: +8 -74 lines
Diff to previous 1.27 (colored)

substantially shorten the usage() message
pieces by jmc, pieces by me

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jan 21 08:33:07 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: 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, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.26: +10 -10 lines
Diff to previous 1.26 (colored)

Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Dec 25 16:40:06 2016 UTC (7 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Add some {}'s to eliminate "ambiguous else" warnings from gcc.

ok tb@ millert@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Dec 11 00:08:43 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored)

Remove a few NULL-checks before free(). I've already removed these
upstream.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Nov 20 04:07:43 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.23: +2 -5 lines
Diff to previous 1.23 (colored)

Always use the system m4; OK tedu@

Revision 1.23 / (download) - annotate - [select for diffs], Fri Nov 20 04:06:48 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.22: +0 -20 lines
Diff to previous 1.22 (colored)

Back out rev 1.22 which somehow had unreported merge conflicts.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 20 04:04:40 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.21: +21 -1 lines
Diff to previous 1.21 (colored)

Always use the system m4.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 19 23:34:56 2015 UTC (8 years, 6 months ago) by mmcc
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Replace Char (defined as unsigned char) with u_char.

ok tedu@

Revision 1.20 / (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.19: +2 -2 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Thu Nov 19 22:58:59 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.18: +1 -25 lines
Diff to previous 1.18 (colored)

remove VMS and MSDOS support

Revision 1.18 / (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.17: +931 -958 lines
Diff to previous 1.17 (colored)

orbital strike from moonbase knf

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 19 22:35:19 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.16: +18 -20 lines
Diff to previous 1.16 (colored)

typically indentation decreases after a block is closed

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 19 19:43:40 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.15: +1568 -886 lines
Diff to previous 1.15 (colored)

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.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 10 05:47:54 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +9 -2 lines
Diff to previous 1.14 (colored)

Some of these large so easy to contain, with "stdio rpath".
ok doug

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 16 18:38:30 2014 UTC (10 years, 2 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

lint is dead (long live the lint!), so stop using it as a cpp conditional
(namespace pollution!) or talking about its opinion on code.

ok krw@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 27 18:31:24 2013 UTC (10 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)

If a constant string needs a name, use a static const array instead of a
pointer or non-const array, as that minimizes the symbols, maximizes the
placement into read-only memory, and avoids warnings from gcc -Wformat=2
when they're used as format strings.

ok deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 8 20:22:02 2011 UTC (12 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.11: +3 -4 lines
Diff to previous 1.11 (colored)

do not document the -c flag: it was added for posix compliance,
but posix deprecated this option in issue 6 (code remains though);

from Daniel Dickman
ok otto millert

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:39 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.10: +2 -8 lines
Diff to previous 1.10 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.10 / (download) - annotate - [select for diffs], Tue Feb 3 21:20:17 2004 UTC (20 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

bring some standard C++ fixes, mostly from NetBSD.
get isatty proto from the right place.
avoid malloc.h

okay otto@, millert@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 4 17:34:44 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.8: +19 -14 lines
Diff to previous 1.8 (colored)

Update flex license from sourceforge version (is now 2-term BSD)

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 31 22:49:29 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

recommit strlcpy/snprintf diff after i found my bug

Revision 1.7 / (download) - annotate - [select for diffs], Fri May 31 00:56:21 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

undo until i find my #line bug

Revision 1.6 / (download) - annotate - [select for diffs], Thu May 30 10:53:44 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

use strlcpy and snprintf

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jun 17 07:30:42 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.4: +12 -12 lines
Diff to previous 1.4 (colored)

Vern says:
Yes, this came up a while ago, and I put together a flex release with
a modified copyright that begins:
     Redistribution and use in source and binary forms, with or
     without modification, are permitted provided that:
[...] feel free to update the copyrights in each of the files with the
one in COPYING.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 17 03:20:25 1998 UTC (25 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

fix g++/FlexLexer.h support

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jul 13 22:22:08 1996 UTC (27 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

updated to flex 2.5.3

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:35:38 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:31 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:31 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

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.