kamil
0f2b5450fb
Stop using the register keyword in ksh(1)
...
ksh also does some strange things with it, like put it in argument lists.
No functional change intended.
PR bin/53237 ksh: remove register keyword by Nia Alarie
2018-05-08 16:37:59 +00:00
kamil
081e832953
ksh: Rename a local function tsearch to mytsearch
...
This removes a clash with well-known libc function tsearch(3) from POSIX.
This allows to build ksh against MSan.
The new name might not be perfect, but long term ksh should be switched to
the libc version.
Sponsored by <The NetBSD Foundation>
2018-01-24 09:53:20 +00:00
kamil
6d8c9dfa44
ksh: Rename a local function tdelete to mytdelete
...
This removes a clash with well-known libc function tdelete(3) from POSIX.
This allows to build ksh against MSan.
The new name might not be perfect, but long term ksh should be switched to
the libc version.
Sponsored by <The NetBSD Foundation>
2018-01-24 09:21:20 +00:00
joerg
da656e3d1c
Kill enough K&R cruft to build with clang again.
2017-07-01 23:12:08 +00:00
kamil
dd8a75d57f
ksh: Upgrade to C99 <stdbool.h>
...
This shell already used C99 functions.
2017-06-30 04:41:19 +00:00
kamil
fac4b39487
ksh: Drop support for systems without <sys/stat.h>
...
In future the order of includes will be normalized with KNF.
No functional change intended.
2017-06-30 03:56:12 +00:00
kamil
1dacfa0dd2
ksh: Drop support for systems with broken <sys/time.h> / <time.h>
2017-06-30 03:43:57 +00:00
joerg
a2567f3beb
Don't use non-literal format strings.
2011-10-16 17:12:11 +00:00
reed
f67ef85d6d
Typo in comment fix from Snader_LB via IRC.
2011-10-16 00:32:25 +00:00
dsl
6b42da309a
Support 0xnn for hexadecimal constants - as well as 16#nn.
...
While here, make '-' only valid once, and at the start of the number.
Fixes PR/40512
2009-08-02 21:24:18 +00:00
christos
c4378122a1
Don't leak memory if RJUST|LJUST is specified. This might fix a whole bunch
...
of Coverity issues, but we'll wait until the next run :-)
2006-03-29 15:51:00 +00:00
christos
59586f9983
Coverity CID 1606: Plug memory leak.
2006-03-19 19:12:23 +00:00
christos
a397ec1f77
warns=3
...
- remove param names from function decls
- sprinkle const
- rename shadowed variables
- XXX: there is a lot of fishy __UNCONST going on.
2005-06-26 19:09:00 +00:00
rillig
42627098be
Fixed wrong use of the <ctype.h> functions by adding (unsigned char) casts.
2005-05-23 08:03:25 +00:00
dsl
7f5b5f6c04
Add (unsigned char) casts to tolower/toupper and iscntrl calls.
...
Fixes PR 27593
2004-10-28 20:15:36 +00:00
mycroft
f662a744b6
Cleanup of ksh memory handling from OpenBSD, via Stefan Krueger in PR 24962.
...
Should also fix:
PR 8153
PR 13301
PR 15256
PR 25084
2004-07-07 19:20:09 +00:00
agc
6377cac711
Add NetBSD RCS Ids.
2003-06-23 11:38:51 +00:00
christos
d2765ed72b
PR/11361:Matthias Buelow: Apply patch1 from pdksh site.
...
- set -x dumps core (shf.c);
- output of "jobs" command is filled with ^A characters (jobs.c);
- "typeset -r foo=bar" fails saying foo is readonly (var.c).
2000-11-02 01:10:08 +00:00
hubertf
48ee8d1290
resolve conflicts
1999-10-20 15:09:58 +00:00
christos
1f3392af64
char->unsigned char casts for is*()
1998-11-04 18:27:20 +00:00
thorpej
45e5a86960
Add some braces to make egcs happy.
1998-08-19 01:43:22 +00:00
christos
90647eb832
Fix compiler warnings
...
Add WARNS=1
1997-07-20 17:41:56 +00:00
tls
2ab2e20cff
RCS ID Police
1997-01-12 19:11:37 +00:00
jtc
5a4124868a
import pdksh 5.2.9
1996-10-09 15:12:31 +00:00
jtc
e1b2664cf1
import pdksh 5.2.8
1996-09-21 23:35:13 +00:00