OpenBSD CVS

CVS log for src/usr.bin/bc/scan.l


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:10 2023 UTC (14 months, 1 week ago) by guenther
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.31: +1 -2 lines
Diff to previous 1.31 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.31 / (download) - annotate - [select for diffs], Mon Aug 9 19:13:56 2021 UTC (2 years, 9 months ago) by otto
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.30: +2 -1 lines
Diff to previous 1.30 (colored)

rev 1.25 replaced unsafe code in a sig handler by different but
also unsafe code. Mark that with an XXX comment. Spotted bij schwarze@

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jul 19 12:50:33 2017 UTC (6 years, 10 months ago) by espie
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
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

more depends gc / yacc rules overhaul

okay millert@

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 2 23:19:07 2017 UTC (6 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

whitespace

Revision 1.28 / (download) - annotate - [select for diffs], Thu Sep 19 16:12:01 2013 UTC (10 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.27: +1 -43 lines
Diff to previous 1.27 (colored)

separate termios.h out from scan.l, both have an ECHO define. Noted by
Joris Giovannangeli.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Aug 3 08:48:19 2011 UTC (12 years, 9 months ago) by otto
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.26: +45 -2 lines
Diff to previous 1.26 (colored)

save/restore tty state on SIGTSTP/SIGCONT. ok deraadt@ nicm@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 3 06:10:33 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.25: +18 -1 lines
Diff to previous 1.25 (colored)

Make ^D behave: dont't echo it and make it work if the cursor is at
start of line after a ^C;  ok okan@ deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jun 1 07:18:23 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.24: +28 -5 lines
Diff to previous 1.24 (colored)

- avoid YY_FLUSH_BUFFER: it is not signal safe and it does not work as intended
after the introduction of editline
- honour editline edit off mode

Revision 1.24 / (download) - annotate - [select for diffs], Mon Mar 7 08:11:15 2011 UTC (13 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.23: +41 -1 lines
Diff to previous 1.23 (colored)

add editline support; from freebsd. ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:36 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.22: +1 -5 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Mon Dec 15 19:46:29 2008 UTC (15 years, 5 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

turns out gcc is not smart enough to avoid the local array in const
char msg[] = "string literal" if you do not declare it static.
shaves off a few bytes

Revision 1.21 / (download) - annotate - [select for diffs], Sat Mar 18 20:44:43 2006 UTC (18 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: 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
Changes since 1.20: +9 -10 lines
Diff to previous 1.20 (colored)

Interchange roles: bc becomes parent, dc child. This leads to saner
tty handling (try bc | grep foo followed by ^C, as noted by deraadt@).
To make it all work, bc now waits for dc to exit after giving it a
quit command.  ok deraadt@ jaredy@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jan 24 19:38:44 2006 UTC (18 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.19: +4 -2 lines
Diff to previous 1.19 (colored)

fclose file stream before opening a new one.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 3 18:23:47 2005 UTC (18 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

ARGSUSED signal handler

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 13 06:36:03 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.17: +5 -2 lines
Diff to previous 1.17 (colored)

Always use lex in interactive mode. Makes bc running as a co-process
behave. Very, very little performance loss. Spotted by and ok fschg@

Revision 1.17 / (download) - annotate - [select for diffs], Mon Mar 28 17:43:28 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

mark potential signal race so we fix it later, ok otto

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 2 19:30:05 2004 UTC (19 years, 5 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.15: +12 -4 lines
Diff to previous 1.15 (colored)

Fix signal races for isatty(3) (calls ioctl(2)) and printf(3);
save/restore errno. YY_FLUSH_BUFFER might still be a problem.
Spotted by and ok deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Oct 19 07:36:51 2004 UTC (19 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.14: +46 -2 lines
Diff to previous 1.14 (colored)

Implement -e expression, for command line expression evaluation.
ok deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 2 09:00:07 2003 UTC (20 years, 5 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.13: +16 -4 lines
Diff to previous 1.13 (colored)

o Introduce long variable names, a non-portable extension.
o Make main program target left recursive. Reduces parse stack usage, making
  it possible to compile programs > 10000 lines.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 17 11:20:13 2003 UTC (20 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored)

Implement non-portable extensions:
o boolean operators !, && and ||.
o allow relational operators to appear in any expression, not just
  conditional expressions.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 11 19:49:02 2003 UTC (20 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

Some syntactic sugar (all non-portable extensions):
- a line comment, starting with #
- opening brace of define statement may be on next line
- return expression, equivalent to return (expression)

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 11 09:15:36 2003 UTC (20 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

Implement `print' statement, a non-portable extension.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 9 19:27:27 2003 UTC (20 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

Introduce `last' as a synonym for `.' and document them.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 18 20:35:36 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

err(1, "cannot allocate mem") -> err(1, NULL)

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 18 19:57:10 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

o Fix assignment operators (+=, -=, ... )
o Implement "continue" in loops. If continue is not used, generated code is
  still "classic" dc(1) compatible. If continue is used, you'll need a dc(1)
  that implements the J and M operators.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 30 18:46:11 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.6: +6 -3 lines
Diff to previous 1.6 (colored)

Make sure strings and error messages sent to dc(1) properly escape [, ] and \.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 29 03:24:27 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.5: +6 -9 lines
Diff to previous 1.5 (colored)

Implement (undocumented) dot shorthand, which was missing.
Spotted by millert@.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 28 07:57:57 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.4: +6 -5 lines
Diff to previous 1.4 (colored)

Better error hanndling:
- skip current line on syntax error
- detect EOF in strings and comments
- report correct line number in above case
- more consistent warning and errors

ok henning@

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 26 19:00:38 2003 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

spacing

Revision 1.3 / (download) - annotate - [select for diffs], Fri Sep 26 07:04:25 2003 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

spacing

Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 26 07:02:52 2003 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

spacing

Revision 1.1 / (download) - annotate - [select for diffs], Thu Sep 25 19:32:44 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN

A new, BSD licensed implementation of bc(1).

ok deraadt@

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.