[mupen64plus] 204/262: Move inline list_empty to header to make it inlineable

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:59:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch master
in repository mupen64plus.

commit 6608c5c2cbc3cd9dcc8e1554f3bfa1d09105fa80
Author: Sven Eckelmann <sven at narfation.org>
Date:   Sun Dec 19 19:37:53 2010 +0100

    Move inline list_empty to header to make it inlineable
---
 debian/changelog                   |  3 +++
 debian/patches/inline_header.patch | 46 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series              |  1 +
 3 files changed, 50 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8b7bab9..3b938a2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
 mupen64plus (1.5+dfsg1-15) UNRELEASED; urgency=low
 
   * Updated my maintainer e-mail address
+  * debian/patches:
+    - Add inline_header.patch, Move inline list_empty to header to make it
+      inlineable
 
  -- Sven Eckelmann <sven at narfation.org>  Sat, 11 Dec 2010 11:49:04 +0100
 
diff --git a/debian/patches/inline_header.patch b/debian/patches/inline_header.patch
new file mode 100644
index 0000000..e0129b2
--- /dev/null
+++ b/debian/patches/inline_header.patch
@@ -0,0 +1,46 @@
+Description: Move inline list_empty to header to make it inlineable
+Bug: http://groups.google.com/group/mupen64plus/browse_thread/thread/d098b55757ca098f
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/main/util.c b/main/util.c
+index 229f4e8a2eed1e663bbfd8b9e782b4066c854d7e..d3f2cfd062088a173fba8d87565a984d8cd47a10 100644
+--- a/main/util.c
++++ b/main/util.c
+@@ -492,14 +492,6 @@ void *list_last_data(list_t list)
+     return NULL;
+ }
+ 
+-/** list_empty
+- *    Returns 1 if list is empty, else 0.
+- */
+-int inline list_empty(list_t list)
+-{
+-    return list == NULL;
+-}
+-
+ /** list_length
+  *    Returns the number of elements in list
+  */
+diff --git a/main/util.h b/main/util.h
+index 64ecabe7603ca26aa33b386974069440d3b87135..eee260b37b9a0af48fb855fa32c9f6f707b9259a 100644
+--- a/main/util.h
++++ b/main/util.h
+@@ -61,7 +61,16 @@ list_node_t *list_first_node(list_t list);
+ void *list_first_data(list_t list);
+ list_node_t *list_last_node(list_t list);
+ void *list_last_data(list_t list);
+-int inline list_empty(list_t list);
++
++
++/** list_empty
++ *    Returns 1 if list is empty, else 0.
++ */
++static inline int list_empty(list_t list)
++{
++    return list == NULL;
++}
++
+ int list_length(list_t list);
+ list_node_t *list_find_node(list_t list, void *data);
+ char* dirfrompath(const char* string);
diff --git a/debian/patches/series b/debian/patches/series
index c990b55..a39beb1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -47,3 +47,4 @@ optional_signinfo.patch
 glide64_hurd.patch
 correct_security_printf.patch
 pie_support.patch
+inline_header.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus.git



More information about the Pkg-games-commits mailing list