correct inlining of hook by id get
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 14 Aug 2004 21:06:03 +0000 (21:06 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 14 Aug 2004 21:06:03 +0000 (21:06 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@758 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/lttv/hook.c
ltt/branches/poly/lttv/lttv/hook.h

index 45870c323a4d62b1e4f614221dee2f1ec473be13..9f08b98b46f1ed4e0b6d694f927e89f0da127f1a 100644 (file)
@@ -416,17 +416,6 @@ unsigned lttv_hooks_by_id_max_id(LttvHooksById *h)
   return h->len;
 }
 
-
-inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id)
-{
-  LttvHooks *ret;
-  if(id < h->len) ret = h->pdata[id];
-  else ret = NULL;
-
-  return ret;
-}
-
-
 void lttv_hooks_by_id_remove(LttvHooksById *h, unsigned id)
 {
   if(id < h->len && h->pdata[id] != NULL) {
index 193714c6d987407a726c707005f6d0a3c6b7a041..502ac5c8732b4b337fd9f4b6db3e2492fd1e62b7 100644 (file)
@@ -144,7 +144,14 @@ unsigned lttv_hooks_by_id_max_id(LttvHooksById *h);
 
 /* Get the list of hooks for an id, NULL if none exists */
 
-LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id);
+inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id)
+{
+  LttvHooks *ret;
+  if(id < h->len) ret = h->pdata[id];
+  else ret = NULL;
+
+  return ret;
+}
 
 
 /* Remove the list of hooks associated with an id */
This page took 0.025156 seconds and 4 git commands to generate.