|
@@ -224,8 +224,8 @@ typedef wchar_t uchar;
|
|
|
# define ustrlen wcslen
|
|
|
# define ustrdup _wcsdup
|
|
|
HL_API int uvszprintf( uchar *out, int out_size, const uchar *fmt, va_list arglist );
|
|
|
-# define _utod(s,end) wcstod(s,end)
|
|
|
-# define _utoi(s,end) wcstol(s,end,10)
|
|
|
+# define utod(s,end) wcstod(s,end)
|
|
|
+# define utoi(s,end) wcstol(s,end,10)
|
|
|
# define ucmp(a,b) wcscmp(a,b)
|
|
|
# define utostr(out,size,str) wcstombs(out,str,size)
|
|
|
#elif defined(HL_MAC)
|
|
@@ -250,9 +250,9 @@ typedef char16_t uchar;
|
|
|
#endif
|
|
|
|
|
|
C_FUNCTION_BEGIN
|
|
|
-HL_API double utod( const uchar *str, uchar **end );
|
|
|
-HL_API int utoi( const uchar *str, uchar **end );
|
|
|
#ifndef HL_NATIVE_UCHAR_FUN
|
|
|
+HL_API double utod( const uchar *str, const uchar **end );
|
|
|
+HL_API int utoi( const uchar *str, const uchar **end );
|
|
|
HL_API int ustrlen( const uchar *str );
|
|
|
HL_API uchar *ustrdup( const uchar *str );
|
|
|
HL_API int ucmp( const uchar *a, const uchar *b );
|
|
@@ -659,7 +659,7 @@ HL_API vdynamic *hl_dyn_call_safe( vclosure *c, vdynamic **args, int nargs, bool
|
|
|
so you are sure it's of the used typed. Otherwise use hl_dyn_call
|
|
|
*/
|
|
|
#define hl_call0(ret,cl) \
|
|
|
- (cl->hasValue ? ((ret(*)(vdynamic*))cl->fun)(cl->value) : ((ret(*)())cl->fun)())
|
|
|
+ (cl->hasValue ? ((ret(*)(vdynamic*))cl->fun)(cl->value) : ((ret(*)())cl->fun)())
|
|
|
#define hl_call1(ret,cl,t,v) \
|
|
|
(cl->hasValue ? ((ret(*)(vdynamic*,t))cl->fun)(cl->value,v) : ((ret(*)(t))cl->fun)(v))
|
|
|
#define hl_call2(ret,cl,t1,v1,t2,v2) \
|
|
@@ -923,7 +923,7 @@ typedef struct {
|
|
|
|
|
|
HL_API hl_track_info hl_track;
|
|
|
|
|
|
-#else
|
|
|
+#else
|
|
|
|
|
|
#define hl_is_tracking(_) false
|
|
|
#define hl_track_call(a,b)
|