httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1431930 - in /httpd/httpd/trunk/modules/lua: lua_dbd.c lua_dbd.h
Date Fri, 11 Jan 2013 08:13:29 GMT
Author: humbedooh
Date: Fri Jan 11 08:13:28 2013
New Revision: 1431930

URL: http://svn.apache.org/viewvc?rev=1431930&view=rev
Log:
Since functions are now pushed solely in lua_dbd.c, there's no need to declare them in lua_dbd.h
Hopefully, this solves the Windows compiler issues.

Modified:
    httpd/httpd/trunk/modules/lua/lua_dbd.c
    httpd/httpd/trunk/modules/lua/lua_dbd.h

Modified: httpd/httpd/trunk/modules/lua/lua_dbd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_dbd.c?rev=1431930&r1=1431929&r2=1431930&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_dbd.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_dbd.c Fri Jan 11 08:13:28 2013
@@ -56,7 +56,7 @@ static lua_db_result_set *lua_get_result
     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;
@@ -91,7 +91,7 @@ AP_LUA_DECLARE(int) lua_db_close(lua_Sta
      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;
@@ -122,7 +122,7 @@ AP_LUA_DECLARE(int) lua_db_gc(lua_State 
     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;
@@ -149,7 +149,7 @@ AP_LUA_DECLARE(int) lua_db_active(lua_St
     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;
@@ -190,7 +190,7 @@ AP_LUA_DECLARE(int) lua_db_query(lua_Sta
     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;
@@ -287,7 +287,7 @@ static int lua_db_get_row(lua_State *L) 
     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;
@@ -522,7 +522,7 @@ static int lua_db_prepared_query(lua_Sta
     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;
@@ -595,7 +595,7 @@ AP_LUA_DECLARE(int) lua_db_prepare(lua_S
     DBDPrepareSQL.
    =============================================================================
  */
-AP_LUA_DECLARE(int) lua_db_prepared(lua_State* L) 
+static int lua_db_prepared(lua_State* L) 
 {
     /*~~~~~~~~~~~~~~~~~~~~~~~~~~*/
     lua_db_handle   *db = 0;

Modified: httpd/httpd/trunk/modules/lua/lua_dbd.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_dbd.h?rev=1431930&r1=1431929&r2=1431930&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_dbd.h (original)
+++ httpd/httpd/trunk/modules/lua/lua_dbd.h Fri Jan 11 08:13:28 2013
@@ -50,16 +50,7 @@ typedef struct {
     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);
-
+ 
 
 #endif /* !_LUA_DBD_H_ */



Mime
View raw message