mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 12:03:41 +00:00
4a59210008
This change improves the way internal APIs are being hidden behind the `COSMO` define. The cosmo.h header will take care of defining that, so that a separate define statement isn't needed. This change also does a lot more to define which APIs are standard, and which belong to Cosmo.
38 lines
1,006 B
C
38 lines
1,006 B
C
#ifndef COSMOPOLITAN_LIBC_STDIO_APPEND_H_
|
|
#define COSMOPOLITAN_LIBC_STDIO_APPEND_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_ */
|