tg
2bdcd71ef0
unbreak -d (was broken in R28)
2006-11-09 22:53:21 +00:00
tg
a48a880c00
ac_test for MKSH_SMALL presence in CPPFLAGS
...
if present, don't even look for setmode as it's only used by mknod builtin
2006-11-09 22:51:49 +00:00
tg
68caa9afdd
save 464 text with restructuring
2006-11-09 22:38:31 +00:00
tg
3c33cbcecc
don't compile mknod(1) builtin if MKSH_SMALL
...
saves 1037 text, 20 data (on i386)
2006-11-09 22:18:10 +00:00
tg
2345d8b72b
more getconf/confstr fixes
2006-11-09 22:11:08 +00:00
tg
d4ca2c9141
simplify getconf and confstr stuff
2006-11-09 22:08:08 +00:00
tg
bc215df211
make a few functions static that should be, and optimise a little
2006-11-09 21:20:49 +00:00
tg
c43e701025
optional (#ifdef MKSH_SMALL) saving of 364 more bytes of .text
...
intended e.g. for FreeWRT
2006-11-09 21:00:13 +00:00
tg
35776a9d4d
using a function instead of a macro saves 896 bytes of .text
2006-11-09 20:53:42 +00:00
tg
617950554f
missed these
2006-11-09 15:03:56 +00:00
tg
36ac8dc0f7
get rid of the need of strlcat() altogether (only one use was left)
2006-11-09 15:02:31 +00:00
tg
2b375abef1
fix SIGSEGV, we are passed NULL sometimes
2006-11-09 14:58:27 +00:00
tg
a1bfc17aa0
optimise and, ahem… plug…
2006-11-09 14:19:31 +00:00
tg
39057dd592
add the new function utf_ptradj() which does the same as utf_widthadj()
...
except it doesn't return a value and is much cheaper (no internal con-
version to UCS-2, just range checking on the multibytes)
2006-11-09 00:39:27 +00:00
tg
fb9c6e30bb
fix another warning
...
now builds on MirOS, DragonFly, NetBSD, Debian stale (i386), Solaris 8,
Debian testing (s390x) - Solaris /bin/sh, bash, ksh93, mksh
2006-11-09 00:28:36 +00:00
tg
1ffa722d73
optic sugar
2006-11-09 00:13:27 +00:00
tg
0307ecb492
* instead of including <sys/cdefs.h> (not in Solaris), we hope <sys/types.h>
...
includes it for us
* autoconf-test for <sys/param.h> (not in SUSv3) existence
2006-11-09 00:11:39 +00:00
tg
9b0dbaddbf
oops, missed syntactic change
2006-11-09 00:08:25 +00:00
tg
1c7e58a9d9
use \u0060...\u0060 instead of $(...)
...
demanded by solaris /bin/sh
2006-11-09 00:06:33 +00:00
tg
84088b91d0
there is no compat.c any more
2006-11-09 00:03:37 +00:00
tg
dc9f457f24
don't use __predict_false() here either
2006-11-09 00:01:36 +00:00
tg
e97ddf1eef
some build issues
2006-11-09 00:01:04 +00:00
tg
d8de18df87
can use short form here
2006-11-08 23:50:47 +00:00
tg
1edc9c071a
fix description of setlocale stuff a little
2006-11-08 23:49:01 +00:00
tg
11fbdb4378
implement autoconf tests for langstuff; sync date
2006-11-08 23:45:47 +00:00
tg
d5c0de53e3
use shell macros instead of dupe code
2006-11-08 23:38:28 +00:00
tg
adbd7f4b74
fix native build
2006-11-08 23:24:49 +00:00
tg
0e0782c856
first attempts at more autoconf'isation
2006-11-08 23:23:41 +00:00
tg
3b29b8be87
sync
2006-11-08 23:02:30 +00:00
tg
ddeb1948b8
sync with lib/libc/string/strlfun.c
2006-11-08 22:54:55 +00:00
tg
d98866057c
* set -o utf8-hack implies set +o emacs-usemeta (the default)
...
* we're R29 (-beta)
2006-11-08 20:32:44 +00:00
tg
9e6936ac5c
irc is fun. I registered channel #!/bin/mksh in freenode.
2006-11-08 20:27:26 +00:00
tg
3d61efea7d
fix backward deletion off-by-one in non-border case
...
take #if 0'd back debugging code for a while, until
the next release comes out… you never know…
2006-11-06 19:57:19 +00:00
tg
230d52135d
remove debugging, simplify
2006-11-05 21:11:17 +00:00
tg
1b55015772
fix that inherited pdksh buglet as well... the xlp wasn't invalidated once…
2006-11-05 21:00:08 +00:00
tg
45f1602850
nuke some of the dbg
2006-11-05 19:56:20 +00:00
tg
a3331fd8e9
fix another cursor positioning glitch (cause for \b at x_col == 0)
2006-11-05 19:48:58 +00:00
tg
b03ed7b315
* catch limit off in x_redraw (bytes vs chars vs curpos)
...
XXX should probably be screenpos, might need to use x_size* here
XXX this seems to be the tab bug I noticed which we inherited from obsd
* catch backspace if x_col == 0 (XXX better)
2006-11-05 19:35:52 +00:00
tg
47daa0eadc
fix issue with line splits inmidst of multibyte characters
2006-11-05 19:15:15 +00:00
tg
6b02a01833
track down an off-by-one and a segfault
2006-11-05 19:12:41 +00:00
tg
33ac6cb0d9
multibyte search-character-{for,back}ward
2006-11-05 17:54:46 +00:00
tg
72f958edea
fix deleting AND moving left
2006-11-05 17:34:39 +00:00
tg
15fd277841
delete and move word fore- and backwards by the right amount, too
2006-11-05 17:24:00 +00:00
tg
260eaa9d51
eliminate segfault
2006-11-05 17:11:25 +00:00
tg
5e2e209d51
make this R29(beta), mksh -U turn on (or setlocale), and document.
2006-11-05 17:01:47 +00:00
tg
abe860d486
fix deleting forward with count
2006-11-05 16:53:34 +00:00
tg
aa867d19bb
if we can't delete, keep position, as before
2006-11-05 16:48:17 +00:00
tg
dba2dec094
backspace counting
...
rest'll follow
2006-11-05 16:43:57 +00:00
tg
cc261c7968
make backspacing (and moving forward and backward) work perfectly
...
(in Emacs mode, of course) - for count=1 only though (yet)
2006-11-05 16:41:02 +00:00
tg
4787566fb6
multibyte insertion, the Plan 9 way
2006-11-05 16:10:10 +00:00