Mercurial > prosody-hg
comparison util-src/struct.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 |
| parents | e1a71e83d430 |
| children |
comparison
equal
deleted
inserted
replaced
| 12975:d10957394a3c | 12976:a187600ec7d6 |
|---|---|
| 383 }; | 383 }; |
| 384 | 384 |
| 385 | 385 |
| 386 LUALIB_API int luaopen_util_struct (lua_State *L); | 386 LUALIB_API int luaopen_util_struct (lua_State *L); |
| 387 | 387 |
| 388 LUALIB_API int luaopen_util_struct (lua_State *L) { | 388 LUALIB_API int luaopen_prosody_util_struct (lua_State *L) { |
| 389 luaL_newlib(L, thislib); | 389 luaL_newlib(L, thislib); |
| 390 return 1; | 390 return 1; |
| 391 } | |
| 392 | |
| 393 LUALIB_API int luaopen_util_struct (lua_State *L) { | |
| 394 return luaopen_prosody_util_struct(L); | |
| 391 } | 395 } |
| 392 | 396 |
| 393 | 397 |
| 394 /****************************************************************************** | 398 /****************************************************************************** |
| 395 * Copyright (C) 2010-2018 Lua.org, PUC-Rio. All rights reserved. | 399 * Copyright (C) 2010-2018 Lua.org, PUC-Rio. All rights reserved. |
