Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-01-14 | sam: avoid out-of-bounds read in rterm | Russ Cox | 1 | -2/+2 | |
Usually r->nused < r->nalloc and the read is in bounds. But it could in theory be right on the line and reading past the end of the allocation. Make it safe but preserve as much of the old semantics as possible. This use of rterm appears to be only for optimization purposes so the result does not matter for correctness. | |||||
2021-01-14 | sam: remove backward ?: | Russ Cox | 1 | -1/+1 | |
The exit code here is ignored anyway. | |||||
2021-01-05 | acme, sam, samterm: remove weird switch usage | Russ Cox | 2 | -3/+5 | |
For whatever reason all three of these programs contain switches like: switch(x) { case 1: if(cond) case 2: f(); } Like Duff's device, this is legal C but more obscure than it really needs to be. This commit assumes those are intended as written and simply writes them more clearly. I did consider that maybe they are mistakes, but in the case of sam/regexp.c, my rewrite in this commit matches the acme/regx.c that has been in plan9port since I added acme in 2003. (I didn't bother to dig up the old Plan 9 releases.) Assuming acme/regx.c has been correct for the past two decades, this commit should be correct too. | |||||
2021-01-05 | sam: rm dregs | Russ Cox | 4 | -293/+0 | |
2021-01-05 | stats: add threadmaybackground | Russ Cox | 3 | -39/+39 | |
2020-08-15 | all: a few more #define tricks for AIX | Russ Cox | 1 | -0/+3 | |
This should make the AIX build finally work. Fixes #400. | |||||
2020-01-10 | Trivial changes: whitespace and modes. | Dan Cross | 8 | -27/+22 | |
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net> | |||||
2019-12-19 | sam: report close error | Russ Cox | 3 | -1/+9 | |
2018-03-27 | sam: freetmpstr instead of free | Xiao-Yong Jin | 1 | -1/+1 | |
2014-03-13 | acme, sam: handle >1GB files correctly | Russ Cox | 2 | -2/+5 | |
TBR=rsc https://codereview.appspot.com/74060043 | |||||
2012-10-21 | fix clang warnings reported by Tuncer Ayaz | Russ Cox | 1 | -1/+1 | |
R=rsc http://codereview.appspot.com/6744054 | |||||
2012-09-17 | sam: add $% as an alias for $samfile | Russ Cox | 1 | -0/+1 | |
R=r http://codereview.appspot.com/6488137 | |||||
2010-08-04 | sam: use ulong as type of dev consistently | Russ Cox | 1 | -1/+1 | |
Otherwise io.c:39 compares int != ulong, causing spurious file modification warnings when dev doesn't fit in an int. R=r http://codereview.appspot.com/1917045 | |||||
2010-07-14 | acme, sam: fix regexp code for bigger Runemax | Russ Cox | 1 | -24/+26 | |
R=r http://codereview.appspot.com/1765042 | |||||
2009-12-06 | sam: fix off-by-one in buffer merge. | Russ Cox | 1 | -2/+2 | |
exposed by UTFmax==4 R=rsc http://codereview.appspot.com/165071 | |||||
2009-09-11 | convert to 4-byte UTF-8 and 32-bit Rune | Russ Cox | 2 | -3/+3 | |
http://codereview.appspot.com/116075 | |||||
2008-04-16 | sam: clean up checkerrs (Rob Pike) | Russ Cox | 1 | -3/+3 | |
2008-04-15 | sam: allow more output from ! command (Rob Pike) | Russ Cox | 1 | -2/+2 | |
2008-01-30 | sam: fix regexp match choice bug | Russ Cox | 1 | -1/+1 | |
2007-12-07 | sam: revert regexp fix | Russ Cox | 1 | -59/+49 | |
2007-12-07 | sam: regexp fix (see libregexp change) | Russ Cox | 1 | -49/+59 | |
2007-12-04 | sam: turn off DEBUG logging (oops) | Russ Cox | 1 | -1/+0 | |
2007-06-09 | better fix | rsc | 1 | -14/+15 | |
2007-06-09 | day one bug in sam regexp code | rsc | 1 | -1/+1 | |
2007-01-12 | change name | rsc | 2 | -3/+3 | |
2007-01-12 | Bug fix fix - remove debugging implementation of needoutflush. | rsc | 1 | -1/+2 | |
2007-01-12 | Fix 15-year-old sam protocol bug. | rsc | 4 | -34/+34 | |
2006-08-29 | Aviod seg fault when no file | rsc | 1 | -1/+4 | |
2006-08-24 | set $samfile during external commands | rsc | 1 | -0/+9 | |
2006-06-26 | fix dup file name bug | rsc | 1 | -1/+10 | |
2006-05-06 | shut up gcc volatile | rsc | 1 | -3/+6 | |
2006-04-21 | darwin | rsc | 1 | -0/+3 | |
2006-04-20 | 64-bit fixes | rsc | 7 | -81/+153 | |
2006-04-01 | Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. | rsc | 11 | -20/+22 | |
2006-03-20 | update usage | rsc | 3 | -8/+1 | |
2006-03-20 | update lucida | rsc | 3 | -2/+9 | |
2005-07-13 | warnings | rsc | 1 | -0/+1 | |
2005-05-07 | use full prototypes | rsc | 1 | -1/+1 | |
2005-03-18 | bug fix from plan 9 | rsc | 1 | -2/+5 | |
2005-01-27 | remove debugging print | rsc | 1 | -1/+0 | |
2005-01-27 | add autoindent (-a) and chording. | rsc | 4 | -61/+42 | |
clean up argument parsing. | |||||
2005-01-13 | Many small edits. | rsc | 1 | -1/+1 | |
2005-01-04 | Goodbye SHORTLIB | rsc | 1 | -1/+0 | |
2004-12-28 | FreeBSD tweaks | rsc | 2 | -3/+4 | |
2004-12-28 | more little compile fixes | rsc | 2 | -8/+15 | |
2004-06-09 | use libplumb instead | rsc | 2 | -10/+2 | |
2004-05-14 | allow | rsc | 3 | -6/+25 | |
sam -r machine filelist... from presotto | |||||
2004-04-29 | add -W to specify window size. | rsc | 1 | -1/+7 | |
various other little fixes. | |||||
2004-04-19 | clean up when finished. | rsc | 1 | -1/+0 | |
don't set PLAN9 don't set PLAN9 | |||||
2004-03-26 | SunOS can rot in hell. | rsc | 1 | -0/+1 | |