git: bc(1): Sync with openBSD

Joris Giovannangeli joris at crater.dragonflybsd.org
Fri Sep 20 14:28:32 PDT 2013


commit cb7e3b3c9433ef3b14752f26e3bfdca1094c47e2
Author: Joris Giovannangeli <joris at dragonflybsd.org>
Date:   Fri Sep 20 23:17:36 2013 +0200

    bc(1): Sync with openBSD
    
    This include the following changes :
    
     * repair function when used with different scales
    
     * Better error message on unexpected newline
    
     * save/restore tty state on SIGTSTP/SIGCONT
    
     * protect errno from damage in the signal handler
    
     * make ^D behave well
       dont't echo it and make it work if the cursor is at start of line after a ^C
    
     * avoid usage of YY_FLUSH_BUFFER
    
        - 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
    
    OpenBSD updated files revisions :
        - scan.l : 1.28
        - bc.y : 1.42
        - bc.library : 1.4
        - extern.h : 1.10
        - tty.c : 1.1
    
    Obtained-from: OpenBSD

Summary of changes:
 usr.bin/bc/Makefile   |  2 +-
 usr.bin/bc/bc.1       |  4 +---
 usr.bin/bc/bc.library | 30 +++++++++++++++--------
 usr.bin/bc/bc.y       | 17 +++++++++----
 usr.bin/bc/extern.h   |  7 ++++++
 usr.bin/bc/scan.l     | 52 ++++++++++++++++++++++++++++++++++++----
 usr.bin/bc/tty.c      | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 155 insertions(+), 23 deletions(-)
 create mode 100644 usr.bin/bc/tty.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cb7e3b3c9433ef3b14752f26e3bfdca1094c47e2


-- 
DragonFly BSD source repository



More information about the Commits mailing list