mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
b8a6a989c0
This change greatly reduces the number of modules that need to be compiled. The only issue right now is that sometimes when viewing symbol table entries, the aliased symbol is chosen.
39 lines
1 KiB
C
39 lines
1 KiB
C
#ifndef COSMOPOLITAN_LIBC_STDIO_APPEND_H_
|
|
#define COSMOPOLITAN_LIBC_STDIO_APPEND_H_
|
|
#include "libc/fmt/pflink.h"
|
|
#ifdef COSMO
|
|
|
|
#define APPEND_COOKIE 21578
|
|
|
|
#define appendz __appendz
|
|
#define appendr __appendr
|
|
#define appendd __appendd
|
|
#define appendw __appendw
|
|
#define appends __appends
|
|
#define appendf __appendf
|
|
#define vappendf __vappendf
|
|
#define kappendf __kappendf
|
|
#define kvappendf __kvappendf
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
struct appendz {
|
|
size_t i;
|
|
size_t n;
|
|
};
|
|
|
|
struct appendz appendz(char *);
|
|
ssize_t appendr(char **, size_t);
|
|
ssize_t appendd(char **, const void *, size_t);
|
|
ssize_t appendw(char **, uint64_t);
|
|
ssize_t appends(char **, const char *);
|
|
ssize_t appendf(char **, const char *, ...);
|
|
ssize_t vappendf(char **, const char *, va_list);
|
|
ssize_t kappendf(char **, const char *, ...);
|
|
ssize_t kvappendf(char **, const char *, va_list);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMO */
|
|
#endif /* COSMOPOLITAN_LIBC_STDIO_APPEND_H_ */
|