[Xenomai-git] Philippe Gerum : boilerplate/pvlist: rename to pvlistobj (for consistency)

2015-06-29 Thread git repository hosting
Module: xenomai-3
Branch: master
Commit: c2ef0b97c6ddf2ce80d64534f1a48c99fdbc08cd
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c2ef0b97c6ddf2ce80d64534f1a48c99fdbc08cd

Author: Philippe Gerum 
Date:   Tue Jun 16 14:48:42 2015 +0200

boilerplate/pvlist: rename to pvlistobj (for consistency)

---

 include/boilerplate/hash.h |2 +-
 include/boilerplate/private-list.h |   18 +-
 include/smokey/smokey.h|2 +-
 include/vxworks/lstLib.h   |2 +-
 lib/copperplate/registry.c |4 ++--
 lib/psos/task.h|2 +-
 lib/vxworks/taskHookLib.c  |6 +++---
 lib/vxworks/taskHookLib.h  |6 +++---
 lib/vxworks/taskLib.h  |2 +-
 9 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/include/boilerplate/hash.h b/include/boilerplate/hash.h
index 733be9b..ef62e13 100644
--- a/include/boilerplate/hash.h
+++ b/include/boilerplate/hash.h
@@ -68,7 +68,7 @@ struct pvhashobj {
 };
 
 struct pvhash_bucket {
-   struct pvlist obj_list;
+   struct pvlistobj obj_list;
 };
 
 struct pvhash_table {
diff --git a/include/boilerplate/private-list.h 
b/include/boilerplate/private-list.h
index 4e70ac7..f5aafac 100644
--- a/include/boilerplate/private-list.h
+++ b/include/boilerplate/private-list.h
@@ -28,7 +28,7 @@ struct pvholder {
struct pvholder *prev;
 };
 
-struct pvlist {
+struct pvlistobj {
struct pvholder head;
 };
 
@@ -36,7 +36,7 @@ struct pvlist {
{ .head = { .next = &((__name).head), .prev = &((__name).head) } }
 
 #define DEFINE_PRIVATE_LIST(__name) \
-   struct pvlist __name = PRIVATE_LIST_INITIALIZER(__name)
+   struct pvlistobj __name = PRIVATE_LIST_INITIALIZER(__name)
 
 static inline void initpvh(struct pvholder *holder)
 {
@@ -59,7 +59,7 @@ static inline void dtpvh(struct pvholder *holder)
holder->next->prev = holder->prev;
 }
 
-static inline void pvlist_init(struct pvlist *list)
+static inline void pvlist_init(struct pvlistobj *list)
 {
initpvh(&list->head);
 }
@@ -79,12 +79,12 @@ static inline int pvholder_linked(const struct pvholder 
*holder)
 holder->prev == holder);
 }
 
-static inline void pvlist_prepend(struct pvholder *holder, struct pvlist *list)
+static inline void pvlist_prepend(struct pvholder *holder, struct pvlistobj 
*list)
 {
atpvh(&list->head, holder);
 }
 
-static inline void pvlist_append(struct pvholder *holder, struct pvlist *list)
+static inline void pvlist_append(struct pvholder *holder, struct pvlistobj 
*list)
 {
atpvh(list->head.prev, holder);
 }
@@ -94,7 +94,7 @@ static inline void pvlist_insert(struct pvholder *next, 
struct pvholder *prev)
atpvh(prev, next);
 }
 
-static inline void pvlist_join(struct pvlist *lsrc, struct pvlist *ldst)
+static inline void pvlist_join(struct pvlistobj *lsrc, struct pvlistobj *ldst)
 {
struct pvholder *headsrc = lsrc->head.next;
struct pvholder *tailsrc = lsrc->head.prev;
@@ -119,12 +119,12 @@ static inline void pvlist_remove_init(struct pvholder 
*holder)
initpvh(holder);
 }
 
-static inline int pvlist_empty(const struct pvlist *list)
+static inline int pvlist_empty(const struct pvlistobj *list)
 {
return list->head.next == &list->head;
 }
 
-static inline struct pvholder *pvlist_pop(struct pvlist *list)
+static inline struct pvholder *pvlist_pop(struct pvlistobj *list)
 {
struct pvholder *holder = list->head.next;
pvlist_remove(holder);
@@ -132,7 +132,7 @@ static inline struct pvholder *pvlist_pop(struct pvlist 
*list)
 }
 
 static inline int pvlist_heading_p(const struct pvholder *holder,
-  const struct pvlist *list)
+  const struct pvlistobj *list)
 {
return list->head.next == holder;
 }
diff --git a/include/smokey/smokey.h b/include/smokey/smokey.h
index 41f5e6e..e759806 100644
--- a/include/smokey/smokey.h
+++ b/include/smokey/smokey.h
@@ -121,7 +121,7 @@ void smokey_note(const char *fmt, ...);
 }
 #endif
 
-extern struct pvlist smokey_test_list;
+extern struct pvlistobj smokey_test_list;
 
 extern int smokey_keep_going;
 
diff --git a/include/vxworks/lstLib.h b/include/vxworks/lstLib.h
index acb94f6..9644ca5 100644
--- a/include/vxworks/lstLib.h
+++ b/include/vxworks/lstLib.h
@@ -28,7 +28,7 @@
 #include 
 
 typedef struct LIST {
-   struct pvlist list;
+   struct pvlistobj list;
int count;
 } LIST;
 
diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c
index 4648773..adf0d73 100644
--- a/lib/copperplate/registry.c
+++ b/lib/copperplate/registry.c
@@ -79,8 +79,8 @@ struct regfs_dir {
char *path;
const char *basename;
struct pvhashobj hobj;
-   struct pvlist file_list;
-   struct pvlist dir_list;
+   struct pvlistobj file_list;
+   struct pvlistobj dir_list;
int ndirs, nfiles;
struct timespec ctime;
struct pvh

[Xenomai-git] Philippe Gerum : boilerplate/pvlist: rename to pvlistobj (for consistency)

2015-06-16 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: c2ef0b97c6ddf2ce80d64534f1a48c99fdbc08cd
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c2ef0b97c6ddf2ce80d64534f1a48c99fdbc08cd

Author: Philippe Gerum 
Date:   Tue Jun 16 14:48:42 2015 +0200

boilerplate/pvlist: rename to pvlistobj (for consistency)

---

 include/boilerplate/hash.h |2 +-
 include/boilerplate/private-list.h |   18 +-
 include/smokey/smokey.h|2 +-
 include/vxworks/lstLib.h   |2 +-
 lib/copperplate/registry.c |4 ++--
 lib/psos/task.h|2 +-
 lib/vxworks/taskHookLib.c  |6 +++---
 lib/vxworks/taskHookLib.h  |6 +++---
 lib/vxworks/taskLib.h  |2 +-
 9 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/include/boilerplate/hash.h b/include/boilerplate/hash.h
index 733be9b..ef62e13 100644
--- a/include/boilerplate/hash.h
+++ b/include/boilerplate/hash.h
@@ -68,7 +68,7 @@ struct pvhashobj {
 };
 
 struct pvhash_bucket {
-   struct pvlist obj_list;
+   struct pvlistobj obj_list;
 };
 
 struct pvhash_table {
diff --git a/include/boilerplate/private-list.h 
b/include/boilerplate/private-list.h
index 4e70ac7..f5aafac 100644
--- a/include/boilerplate/private-list.h
+++ b/include/boilerplate/private-list.h
@@ -28,7 +28,7 @@ struct pvholder {
struct pvholder *prev;
 };
 
-struct pvlist {
+struct pvlistobj {
struct pvholder head;
 };
 
@@ -36,7 +36,7 @@ struct pvlist {
{ .head = { .next = &((__name).head), .prev = &((__name).head) } }
 
 #define DEFINE_PRIVATE_LIST(__name) \
-   struct pvlist __name = PRIVATE_LIST_INITIALIZER(__name)
+   struct pvlistobj __name = PRIVATE_LIST_INITIALIZER(__name)
 
 static inline void initpvh(struct pvholder *holder)
 {
@@ -59,7 +59,7 @@ static inline void dtpvh(struct pvholder *holder)
holder->next->prev = holder->prev;
 }
 
-static inline void pvlist_init(struct pvlist *list)
+static inline void pvlist_init(struct pvlistobj *list)
 {
initpvh(&list->head);
 }
@@ -79,12 +79,12 @@ static inline int pvholder_linked(const struct pvholder 
*holder)
 holder->prev == holder);
 }
 
-static inline void pvlist_prepend(struct pvholder *holder, struct pvlist *list)
+static inline void pvlist_prepend(struct pvholder *holder, struct pvlistobj 
*list)
 {
atpvh(&list->head, holder);
 }
 
-static inline void pvlist_append(struct pvholder *holder, struct pvlist *list)
+static inline void pvlist_append(struct pvholder *holder, struct pvlistobj 
*list)
 {
atpvh(list->head.prev, holder);
 }
@@ -94,7 +94,7 @@ static inline void pvlist_insert(struct pvholder *next, 
struct pvholder *prev)
atpvh(prev, next);
 }
 
-static inline void pvlist_join(struct pvlist *lsrc, struct pvlist *ldst)
+static inline void pvlist_join(struct pvlistobj *lsrc, struct pvlistobj *ldst)
 {
struct pvholder *headsrc = lsrc->head.next;
struct pvholder *tailsrc = lsrc->head.prev;
@@ -119,12 +119,12 @@ static inline void pvlist_remove_init(struct pvholder 
*holder)
initpvh(holder);
 }
 
-static inline int pvlist_empty(const struct pvlist *list)
+static inline int pvlist_empty(const struct pvlistobj *list)
 {
return list->head.next == &list->head;
 }
 
-static inline struct pvholder *pvlist_pop(struct pvlist *list)
+static inline struct pvholder *pvlist_pop(struct pvlistobj *list)
 {
struct pvholder *holder = list->head.next;
pvlist_remove(holder);
@@ -132,7 +132,7 @@ static inline struct pvholder *pvlist_pop(struct pvlist 
*list)
 }
 
 static inline int pvlist_heading_p(const struct pvholder *holder,
-  const struct pvlist *list)
+  const struct pvlistobj *list)
 {
return list->head.next == holder;
 }
diff --git a/include/smokey/smokey.h b/include/smokey/smokey.h
index 41f5e6e..e759806 100644
--- a/include/smokey/smokey.h
+++ b/include/smokey/smokey.h
@@ -121,7 +121,7 @@ void smokey_note(const char *fmt, ...);
 }
 #endif
 
-extern struct pvlist smokey_test_list;
+extern struct pvlistobj smokey_test_list;
 
 extern int smokey_keep_going;
 
diff --git a/include/vxworks/lstLib.h b/include/vxworks/lstLib.h
index acb94f6..9644ca5 100644
--- a/include/vxworks/lstLib.h
+++ b/include/vxworks/lstLib.h
@@ -28,7 +28,7 @@
 #include 
 
 typedef struct LIST {
-   struct pvlist list;
+   struct pvlistobj list;
int count;
 } LIST;
 
diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c
index 4648773..adf0d73 100644
--- a/lib/copperplate/registry.c
+++ b/lib/copperplate/registry.c
@@ -79,8 +79,8 @@ struct regfs_dir {
char *path;
const char *basename;
struct pvhashobj hobj;
-   struct pvlist file_list;
-   struct pvlist dir_list;
+   struct pvlistobj file_list;
+   struct pvlistobj dir_list;
int ndirs, nfiles;
struct timespec ctime;
struct pvhol