libbb: revent previous version of "concurrent history updating"
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 23 Mar 2009 06:33:37 +0000 (06:33 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 23 Mar 2009 06:33:37 +0000 (06:33 -0000)
commitc0ea82a457410b46265cddc4883fbf9fcfdb2e24
tree1e313bdded3760ddc00f8b585a215c2ef981ebbb
parentddbee974b4263a7089f18bdd02d79cfa708a4a22
libbb: revent previous version of "concurrent history updating"
and replace it with one which does not "snoop" history written
by others. (1) it is what bug 185 needs, and (2) it is less bloaty:

function                                             old     new   delta
load_history                                           -     252    +252
read_line_input                                     3155    3287    +132
next_token                                           914     918      +4
qrealloc                                              36      33      -3
getoptscmd                                           713     708      -5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/2 up/down: 388/-8)            Total: 380 bytes
include/libbb.h
libbb/lineedit.c