Commit Graph

29 Commits

Author SHA1 Message Date
tg ecef21a50a switch mail address to .org domain 2009-04-07 19:46:55 +00:00
tg ca539f08f0 remove espie's double-linked-list based allocator and write a
similarily simple one from scratch, which however performs
better than espie's with AFREE_DEBUG enabled which took away
the benefit of the double-linked-list approach

all of (core) mksh is now MirOS licenced
2009-03-22 16:55:38 +00:00
tg 14bafefa13 bump year 2009-02-20 13:21:06 +00:00
tg 31d1499219 * back out almost all of the memory allocator related changes, as aalloc
was hard to type and hard to fix, galloc is also hard to fix, and some
  things I learned will probably improve things more but make me use the
  original form as base (especially for space savings)
* let sizeofN die though, remove even more casts
* optimise, polish
* regen Makefiles
* sprinkle a few /* CONSTCOND */ while here
2008-12-13 17:02:18 +00:00
tg e56b1f628e alloc.c is now not always included any more, aalloc.c is MirOS licenced 2008-11-12 05:00:40 +00:00
tg 102811e7fa standardise the Unicode version of our licence 2008-10-24 21:53:01 +00:00
tg 487da1357e remove advertising clause from mksh distribution: while I’d still prefer
when people mention that their product includes mksh, I won’t enforce to
have them advertise with my name… this should make things easier
2008-04-22 11:47:57 +00:00
tg aea6eea7de I hacked on mksh in this year, too 2008-02-25 02:52:20 +00:00
tg 8c958b410d small textual nits 2007-07-26 13:35:58 +00:00
tg 83c2ee87f4 • remove strcasestr.c, use home-grown implementation¹, call it stricmp,
and have it return an API-correct const char *
• enhance and stylify comments
• a little KNF and simplifications
• #ifdef DEBUG: replace strchr and strstr with ucstrchr and ucstrstr
  that take and return a non-const char *, and fix the violations
• new cstrchr, cstrstr (take and give const char *)
• new vstrchr, vstrstr (take const or not, give boolean value)
• new afreechk(x) = afreechv(x,x) = if (x1) afree(x2, ATEMP)
• new ksh_isdash(str) = (str != NULL) && !strcmp(str, "-")
• replace the only use of strrchr with inlined code to shrink
• minor man page fixes
• Minix 3 signames are autogenerated with gcc
• rename strlfun.c to strlcpy.c since we don't do strlcat(3) anyway,
  only strlcpy(3), and shorten it
• dot.mkshrc: move MKSH=… down to the export line
  to not disturb the PS1 visual impression ☺
• dot.mkshrc: Lstripcom(): optimise
• bump version

¹) side effect from creating API-correct cstrchr, cstrstr, etc.
   uses goto so it must be better ☻

tested on mirbsd-current via both Makefile and Build.sh
2007-03-04 03:04:28 +00:00
tg 263f518dfd * Build.sh: add -fwrapv to standard CFLAGS, just to be on the safe
side (I don't have capacities to scan 71711 files in MirOS for a
  standards-compliance whack)
* copyright: mention CVS changelogs as place of contributors' name
  and credit information, too
* check.t, sh.h: bump
2007-01-17 01:24:29 +00:00
tg 17a3fffc26 * main.c: when doing the conversion from strcasecmp (wrongly used)
to strcasestr, it was used in a wrong way (reverse logic error in
  checking its return value), turning to mis-detection of UTF-8 locale.
* sh.h, check.t: bump version
* copyright: bump year
2007-01-03 22:43:48 +00:00
tg 127760cfa5 fix typo, sync licence template, reindent 2006-12-11 21:24:12 +00:00
tg 17cbdbd0f7 sync with reality 2006-11-21 20:58:07 +00:00
tg 7c083ff950 improve English 2006-08-12 21:49:53 +00:00
tg 1100be9300 re-implement "set -o posix" which doesn't do much ;)
but turns off 'braceexpand' when turned on as side effect,
just like oksh/pdksh.
document "set -o sh" too.
2006-08-09 20:44:16 +00:00
tg e62ca90db2 wording improvements 2006-08-09 20:34:42 +00:00
tg daa40b4e45 this is mksh R27, tested on
* MirOS HEAD (i386, gcc 3.4)
* Debian GNU/Linux 3.1 (i386, gcc 3.3)
* Interix 3.5 (i386, gcc 3.3) - perl too old for regression tests
* GNU/Cygwin 2006-03-* (i386, gcc 3.4) - no perl installed
* Solaris 8 (sparc64, gcc 3.4)

no testing been done on
* Mac
* other BSDs
* gcc 4.1.1
* Solaris 10
because I asked for community feedback but...
2006-05-26 23:36:19 +00:00
tg 9d6fc21153 better style 2006-01-30 12:39:14 +00:00
tg 3f2912d717 * update to mksh R26c
* there is no comma in front of "which" in English, I was taught
2006-01-30 12:37:24 +00:00
tg 0addfc1c92 * replace /*...*/ form of licence with easier # form (no practical change)
* bump to 2006
2006-01-27 00:44:16 +00:00
tg 67ce90703e sync licence 2005-12-06 18:14:27 +00:00
tg d347cdc4d8 sync with reality 2005-11-24 19:42:38 +00:00
tg 871fcf8ed6 update licencing information 2005-10-25 19:56:43 +00:00
tg 6a84a52bed simplify by not dup'ing 2005-09-12 18:59:51 +00:00
tg 309b8d635f * make 64-bit clean on GNU/Linux by default
* clean up and remove some .Xr from the man page
* bump version
2005-08-21 13:02:17 +00:00
tg ea5cb2b055 add RCS ID; stress the collective work copyright more 2005-07-05 21:32:42 +00:00
tg 37428ee9c3 mention strlfun.c (glibc) 2005-07-05 21:31:32 +00:00
tg 521da70fc8 * major revamp of build system
* whitespace cleanup; junk comment removal
* syndicate debian/copyright file from my port (shrinks sh.h)
* bump to R23
2005-06-08 21:51:22 +00:00