no libc, start on socket x11
This commit is contained in:
+8
-3
@@ -3,13 +3,16 @@
|
||||
even memory mnagement.
|
||||
*/
|
||||
|
||||
#ifndef COM_STD_H
|
||||
#define COM_STD_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
extern void *com_std_realloc(void *ptr, size_t size);
|
||||
extern void com_std_free(void *ptr);
|
||||
/* Note: Freeing is done by passing 0 size to pointer. */
|
||||
extern void *com_std_alloc(void *ptr, size_t size);
|
||||
|
||||
/* Note: Functions listed below are only available for test builds. */
|
||||
/* Note: Functions listed below are only available for dev builds. */
|
||||
/* Trigonometry functions are for reference testing of our own fixed point
|
||||
* implementations. Do not use otherwise. */
|
||||
extern void com_std_assert(bool holds);
|
||||
@@ -18,3 +21,5 @@ extern double com_std_sqrt(double v);
|
||||
extern double com_std_fabs(double v);
|
||||
extern double com_std_sin(double v);
|
||||
extern double com_std_cos(double v);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user