mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +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
|
@ -9,13 +9,13 @@ extern char *tzname[2];
|
|||
extern long timezone;
|
||||
extern int daylight;
|
||||
|
||||
char *ctime(const int64_t *);
|
||||
char *ctime_r(const int64_t *, char[hasatleast 26]);
|
||||
double difftime(int64_t, int64_t) pureconst;
|
||||
int64_t posix2time(int64_t) pureconst;
|
||||
int64_t time2posix(int64_t) pureconst;
|
||||
int stime(const int64_t *);
|
||||
void tzset(void);
|
||||
libcesque char *ctime(const int64_t *);
|
||||
libcesque char *ctime_r(const int64_t *, char[hasatleast 26]);
|
||||
libcesque double difftime(int64_t, int64_t) pureconst;
|
||||
libcesque int64_t posix2time(int64_t) pureconst;
|
||||
libcesque int64_t time2posix(int64_t) pureconst;
|
||||
libcesque int stime(const int64_t *);
|
||||
libcesque void tzset(void);
|
||||
|
||||
#ifdef _COSMO_SOURCE
|
||||
extern const char kWeekdayNameShort[7][4];
|
||||
|
@ -23,7 +23,6 @@ extern const char kWeekdayName[7][10];
|
|||
extern const char kMonthNameShort[12][4];
|
||||
extern const char kMonthName[12][10];
|
||||
extern const unsigned short kMonthYearDay[2][12];
|
||||
void RefreshTime(void);
|
||||
#endif /* _COSMO_SOURCE */
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue