mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-22 02:20:31 +00:00
parent
e26bdbec52
commit
f064183646
48 changed files with 1034 additions and 921 deletions
7
third_party/duktape/duktape.mk
vendored
7
third_party/duktape/duktape.mk
vendored
|
@ -31,13 +31,14 @@ THIRD_PARTY_DUKTAPE_A_DIRECTDEPS = \
|
|||
LIBC_FMT \
|
||||
LIBC_INTRIN \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
LIBC_STUBS \
|
||||
LIBC_TIME \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_TINYMATH \
|
||||
LIBC_UNICODE \
|
||||
LIBC_NEXGEN32E
|
||||
LIBC_UNICODE
|
||||
|
||||
THIRD_PARTY_DUKTAPE_A_DEPS := \
|
||||
$(call uniq,$(foreach x,$(THIRD_PARTY_DUKTAPE_A_DIRECTDEPS),$($(x))))
|
||||
|
|
4
third_party/gdtoa/dtoa.c
vendored
4
third_party/gdtoa/dtoa.c
vendored
|
@ -168,9 +168,9 @@ dtoa(double d0, int mode, int ndigits, int *decpt, int *sign, char **rve)
|
|||
*decpt = 9999;
|
||||
#ifdef IEEE_Arith
|
||||
if (!word1(&d) && !(word0(&d) & 0xfffff))
|
||||
return nrv_alloc("Infinity", rve, 8 MTb);
|
||||
return nrv_alloc("inf", rve, 8 MTb);
|
||||
#endif
|
||||
return nrv_alloc("NaN", rve, 3 MTb);
|
||||
return nrv_alloc("nan", rve, 3 MTb);
|
||||
}
|
||||
#endif
|
||||
#ifdef IBM
|
||||
|
|
8
third_party/getopt/getopt.c
vendored
8
third_party/getopt/getopt.c
vendored
|
@ -135,8 +135,8 @@ int getopt(int nargc, char *const nargv[], const char *ostr) {
|
|||
if (optopt == ':' || (oli = strchr(ostr, optopt)) == NULL) {
|
||||
if (*getopt_place == 0) ++optind;
|
||||
if (opterr && *ostr != ':') {
|
||||
fprintf(stderr, "%s: illegal option -- %c\n", program_invocation_name,
|
||||
optopt);
|
||||
fprintf(stderr, "%s%s%c\n", program_invocation_name,
|
||||
": illegal option -- ", optopt);
|
||||
}
|
||||
return (BADCH);
|
||||
}
|
||||
|
@ -157,8 +157,8 @@ int getopt(int nargc, char *const nargv[], const char *ostr) {
|
|||
getopt_place = kGetoptEmsg;
|
||||
if (*ostr == ':') return (BADARG);
|
||||
if (opterr)
|
||||
fprintf(stderr, "%s: option requires an argument -- %c\n",
|
||||
program_invocation_name, optopt);
|
||||
fprintf(stderr, "%s%s%c\n", program_invocation_name,
|
||||
": option requires an argument -- ", optopt);
|
||||
return (BADCH);
|
||||
}
|
||||
getopt_place = kGetoptEmsg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue