2 Extern implementation of Nit module fixed_ints
7 #include "core__fixed_ints._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 38 "../lib/core/fixed_ints.nit"
18 long fixed_ints___Int8_to_s_len___impl( int8_t self
)
20 #line 224 "../lib/core/fixed_ints.nit"
23 return snprintf(NULL
, 0, "%"PRIi8
, self
);
25 void fixed_ints___Int8_native_to_s___impl( int8_t self
, char* nstr
, long strlen
)
27 #line 229 "../lib/core/fixed_ints.nit"
30 snprintf(nstr
, strlen
, "%"PRIi8
, self
);
32 long fixed_ints___Int16_to_s_len___impl( int16_t self
)
34 #line 370 "../lib/core/fixed_ints.nit"
37 return snprintf(NULL
, 0, "%"PRIi16
, self
);
39 void fixed_ints___Int16_native_to_s___impl( int16_t self
, char* nstr
, long strlen
)
41 #line 375 "../lib/core/fixed_ints.nit"
44 snprintf(nstr
, strlen
, "%"PRIi16
, self
);
46 long fixed_ints___UInt16_to_s_len___impl( uint16_t self
)
48 #line 516 "../lib/core/fixed_ints.nit"
51 return snprintf(NULL
, 0, "%"PRIu16
, self
);
53 void fixed_ints___UInt16_native_to_s___impl( uint16_t self
, char* nstr
, long strlen
)
55 #line 521 "../lib/core/fixed_ints.nit"
58 snprintf(nstr
, strlen
, "%"PRIu16
, self
);
60 long fixed_ints___Int32_to_s_len___impl( int32_t self
)
62 #line 663 "../lib/core/fixed_ints.nit"
65 return snprintf(NULL
, 0, "%"PRIi32
, self
);
67 void fixed_ints___Int32_native_to_s___impl( int32_t self
, char* nstr
, long strlen
)
69 #line 668 "../lib/core/fixed_ints.nit"
72 snprintf(nstr
, strlen
, "%"PRIi32
, self
);
74 long fixed_ints___UInt32_to_s_len___impl( uint32_t self
)
76 #line 809 "../lib/core/fixed_ints.nit"
79 return snprintf(NULL
, 0, "%"PRIu32
, self
);
81 void fixed_ints___UInt32_native_to_s___impl( uint32_t self
, char* nstr
, long strlen
)
83 #line 814 "../lib/core/fixed_ints.nit"
86 snprintf(nstr
, strlen
, "%"PRIu32
, self
);