Hopefully, this solves the Windows compiler issues.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1431930 13f79535-47bb-0310-9956-
ffa450edef68
db:close(): Closes an open database connection.
=============================================================================
*/
db:close(): Closes an open database connection.
=============================================================================
*/
-AP_LUA_DECLARE(int) lua_db_close(lua_State *L)
+static int lua_db_close(lua_State *L)
{
/*~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db;
{
/*~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db;
db:__gc(): Garbage collecting function.
=============================================================================
*/
db:__gc(): Garbage collecting function.
=============================================================================
*/
-AP_LUA_DECLARE(int) lua_db_gc(lua_State *L)
+static int lua_db_gc(lua_State *L)
{
/*~~~~~~~~~~~~~~~~*/
lua_db_handle *db;
{
/*~~~~~~~~~~~~~~~~*/
lua_db_handle *db;
db:active(): Returns true if the connection to the db is still active.
=============================================================================
*/
db:active(): Returns true if the connection to the db is still active.
=============================================================================
*/
-AP_LUA_DECLARE(int) lua_db_active(lua_State *L)
+static int lua_db_active(lua_State *L)
{
/*~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
{
/*~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
first parameter and the error message as the second.
=============================================================================
*/
first parameter and the error message as the second.
=============================================================================
*/
-AP_LUA_DECLARE(int) lua_db_query(lua_State *L)
+static int lua_db_query(lua_State *L)
{
/*~~~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
{
/*~~~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
db:escape(string): Escapes a string for safe use in the given database type.
=============================================================================
*/
db:escape(string): Escapes a string for safe use in the given database type.
=============================================================================
*/
-AP_LUA_DECLARE(int) lua_db_escape(lua_State *L)
+static int lua_db_escape(lua_State *L)
{
/*~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
{
/*~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
returns nil as the first parameter and the error message as the second.
=============================================================================
*/
returns nil as the first parameter and the error message as the second.
=============================================================================
*/
-AP_LUA_DECLARE(int) lua_db_select(lua_State *L)
+static int lua_db_select(lua_State *L)
{
/*~~~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
{
/*~~~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
Returns a table with a :query and :select function, same as the db funcs.
=============================================================================
*/
Returns a table with a :query and :select function, same as the db funcs.
=============================================================================
*/
-AP_LUA_DECLARE(int) lua_db_prepare(lua_State* L)
+static int lua_db_prepare(lua_State* L)
{
/*~~~~~~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
{
/*~~~~~~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
DBDPrepareSQL.
=============================================================================
*/
DBDPrepareSQL.
=============================================================================
*/
-AP_LUA_DECLARE(int) lua_db_prepared(lua_State* L)
+static int lua_db_prepared(lua_State* L)
{
/*~~~~~~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
{
/*~~~~~~~~~~~~~~~~~~~~~~~~~~*/
lua_db_handle *db = 0;
lua_db_handle *db;
} lua_db_prepared_statement;
lua_db_handle *db;
} lua_db_prepared_statement;
-
-AP_LUA_DECLARE(int) lua_db_close(lua_State *L);
-AP_LUA_DECLARE(int) lua_db_gc(lua_State *L);
-AP_LUA_DECLARE(int) lua_db_active(lua_State *L);
-AP_LUA_DECLARE(int) lua_db_query(lua_State *L);
-AP_LUA_DECLARE(int) lua_db_escape(lua_State *L);
-AP_LUA_DECLARE(int) lua_db_select(lua_State *L);
-AP_LUA_DECLARE(int) lua_db_prepare(lua_State* L);
-AP_LUA_DECLARE(int) lua_db_prepared(lua_State* L);
AP_LUA_DECLARE(int) lua_db_acquire(lua_State* L);
AP_LUA_DECLARE(int) lua_db_acquire(lua_State* L);
#endif /* !_LUA_DBD_H_ */
#endif /* !_LUA_DBD_H_ */