summaryrefslogtreecommitdiff
path: root/nuttx/lib
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-20 23:16:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-20 23:16:24 +0000
commit5e160e6e0cdfae48ea120909e7febc62b6b56eb2 (patch)
treea8ac308120edfb2eacd53d89b343c878f9dc1a3d /nuttx/lib
parent630b4bdd3d2ca967f0e1d4f438f7f1761461dd31 (diff)
downloadpx4-nuttx-5e160e6e0cdfae48ea120909e7febc62b6b56eb2.tar.gz
px4-nuttx-5e160e6e0cdfae48ea120909e7febc62b6b56eb2.tar.bz2
px4-nuttx-5e160e6e0cdfae48ea120909e7febc62b6b56eb2.zip
Working toward compiler independence: Removed inline funcs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@15 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r--nuttx/lib/lib_init.c5
-rw-r--r--nuttx/lib/lib_internal.h4
2 files changed, 1 insertions, 8 deletions
diff --git a/nuttx/lib/lib_init.c b/nuttx/lib/lib_init.c
index 216f7b780..a8195937f 100644
--- a/nuttx/lib/lib_init.c
+++ b/nuttx/lib/lib_init.c
@@ -71,10 +71,7 @@ static void _lib_semtake(struct streamlist *list)
}
}
-static inline void _lib_semgive(struct streamlist *list)
-{
- sem_post(&list->sl_sem);
-}
+#define _lib_semgive(list) sem_post(&list->sl_sem)
/************************************************************
* Public Functions
diff --git a/nuttx/lib/lib_internal.h b/nuttx/lib/lib_internal.h
index 41d40d428..736aec54f 100644
--- a/nuttx/lib/lib_internal.h
+++ b/nuttx/lib/lib_internal.h
@@ -99,10 +99,6 @@ struct lib_rawstream_s
************************************************************/
/************************************************************
- * Inline Functions
- ************************************************************/
-
-/************************************************************
* Pulblic Function Prototypes
************************************************************/