mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Remove printf() linking hack
This commit is contained in:
parent
ba03cd95c5
commit
b881c0ec9e
107 changed files with 1520 additions and 2577 deletions
2
third_party/awk/lib.c
vendored
2
third_party/awk/lib.c
vendored
|
@ -28,6 +28,7 @@
|
|||
#define DEBUG
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/math.h"
|
||||
|
@ -35,7 +36,6 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/awk/awk.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
// clang-format off
|
||||
|
||||
char EMPTY[] = { '\0' };
|
||||
|
|
2
third_party/ctags/args.h
vendored
2
third_party/ctags/args.h
vendored
|
@ -18,7 +18,7 @@
|
|||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/eiffel.c
vendored
2
third_party/ctags/eiffel.c
vendored
|
@ -19,7 +19,7 @@
|
|||
|
||||
#ifdef TYPE_REFERENCE_TOOL
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/entry.h
vendored
2
third_party/ctags/entry.h
vendored
|
@ -18,7 +18,7 @@
|
|||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/flex.c
vendored
2
third_party/ctags/flex.c
vendored
|
@ -25,7 +25,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#ifdef DEBUG
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/jscript.c
vendored
2
third_party/ctags/jscript.c
vendored
|
@ -24,7 +24,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#ifdef DEBUG
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/main.h
vendored
2
third_party/ctags/main.h
vendored
|
@ -18,7 +18,7 @@
|
|||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
4
third_party/ctags/options.c
vendored
4
third_party/ctags/options.c
vendored
|
@ -16,7 +16,7 @@
|
|||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
@ -34,7 +34,7 @@
|
|||
#include "libc/mem/alg.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/read.h
vendored
2
third_party/ctags/read.h
vendored
|
@ -24,7 +24,7 @@
|
|||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
4
third_party/ctags/sort.c
vendored
4
third_party/ctags/sort.c
vendored
|
@ -18,7 +18,7 @@
|
|||
|
||||
#if defined (HAVE_STDLIB_H)
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
@ -37,7 +37,7 @@
|
|||
#include "libc/mem/alg.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/sql.c
vendored
2
third_party/ctags/sql.c
vendored
|
@ -20,7 +20,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#ifdef DEBUG
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/tex.c
vendored
2
third_party/ctags/tex.c
vendored
|
@ -21,7 +21,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#ifdef DEBUG
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/vim.c
vendored
2
third_party/ctags/vim.c
vendored
|
@ -23,7 +23,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#ifdef DEBUG
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/ctags/vstring.h
vendored
2
third_party/ctags/vstring.h
vendored
|
@ -19,7 +19,7 @@
|
|||
|
||||
#if defined(HAVE_STDLIB_H)
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
1
third_party/gdtoa/atof.c
vendored
1
third_party/gdtoa/atof.c
vendored
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
||||
/**
|
||||
|
|
56
third_party/gdtoa/gdtoa.h
vendored
56
third_party/gdtoa/gdtoa.h
vendored
|
@ -3,6 +3,42 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define dtoa __dtoa
|
||||
#define gdtoa __gdtoa
|
||||
#define strtodg __strtodg
|
||||
#define freedtoa __freedtoa
|
||||
#define g_ddfmt __g_ddfmt
|
||||
#define g_ddfmt_p __g_ddfmt_p
|
||||
#define g_dfmt __g_dfmt
|
||||
#define g_dfmt_p __g_dfmt_p
|
||||
#define g_ffmt __g_ffmt
|
||||
#define g_ffmt_p __g_ffmt_p
|
||||
#define g_Qfmt __g_Qfmt
|
||||
#define g_Qfmt_p __g_Qfmt_p
|
||||
#define g_xfmt __g_xfmt
|
||||
#define g_xfmt_p __g_xfmt_p
|
||||
#define g_xLfmt __g_xLfmt
|
||||
#define g_xLfmt_p __g_xLfmt_p
|
||||
#define strtoId __strtoId
|
||||
#define strtoIdd __strtoIdd
|
||||
#define strtoIf __strtoIf
|
||||
#define strtoIQ __strtoIQ
|
||||
#define strtoIx __strtoIx
|
||||
#define strtoIxL __strtoIxL
|
||||
#define strtord __strtord
|
||||
#define strtordd __strtordd
|
||||
#define strtorf __strtorf
|
||||
#define strtorQ __strtorQ
|
||||
#define strtorx __strtorx
|
||||
#define strtorxL __strtorxL
|
||||
#define strtodI __strtodI
|
||||
#define strtopd __strtopd
|
||||
#define strtopdd __strtopdd
|
||||
#define strtopf __strtopf
|
||||
#define strtopQ __strtopQ
|
||||
#define strtopx __strtopx
|
||||
#define strtopxL __strtopxL
|
||||
|
||||
/**
|
||||
* Configures g_*fmt()
|
||||
*
|
||||
|
@ -61,13 +97,8 @@ enum {
|
|||
|
||||
char *dtoa(double, int, int, int *, int *, char **);
|
||||
char *gdtoa(const FPI *, int, unsigned *, int *, int, int, int *, char **);
|
||||
void freedtoa(char *);
|
||||
|
||||
double atof(const char *);
|
||||
float strtof(const char *, char **);
|
||||
double strtod(const char *, char **);
|
||||
int strtodg(const char *, char **, const FPI *, int *, unsigned *);
|
||||
long double strtold(const char *, char **);
|
||||
void freedtoa(char *);
|
||||
|
||||
char *g_ddfmt(char *, double *, int, size_t);
|
||||
char *g_ddfmt_p(char *, double *, int, size_t, int);
|
||||
|
@ -95,7 +126,6 @@ int strtorQ(const char *, char **, int, void *);
|
|||
int strtorx(const char *, char **, int, void *);
|
||||
int strtorxL(const char *, char **, int, void *);
|
||||
|
||||
#if 1
|
||||
int strtodI(const char *, char **, double *);
|
||||
int strtopd(const char *, char **, double *);
|
||||
int strtopdd(const char *, char **, double *);
|
||||
|
@ -103,18 +133,6 @@ int strtopf(const char *, char **, float *);
|
|||
int strtopQ(const char *, char **, void *);
|
||||
int strtopx(const char *, char **, void *);
|
||||
int strtopxL(const char *, char **, void *);
|
||||
#else
|
||||
#define strtopd(s, se, x) strtord(s, se, 1, x)
|
||||
#define strtopdd(s, se, x) strtordd(s, se, 1, x)
|
||||
#define strtopf(s, se, x) strtorf(s, se, 1, x)
|
||||
#define strtopQ(s, se, x) strtorQ(s, se, 1, x)
|
||||
#define strtopx(s, se, x) strtorx(s, se, 1, x)
|
||||
#define strtopxL(s, se, x) strtorxL(s, se, 1, x)
|
||||
#endif
|
||||
|
||||
float wcstof(const wchar_t *, wchar_t **);
|
||||
double wcstod(const wchar_t *, wchar_t **);
|
||||
long double wcstold(const wchar_t *, wchar_t **);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
3
third_party/gdtoa/strtod.c
vendored
3
third_party/gdtoa/strtod.c
vendored
|
@ -30,6 +30,7 @@
|
|||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/runtime/fenv.h"
|
||||
#include "third_party/gdtoa/gdtoa.internal.h"
|
||||
/* clang-format off */
|
||||
|
@ -685,3 +686,5 @@ ret:
|
|||
*se = (char *)s;
|
||||
return sign ? -dval(&rv) : dval(&rv);
|
||||
}
|
||||
|
||||
__weak_reference(strtod, strtod_l);
|
||||
|
|
24
third_party/gdtoa/strtod_l.c
vendored
24
third_party/gdtoa/strtod_l.c
vendored
|
@ -1,24 +0,0 @@
|
|||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
|
||||
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
|
||||
╞══════════════════════════════════════════════════════════════════════════════╡
|
||||
│ Copyright 2022 Justine Alexandra Roberts Tunney │
|
||||
│ │
|
||||
│ Permission to use, copy, modify, and/or distribute this software for │
|
||||
│ any purpose with or without fee is hereby granted, provided that the │
|
||||
│ above copyright notice and this permission notice appear in all copies. │
|
||||
│ │
|
||||
│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │
|
||||
│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │
|
||||
│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │
|
||||
│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │
|
||||
│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │
|
||||
│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │
|
||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/locale.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
||||
double strtod_l(const char *s, char **endptr, locale_t l) {
|
||||
return strtod(s, endptr);
|
||||
}
|
3
third_party/gdtoa/strtof.c
vendored
3
third_party/gdtoa/strtof.c
vendored
|
@ -29,6 +29,7 @@
|
|||
│ THIS SOFTWARE. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "third_party/gdtoa/gdtoa.internal.h"
|
||||
/* clang-format off */
|
||||
|
@ -66,3 +67,5 @@ strtof(const char *s, char **sp)
|
|||
u.L[0] |= 0x80000000L;
|
||||
return u.f;
|
||||
}
|
||||
|
||||
__weak_reference(strtof, strtof_l);
|
||||
|
|
24
third_party/gdtoa/strtof_l.c
vendored
24
third_party/gdtoa/strtof_l.c
vendored
|
@ -1,24 +0,0 @@
|
|||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
|
||||
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
|
||||
╞══════════════════════════════════════════════════════════════════════════════╡
|
||||
│ Copyright 2022 Justine Alexandra Roberts Tunney │
|
||||
│ │
|
||||
│ Permission to use, copy, modify, and/or distribute this software for │
|
||||
│ any purpose with or without fee is hereby granted, provided that the │
|
||||
│ above copyright notice and this permission notice appear in all copies. │
|
||||
│ │
|
||||
│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │
|
||||
│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │
|
||||
│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │
|
||||
│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │
|
||||
│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │
|
||||
│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │
|
||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/locale.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
||||
float strtof_l(const char *s, char **sp, locale_t l) {
|
||||
return strtof(s, sp);
|
||||
}
|
3
third_party/gdtoa/strtold.c
vendored
3
third_party/gdtoa/strtold.c
vendored
|
@ -29,6 +29,7 @@
|
|||
│ THIS SOFTWARE. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
||||
/**
|
||||
|
@ -39,3 +40,5 @@ long double strtold(const char *s, char **endptr) {
|
|||
strtorx(s, endptr, FPI_Round_near, &x);
|
||||
return x;
|
||||
}
|
||||
|
||||
__weak_reference(strtold, strtold_l);
|
||||
|
|
40
third_party/gdtoa/strtold_l.c
vendored
40
third_party/gdtoa/strtold_l.c
vendored
|
@ -1,40 +0,0 @@
|
|||
/*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-│
|
||||
│vi: set et ft=c ts=8 tw=8 fenc=utf-8 :vi│
|
||||
╚──────────────────────────────────────────────────────────────────────────────╝
|
||||
│ │
|
||||
│ The author of this software is David M. Gay. │
|
||||
│ Please send bug reports to David M. Gay <dmg@acm.org> │
|
||||
│ or Justine Tunney <jtunney@gmail.com> │
|
||||
│ │
|
||||
│ Copyright (C) 1998, 1999 by Lucent Technologies │
|
||||
│ All Rights Reserved │
|
||||
│ │
|
||||
│ Permission to use, copy, modify, and distribute this software and │
|
||||
│ its documentation for any purpose and without fee is hereby │
|
||||
│ granted, provided that the above copyright notice appear in all │
|
||||
│ copies and that both that the copyright notice and this │
|
||||
│ permission notice and warranty disclaimer appear in supporting │
|
||||
│ documentation, and that the name of Lucent or any of its entities │
|
||||
│ not be used in advertising or publicity pertaining to │
|
||||
│ distribution of the software without specific, written prior │
|
||||
│ permission. │
|
||||
│ │
|
||||
│ LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, │
|
||||
│ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. │
|
||||
│ IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY │
|
||||
│ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES │
|
||||
│ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER │
|
||||
│ IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, │
|
||||
│ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF │
|
||||
│ THIS SOFTWARE. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/locale.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
||||
/**
|
||||
* Converts string to long double.
|
||||
*/
|
||||
long double strtold_l(const char *s, char **endptr, locale_t l) {
|
||||
return strtold(s, endptr);
|
||||
}
|
2
third_party/gdtoa/wcstold.c
vendored
2
third_party/gdtoa/wcstold.c
vendored
|
@ -26,3 +26,5 @@ long double wcstold(const wchar_t *nptr, wchar_t **endptr) {
|
|||
assert(!"not implemented");
|
||||
abort();
|
||||
}
|
||||
|
||||
__weak_reference(strtold, strtold_l);
|
||||
|
|
25
third_party/gdtoa/wcstold_l.c
vendored
25
third_party/gdtoa/wcstold_l.c
vendored
|
@ -1,25 +0,0 @@
|
|||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
|
||||
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
|
||||
╞══════════════════════════════════════════════════════════════════════════════╡
|
||||
│ Copyright 2022 Justine Alexandra Roberts Tunney │
|
||||
│ │
|
||||
│ Permission to use, copy, modify, and/or distribute this software for │
|
||||
│ any purpose with or without fee is hereby granted, provided that the │
|
||||
│ above copyright notice and this permission notice appear in all copies. │
|
||||
│ │
|
||||
│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │
|
||||
│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │
|
||||
│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │
|
||||
│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │
|
||||
│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │
|
||||
│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │
|
||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/str/locale.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
||||
long double wcstold_l(const wchar_t *nptr, wchar_t **endptr, locale_t l) {
|
||||
return wcstold(nptr, endptr);
|
||||
}
|
2
third_party/hiredis/alloc.c
vendored
2
third_party/hiredis/alloc.c
vendored
|
@ -33,7 +33,7 @@
|
|||
#include "libc/mem/alg.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
2
third_party/hiredis/async.c
vendored
2
third_party/hiredis/async.c
vendored
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include "third_party/hiredis/alloc.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
2
third_party/hiredis/dict.c
vendored
2
third_party/hiredis/dict.c
vendored
|
@ -36,7 +36,7 @@
|
|||
|
||||
#include "third_party/hiredis/alloc.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
2
third_party/hiredis/hiredis.c
vendored
2
third_party/hiredis/hiredis.c
vendored
|
@ -35,7 +35,7 @@
|
|||
#include "libc/mem/alg.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
4
third_party/hiredis/net.c
vendored
4
third_party/hiredis/net.c
vendored
|
@ -66,7 +66,7 @@
|
|||
#include "libc/errno.h"
|
||||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
@ -80,7 +80,7 @@
|
|||
#include "libc/sysv/consts/xopen.h"
|
||||
#include "libc/thread/thread.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
2
third_party/hiredis/read.c
vendored
2
third_party/hiredis/read.c
vendored
|
@ -33,7 +33,7 @@
|
|||
#include "libc/mem/alg.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
2
third_party/hiredis/read.h
vendored
2
third_party/hiredis/read.h
vendored
|
@ -34,7 +34,7 @@
|
|||
#ifndef __HIREDIS_READ_H
|
||||
#define __HIREDIS_READ_H
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
6
third_party/hiredis/sds.c
vendored
6
third_party/hiredis/sds.c
vendored
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
@ -40,7 +40,7 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
@ -1145,7 +1145,7 @@ void sds_free(void *ptr) { s_free(ptr); }
|
|||
|
||||
#if defined(SDS_TEST_MAIN)
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/lua/luaconf.h
vendored
2
third_party/lua/luaconf.h
vendored
|
@ -2,10 +2,10 @@
|
|||
#define luaconf_h
|
||||
#include "libc/assert.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/str/unicode.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
||||
#define LUA_USE_POSIX
|
||||
#define LUA_USE_LINENOISE
|
||||
|
|
2
third_party/quickjs/atof.c
vendored
2
third_party/quickjs/atof.c
vendored
|
@ -23,9 +23,9 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "libc/assert.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "third_party/quickjs/internal.h"
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
|
|
2
third_party/quickjs/qjs.c
vendored
2
third_party/quickjs/qjs.c
vendored
|
@ -25,6 +25,7 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
@ -32,7 +33,6 @@
|
|||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/time/time.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "third_party/quickjs/cutils.h"
|
||||
#include "third_party/quickjs/quickjs-libc.h"
|
||||
#include "tool/args/args.h"
|
||||
|
|
2
third_party/quickjs/qjsc.c
vendored
2
third_party/quickjs/qjsc.c
vendored
|
@ -24,6 +24,7 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/mem/gc.h"
|
||||
|
@ -32,7 +33,6 @@
|
|||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/x/xasprintf.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/quickjs/cutils.h"
|
||||
#include "third_party/quickjs/quickjs-libc.h"
|
||||
|
|
2
third_party/regex/regex.mk
vendored
2
third_party/regex/regex.mk
vendored
|
@ -15,7 +15,7 @@ THIRD_PARTY_REGEX_A_OBJS = \
|
|||
$(THIRD_PARTY_REGEX_A_SRCS:%.c=o/$(MODE)/%.o)
|
||||
|
||||
THIRD_PARTY_REGEX_A_DIRECTDEPS = \
|
||||
LIBC_FMT \
|
||||
LIBC_STDIO \
|
||||
LIBC_INTRIN \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
|
|
2
third_party/sqlite3/geopoly.inc
vendored
2
third_party/sqlite3/geopoly.inc
vendored
|
@ -16,7 +16,7 @@
|
|||
** This file is #include-ed onto the end of "rtree.c" so that it has
|
||||
** access to all of the R-Tree internals.
|
||||
*/
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
/* clang-format off */
|
||||
|
||||
/* Enable -DGEOPOLY_ENABLE_DEBUG for debugging facilities */
|
||||
|
|
3
third_party/sqlite3/json.c
vendored
3
third_party/sqlite3/json.c
vendored
|
@ -22,8 +22,9 @@
|
|||
** how JSONB might improve on that.)
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_JSON
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "third_party/sqlite3/sqliteInt.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
// clang-format off
|
||||
|
||||
/*
|
||||
** Growing our own isspace() routine this way is twice as fast as
|
||||
|
|
4
third_party/zip/tailor.h
vendored
4
third_party/zip/tailor.h
vendored
|
@ -221,7 +221,7 @@
|
|||
|
||||
/* Define void, zvoid, and extent (size_t) */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
@ -235,7 +235,7 @@
|
|||
|
||||
#ifndef NO_STDLIB_H
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
2
third_party/zip/zip.c
vendored
2
third_party/zip/zip.c
vendored
|
@ -85,7 +85,7 @@
|
|||
#include "libc/sysv/consts/sicode.h"
|
||||
#include "libc/sysv/consts/ss.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
2
third_party/zip/zipcloak.c
vendored
2
third_party/zip/zipcloak.c
vendored
|
@ -37,7 +37,7 @@
|
|||
#include "libc/sysv/consts/ss.h"
|
||||
#ifndef NO_STDLIB_H
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
2
third_party/zip/zipfile.c
vendored
2
third_party/zip/zipfile.c
vendored
|
@ -23,7 +23,7 @@
|
|||
|
||||
/* for realloc 2/6/2005 EG */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
|
|
2
third_party/zlib/inflate.c
vendored
2
third_party/zlib/inflate.c
vendored
|
@ -328,7 +328,7 @@ struct inflate_state FAR *state;
|
|||
|
||||
#ifdef MAKEFIXED
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/dprintf.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue