2 Extern implementation of Nit module fixed_ints_text
7 #include "core__fixed_ints_text._ffi.h"
9 #include <android/log.h>
10 #define PRINT_ERROR(...) (void)__android_log_print(ANDROID_LOG_WARN, "Nit", __VA_ARGS__)
12 #define PRINT_ERROR(...) fprintf(stderr, __VA_ARGS__)
14 #line 20 "../lib/core/text/fixed_ints_text.nit"
18 long core__fixed_ints_text___Int8_to_s_len___impl( int8_t self
)
20 #line 26 "../lib/core/text/fixed_ints_text.nit"
23 return snprintf(NULL
, 0, "%"PRIi8
, self
);
25 void core__fixed_ints_text___Int8_native_to_s___impl( int8_t self
, char* nstr
, long strlen
)
27 #line 31 "../lib/core/text/fixed_ints_text.nit"
30 snprintf(nstr
, strlen
, "%"PRIi8
, self
);
32 long core__fixed_ints_text___Int16_to_s_len___impl( int16_t self
)
34 #line 49 "../lib/core/text/fixed_ints_text.nit"
37 return snprintf(NULL
, 0, "%"PRIi16
, self
);
39 void core__fixed_ints_text___Int16_native_to_s___impl( int16_t self
, char* nstr
, long strlen
)
41 #line 54 "../lib/core/text/fixed_ints_text.nit"
44 snprintf(nstr
, strlen
, "%"PRIi16
, self
);
46 long core__fixed_ints_text___UInt16_to_s_len___impl( uint16_t self
)
48 #line 73 "../lib/core/text/fixed_ints_text.nit"
51 return snprintf(NULL
, 0, "%"PRIu16
, self
);
53 void core__fixed_ints_text___UInt16_native_to_s___impl( uint16_t self
, char* nstr
, long strlen
)
55 #line 78 "../lib/core/text/fixed_ints_text.nit"
58 snprintf(nstr
, strlen
, "%"PRIu16
, self
);
60 long core__fixed_ints_text___Int32_to_s_len___impl( int32_t self
)
62 #line 97 "../lib/core/text/fixed_ints_text.nit"
65 return snprintf(NULL
, 0, "%"PRIi32
, self
);
67 void core__fixed_ints_text___Int32_native_to_s___impl( int32_t self
, char* nstr
, long strlen
)
69 #line 102 "../lib/core/text/fixed_ints_text.nit"
72 snprintf(nstr
, strlen
, "%"PRIi32
, self
);
74 long core__fixed_ints_text___UInt32_to_s_len___impl( uint32_t self
)
76 #line 121 "../lib/core/text/fixed_ints_text.nit"
79 return snprintf(NULL
, 0, "%"PRIu32
, self
);
81 void core__fixed_ints_text___UInt32_native_to_s___impl( uint32_t self
, char* nstr
, long strlen
)
83 #line 126 "../lib/core/text/fixed_ints_text.nit"
86 snprintf(nstr
, strlen
, "%"PRIu32
, self
);