summaryrefslogtreecommitdiff
path: root/nuttx/lib/dq_addbefore.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-20 18:22:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-20 18:22:47 +0000
commit0ad6e847ed22411dc9092e99a01e4199f66e06dc (patch)
treefe075bb08faf21234081200118f31e3ac96c3a66 /nuttx/lib/dq_addbefore.c
parent2023adff45d28a5f4f369320c18865783baab5e6 (diff)
downloadpx4-nuttx-0ad6e847ed22411dc9092e99a01e4199f66e06dc.tar.gz
px4-nuttx-0ad6e847ed22411dc9092e99a01e4199f66e06dc.tar.bz2
px4-nuttx-0ad6e847ed22411dc9092e99a01e4199f66e06dc.zip
Add qsort()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1916 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/dq_addbefore.c')
-rw-r--r--nuttx/lib/dq_addbefore.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/nuttx/lib/dq_addbefore.c b/nuttx/lib/dq_addbefore.c
index 99df05574..943858ca2 100644
--- a/nuttx/lib/dq_addbefore.c
+++ b/nuttx/lib/dq_addbefore.c
@@ -1,7 +1,7 @@
-/************************************************************
- * dq_addbefore.c
+/****************************************************************************
+ * lib/dq_addbefore.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -31,29 +31,25 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
- * Compilation Switches
- ************************************************************/
-
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
#include <queue.h>
-/************************************************************
+/****************************************************************************
* Public Functions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Name: dq_addbefore
*
* Description:
* dq_addbefore adds 'node' before 'next' in 'queue'
*
- ************************************************************/
+ ****************************************************************************/
void dq_addbefore(FAR dq_entry_t *next, FAR dq_entry_t *node,
dq_queue_t *queue)