Comparison

util-src/encodings.c @ 12976:a187600ec7d6

util: Add compat for prosody module name change to C sources
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 18:03:07 +0100
parent 12575:1f6f05a98fcd
comparison
equal deleted inserted replaced
12975:d10957394a3c 12976:a187600ec7d6
610 { NULL, NULL } 610 { NULL, NULL }
611 }; 611 };
612 612
613 /***************** end *****************/ 613 /***************** end *****************/
614 614
615 LUALIB_API int luaopen_util_encodings(lua_State *L) { 615 LUALIB_API int luaopen_prosody_util_encodings(lua_State *L) {
616 luaL_checkversion(L); 616 luaL_checkversion(L);
617 #ifdef USE_STRINGPREP_ICU 617 #ifdef USE_STRINGPREP_ICU
618 init_icu(); 618 init_icu();
619 #endif 619 #endif
620 lua_newtable(L); 620 lua_newtable(L);
644 644
645 lua_pushliteral(L, "-3.14"); 645 lua_pushliteral(L, "-3.14");
646 lua_setfield(L, -2, "version"); 646 lua_setfield(L, -2, "version");
647 return 1; 647 return 1;
648 } 648 }
649 LUALIB_API int luaopen_util_encodings(lua_State *L) {
650 return luaopen_prosody_util_encodings(L);
651 }