tg
13e91621ca
fixup the remaining issues and last optimisations
2017-04-27 23:12:49 +00:00
tg
d54d4aab50
batch of optimisations
2017-04-27 20:22:28 +00:00
tg
1080008a8f
eliminate legacy macros
2017-04-27 19:33:53 +00:00
tg
3dff460cde
prepare the new fast character classes, not live yet: need sanity check
...
unfortunately we need at least 21 or so, maybe 19, classes, so sizing
things down to short is not possible; we can splurge with 32 bit thus
2017-04-22 00:07:10 +00:00
tg
d3be19ac69
now actually do comparisons for sorting ASCIIbetically
2017-04-21 20:06:06 +00:00
tg
e18a509a80
make ord() result unsigned int; add asc() which is:
...
• not designed to be emitted, only used in comparisons with
other asc() results
• on EBCDIC platforms, the mapping of an EBCDIC octet to their
corresponding ASCII or Unicode/UCS-4 codepoint or, if there
is no mapping, a distinct value above all valid Unicode codepoints
• on nōn-EBCDIC platforms, just the identity mapping of the input
octet into their ord() value
Intended use are ASCII-ish character ops, including ranges (“A-Z”),
mapping from those to the corresponding digit offset, and sorting
of things in an ASCIIbetical way
2017-04-21 19:50:09 +00:00
tg
36ea8e6171
on ^C (INTR, QUIT edchars), shove input line into history
2017-04-21 19:08:18 +00:00
tg
30cae62468
(very few) fixes and a couple of workarounds for Coverity
2017-04-12 16:46:23 +00:00
tg
86cb621c88
fix ^O if modified; LP#1675842
2017-04-12 15:54:47 +00:00
tg
ca6bd1f99b
make -masm=intel safe: don’t call a module-global variable “es”
2017-04-08 20:35:03 +00:00
tg
3909a42540
fix reentrancy of 'typeset -f' output in the face of aliases; also,
...
move alias handling for COMSUBs and friends to parse time by request
of Martijn Dekker (and for consistency with function definitions)
2017-04-06 01:59:58 +00:00
tg
e52d30ac2e
plug a small memory leak
2017-04-05 22:54:51 +00:00
tg
ced705ae04
handle multibyte backspace in ^R
2017-04-02 15:43:24 +00:00
tg
b22af76755
do not output incomplete multibyte chars in ^R
2017-04-02 15:42:59 +00:00
tg
718d397fff
merge mksh-os2 by KO Myung-Hun <komh@chollian.net> from https://github.com/komh/mksh-os2
2017-04-02 15:00:45 +00:00
mirabilos
e216226f68
mostly more KNF
2017-03-26 00:18:21 +01:00
KO Myung-Hun
c19b8b104c
Merge remote-tracking branch 'mksh/master'
2017-03-22 17:50:23 +09:00
tg
bc4397e28a
fixup tilde expansion comments; revert a few bogus dirsep changes
...
cf. <Pine.BSM.4.64L.1703112129500.29506@herc.mirbsd.org>
2017-03-11 22:49:56 +00:00
KO Myung-Hun
a2e965cad3
Merge remote-tracking branch 'mksh/master'
...
Conflicts:
Makefile
edit.c
eval.c
exec.c
main.c
misc.c
sh.h
var.c
2016-11-12 13:22:58 +09:00
tg
0ba220d2c4
gcc 6.2 warnings (stupid uninitialised that wasn't, plus FALLTHROUGH fixes)
2016-11-11 23:48:30 +00:00
tg
7b4bee7e58
collective R54 release preparation multi-merger:
...
install both lksh and mksh manpages from Build.sh (Martijn Dekker)
spelling fixes (Larry Hynes)
manpage improvements (Martijn Dekker)
initial port to Harvey-OS’ APEX (Ronald G. Minnich, Elbing Miss, Álvaro Jurado)
more from komh’s OS/2 port (KO Myung-Hun)
2016-11-11 23:31:39 +00:00
tg
6c04e4a665
make print -c honour line separator
2016-11-11 21:13:25 +00:00
tg
5ba6be5837
put print_columns options into a helper struct, eases passing things around
2016-11-11 20:14:18 +00:00
tg
e16b0b9d5b
first implementation of “print -c” for columnising, currently hardcoded newlines
2016-11-11 19:59:39 +00:00
tg
d18f9133c8
fix English (thanks to Andreas Buschka); TIL:
...
• to start ⇒ a start
• to begin ⇒ a beginning
2016-09-01 12:59:12 +00:00
KO Myung-Hun
d4be6d4358
Merge tag 'mksh-R53' into HEAD
...
Conflicts:
exec.c
2016-08-13 15:05:49 +09:00
tg
cc6857dfb6
clean up chtypes use
2016-08-01 18:42:42 +00:00
tg
59619ee2ab
fix sign comparison warning pointed out by Debian’s GCC
...
this commit sponsored by ⮡ tarent
2016-08-01 14:25:39 +00:00
tg
b8180fba1f
fix two int→size_t; reduce edchar struct size
2016-07-28 21:39:04 +00:00
tg
b330976689
this hack from commitid 1004651F21443013C37 is no longer necessary (thought so)
2016-07-26 22:55:35 +00:00
tg
9dbd643504
implement new evaluate-region editing command (!MKSH_SMALL)
...
while here, fixup x_redraw refactoring x_clrtoeol, x_pprompt, and x_lastpos
2016-07-26 21:37:26 +00:00
tg
04454868ff
the limit parameter to x_redraw was completely bogus, drop it for now
2016-07-26 20:43:14 +00:00
tg
644536732b
eek, forgot some conditions
2016-07-26 20:13:40 +00:00
tg
4310e75f75
make tmux hack workable for now (libtermcap is… ugly)
...
• track $TERM for the types tmux uses /^screen(-.*)?$/
• when tmux is in use (or GNU screen, really), use the, now
hardcoded, clear-to-EOL string; otherwise, use the old behaviour
• drop unnecessary x_e_rebuildline()
carefully tested to behave no worse than R52b
2016-07-25 20:43:54 +00:00
tg
c3e794c4d0
rework string pooling; disable our own (rely on compiler’s)…
...
• if HAVE_STRING_POOLING is set to 1
• if HAVE_STRING_POOLING is set to 2 and not GCC < 4 is used
• if HAVE_STRING_POOLING is not set to 0 and LLVM or GCC >= 4 is used
Closes: LP#1580348
2016-07-25 00:04:48 +00:00
tg
8370c0dd4d
experimentally use MKSH_CLRTOEOL_STRING instead of lots of spaces followed
...
by lots of backspaces for many clearing scenarios; requested by tmux user
slagtc on IRC
2016-07-12 23:07:10 +00:00
KO Myung-Hun
e8966076c8
Merge remote-tracking branch 'mksh/master'
2016-05-06 17:12:52 +09:00
tg
92833fc6ce
fix utf_widthadj/utf_skipcols handling for the remaining cases I can spot
2016-05-05 22:56:15 +00:00
tg
1cc8f76f07
fix order of bounds checks; inspired by NetBSD#50747
2016-04-14 11:51:26 +00:00
KO Myung-Hun
68f6e899ef
Merge tag 'mksh-R52c'
2016-03-05 14:59:34 +09:00
tg
cb0604767f
address latest Debian gcc-snapshot’s warnings (some actual bugs!)
2016-03-04 14:26:16 +00:00
KO Myung-Hun
36ea6b5f88
Merge remote-tracking branch 'mksh/master'
2016-01-24 16:43:45 +09:00
tg
188691d285
save 200 bytes off .text by revisiting string pooling
...
also, forgotten version bump
2016-01-21 18:24:45 +00:00
KO Myung-Hun
780f220e23
Merge remote-tracking branch 'mksh/master'
...
Conflicts:
check.t
exec.c
sh.h
2015-10-11 19:42:38 +09:00
tg
3fc8b5eb94
partial oksh sync, up to commit 80be547da108d5c241ae068290ca3e331446aa41?
2015-10-09 16:11:19 +00:00
KO Myung-Hun
bd9de444e3
Merge remote-tracking branch 'mksh/master'
2015-09-12 12:50:57 +09:00
tg
4adcfe8b58
oksh sync, simplify *all* if(x)free(x); constructs, simplify x_push() and sync boilerplate while here
2015-09-05 19:19:12 +00:00
KO Myung-Hun
4c61aeebe5
Use upstream style macro/function names
...
modified: edit.c
modified: eval.c
modified: exec.c
modified: main.c
modified: misc.c
modified: sh.h
2015-07-21 16:30:47 +09:00
KO Myung-Hun
2c5474b326
edit: 0xE0 prefix is not needed any more
...
Upstream supports PC extension scancodes starting with 0x00.
modified: edit.c
2015-07-21 16:30:47 +09:00
KO Myung-Hun
834349f3be
Merge remote-tracking branch 'mksh/master'
...
Conflicts:
Build.sh
check.pl
check.t
edit.c
emacsfn.h
exec.c
funcs.c
main.c
misc.c
sh.h
var.c
2015-07-21 16:30:46 +09:00