-# libidn
+// libidn
lib "idn";
-# IDNA errors
+// IDNA errors
const int \IDNA_SUCCESS = 0;
const int \IDNA_STRINGPREP_ERROR = 1;
const int \IDNA_PUNYCODE_ERROR = 2;
const int \IDNA_ICONV_ERROR = 9;
const int \IDNA_MALLOC_ERROR = 201;
const int \IDNA_DLOPEN_ERROR = 202;
-# IDNA flags
+// IDNA flags
const int \IDNA_ALLOW_UNASSIGNED = 1;
const int \IDNA_USE_STD3_ASCII_RULES = 2;
let flags = intval($flags);
set $result = to_string(*buffer);
return to_int(idna_to_ascii_8z);
- free *buffer;
+ free free(*buffer);
}
default char *idna_strerror(int rc);
function idn\strerror(int $rc) : string {