mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Add dontthrow
attribute to most libc functions
This will help C++ code that uses exceptions to be tinier. For example, this change shaves away 1000 lines of assembly code from LLVM's libcxx, which is 0.7% of all assembly instructions in the entire library.
This commit is contained in:
parent
cb19e172da
commit
eeb20775d2
103 changed files with 1455 additions and 1456 deletions
|
@ -8,20 +8,20 @@
|
|||
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
size_t __fbufsize(FILE *);
|
||||
size_t __fpending(FILE *);
|
||||
int __flbf(FILE *);
|
||||
int __freadable(FILE *);
|
||||
int __fwritable(FILE *);
|
||||
int __freading(FILE *);
|
||||
int __fwriting(FILE *);
|
||||
int __fsetlocking(FILE *, int);
|
||||
void _flushlbf(void);
|
||||
void __fpurge(FILE *);
|
||||
void __fseterr(FILE *);
|
||||
const char *__freadptr(FILE *, size_t *);
|
||||
size_t __freadahead(FILE *);
|
||||
void __freadptrinc(FILE *, size_t);
|
||||
size_t __fbufsize(FILE *) libcesque;
|
||||
size_t __fpending(FILE *) libcesque;
|
||||
int __flbf(FILE *) libcesque;
|
||||
int __freadable(FILE *) libcesque;
|
||||
int __fwritable(FILE *) libcesque;
|
||||
int __freading(FILE *) libcesque;
|
||||
int __fwriting(FILE *) libcesque;
|
||||
int __fsetlocking(FILE *, int) libcesque;
|
||||
void _flushlbf(void) libcesque;
|
||||
void __fpurge(FILE *) libcesque;
|
||||
void __fseterr(FILE *) libcesque;
|
||||
const char *__freadptr(FILE *, size_t *) libcesque;
|
||||
size_t __freadahead(FILE *) libcesque;
|
||||
void __freadptrinc(FILE *, size_t) libcesque;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_LIBC_STDIO_STDIO_EXT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue