Commit Graph

19 Commits

Author SHA1 Message Date
Tibor Nagy d1a424c002 tests: Replace returns with exits in the main functions
This will allow us to redefine the exit function.

For example:
```
#define exit(code) { \
    fprintf(stderr, "%s:%d: exit(%s) in function ‘%s’\n",
        __FILE__, __LINE__, #code, __func__); \
    _exit(code); \
}
```
2019-02-21 12:15:06 +01:00
Tibor Nagy 4381bb2a22 tests: Remove redundant return statements
When the execution reaches the end of the main functions, they implicitly return a successful status.
2019-02-20 21:09:03 +01:00
Tibor Nagy c19cc8b731 tests: Portability fixes, replaced 0/1/-1 return codes with macros 2019-02-20 20:20:07 +01:00
Tibor Nagy ff874c87d7 tests: Fix function signatures 2019-02-20 19:27:18 +01:00
Tibor Nagy 7ee59d2fdb tests: set C11, enable pedantic warnings, fix GCC and Clang warnings 2019-02-20 15:04:47 +01:00
Jeremy Soller a8f3608f3c Fix stdlib div functions, add _Exit 2018-12-14 13:41:22 -07:00
Jeremy Soller 950b4526c7 - Disable output of empty header files
- Remove incorrect header styles
- Use export.replace where header style was previously needed
- Check compilation of tests using system gcc
2018-11-26 21:35:02 -07:00
Jeremy Soller 3c2121d4e0 Do not require prefix for hex 2018-10-16 18:03:21 -06:00
jD91mZM2 418a960f3b Implement realpath 2018-10-07 10:32:51 +02:00
jD91mZM2 07563de231 Implement setenv/unsetenv 2018-08-12 07:43:23 +02:00
jD91mZM2 b10fa984f3 Implement strtod 2018-08-09 16:35:49 +02:00
jD91mZM2 67d5976622 Clean up tests 2018-07-22 11:24:50 +02:00
Paul Sajna 776491bae9 implement mktemp 2018-06-27 20:22:12 +00:00
Alex Lyon 7647db27c0 stdlib: implement strtoul() and strtol() using a macro 2018-05-11 01:48:27 -07:00
Paul Sajna a24f537a38 test 2018-03-20 19:44:49 -07:00
Justin Raymond d3583e11d2 fix c99 mode 2018-03-18 17:58:29 -04:00
Justin Raymond a0c76f7ce5 bsearch 2018-03-18 17:11:43 -04:00
Sebastian Würl d4d808fcc8 Add implementation for a64l 2018-03-11 11:55:22 +01:00
Alex Lyon f5b1f872a0 stdlib: implement preliminary version of strtol() 2018-03-09 03:07:16 -08:00