2022-01-22 05:04:48 +05:00
|
|
|
#include <stdbool.h>
|
2022-01-21 04:06:56 +05:00
|
|
|
#include <stddef.h>
|
2022-01-18 22:24:50 +05:00
|
|
|
#include <stdint.h>
|
2022-01-22 05:04:48 +05:00
|
|
|
#include <stdlib.h>
|
2022-01-18 22:24:50 +05:00
|
|
|
|
|
|
|
#include <kernaux.h>
|
2022-01-18 18:03:19 +05:00
|
|
|
#include <ruby.h>
|
|
|
|
|
2022-01-23 02:10:47 +05:00
|
|
|
void init_assert();
|
2022-01-23 02:17:39 +05:00
|
|
|
void init_ntoa();
|
2022-01-22 05:14:23 +05:00
|
|
|
#ifdef HAVE_KERNAUX_CMDLINE
|
|
|
|
void init_cmdline();
|
|
|
|
#endif // HAVE_KERNAUX_CMDLINE
|
2022-06-07 21:37:34 +03:00
|
|
|
#ifdef HAVE_KERNAUX_FILE_CREATE
|
|
|
|
void init_file();
|
|
|
|
#endif // HAVE_KERNAUX_FILE_CREATE
|
2022-06-07 21:30:52 +03:00
|
|
|
#ifdef HAVE_KERNAUX_SNPRINTF
|
|
|
|
void init_printf();
|
|
|
|
#endif // HAVE_KERNAUX_SNPRINTF
|
2022-01-22 05:14:23 +05:00
|
|
|
|
2022-01-18 21:47:09 +05:00
|
|
|
void Init_default()
|
2022-01-18 18:03:19 +05:00
|
|
|
{
|
2022-01-23 02:10:47 +05:00
|
|
|
init_assert();
|
2022-01-23 02:17:39 +05:00
|
|
|
init_ntoa();
|
2022-01-22 05:14:23 +05:00
|
|
|
#ifdef HAVE_KERNAUX_CMDLINE
|
|
|
|
init_cmdline();
|
|
|
|
#endif // HAVE_KERNAUX_CMDLINE
|
2022-06-07 21:37:34 +03:00
|
|
|
#ifdef HAVE_KERNAUX_FILE_CREATE
|
|
|
|
init_file();
|
|
|
|
#endif // HAVE_KERNAUX_FILE_CREATE
|
2022-06-07 21:30:52 +03:00
|
|
|
#ifdef HAVE_KERNAUX_SNPRINTF
|
|
|
|
init_printf();
|
|
|
|
#endif // HAVE_KERNAUX_SNPRINTF
|
2022-01-18 18:03:19 +05:00
|
|
|
}
|