Software /
code /
prosody
Comparison
util-src/encodings.c @ 1855:63b5e7ec6840
util.encodings: Included idn-free.h, which explicitly declares the idn_free function.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 02 Oct 2009 16:45:54 +0500 |
parent | 1854:7e055cc6bc90 |
child | 1856:ceeffc081b23 |
comparison
equal
deleted
inserted
replaced
1854:7e055cc6bc90 | 1855:63b5e7ec6840 |
---|---|
166 }; | 166 }; |
167 | 167 |
168 /***************** IDNA *****************/ | 168 /***************** IDNA *****************/ |
169 | 169 |
170 #include <idna.h> | 170 #include <idna.h> |
171 #include <idn-free.h> | |
171 | 172 |
172 static int Lidna_to_ascii(lua_State *L) /** idna.to_ascii(s) */ | 173 static int Lidna_to_ascii(lua_State *L) /** idna.to_ascii(s) */ |
173 { | 174 { |
174 size_t len; | 175 size_t len; |
175 const char *s = luaL_checklstring(L, 1, &len); | 176 const char *s = luaL_checklstring(L, 1, &len); |