trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject trafficserver git commit: Fix some Lua build warnings, inline here seems useless anyways
Date Mon, 15 Jun 2015 14:38:24 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 161fa0d18 -> eb75a9d6d


Fix some Lua build warnings, inline here seems useless anyways


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/eb75a9d6
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/eb75a9d6
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/eb75a9d6

Branch: refs/heads/master
Commit: eb75a9d6d6733171111a3e299c72138040a76595
Parents: 161fa0d
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Mon Jun 15 08:38:18 2015 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Mon Jun 15 08:38:18 2015 -0600

----------------------------------------------------------------------
 plugins/experimental/ts_lua/ts_lua_coroutine.c | 55 ++++++++++-----------
 1 file changed, 25 insertions(+), 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/eb75a9d6/plugins/experimental/ts_lua/ts_lua_coroutine.c
----------------------------------------------------------------------
diff --git a/plugins/experimental/ts_lua/ts_lua_coroutine.c b/plugins/experimental/ts_lua/ts_lua_coroutine.c
index dbe4187..5e6bae9 100644
--- a/plugins/experimental/ts_lua/ts_lua_coroutine.c
+++ b/plugins/experimental/ts_lua/ts_lua_coroutine.c
@@ -18,40 +18,14 @@
 
 #include "ts_lua_coroutine.h"
 
-static inline void ts_lua_async_push_item(ts_lua_async_item **head, ts_lua_async_item *node);
-static inline void ts_lua_async_destroy_item(ts_lua_async_item *node);
-static inline void ts_lua_async_destroy_chain(ts_lua_async_item **head);
-
-
-inline ts_lua_async_item *
-ts_lua_async_create_item(TSCont cont, async_clean func, void *d, ts_lua_cont_info *ci)
-{
-  ts_lua_async_item *ai;
-
-  ai = (ts_lua_async_item *)TSmalloc(sizeof(ts_lua_async_item));
-  if (ai == NULL)
-    return NULL;
-
-  ai->cinfo = ci;
-
-  ai->cleanup = func;
-  ai->data = d;
-  ai->contp = cont;
-  ai->deleted = 0;
-
-  ts_lua_async_push_item(&ci->async_chain, ai);
-
-  return ai;
-}
-
-static inline void
+static void
 ts_lua_async_push_item(ts_lua_async_item **head, ts_lua_async_item *node)
 {
   node->next = *head;
   *head = node;
 }
 
-inline void
+static void
 ts_lua_async_destroy_item(ts_lua_async_item *node)
 {
   if (node->cleanup && !node->deleted) {
@@ -61,7 +35,7 @@ ts_lua_async_destroy_item(ts_lua_async_item *node)
   TSfree(node);
 }
 
-inline void
+static void
 ts_lua_async_destroy_chain(ts_lua_async_item **head)
 {
   ts_lua_async_item *node, *next;
@@ -75,7 +49,28 @@ ts_lua_async_destroy_chain(ts_lua_async_item **head)
   }
 }
 
-inline void
+ts_lua_async_item *
+ts_lua_async_create_item(TSCont cont, async_clean func, void *d, ts_lua_cont_info *ci)
+{
+  ts_lua_async_item *ai;
+
+  ai = (ts_lua_async_item *)TSmalloc(sizeof(ts_lua_async_item));
+  if (ai == NULL)
+    return NULL;
+
+  ai->cinfo = ci;
+
+  ai->cleanup = func;
+  ai->data = d;
+  ai->contp = cont;
+  ai->deleted = 0;
+
+  ts_lua_async_push_item(&ci->async_chain, ai);
+
+  return ai;
+}
+
+void
 ts_lua_release_cont_info(ts_lua_cont_info *ci)
 {
   ts_lua_main_ctx *mctx;


Mime
View raw message