Permalink
Browse files

Cosmetic fixes to conform to CLASS (RFC21)

  • Loading branch information...
1 parent 95381bf commit ee71717b33d212d6f5fac9f062cc675c41e9909e @hintjens committed Jan 16, 2013
Showing with 8 additions and 10 deletions.
  1. +2 −0 model/generate
  2. 0 { → model}/sockopts.xml
  3. +2 −2 { → scripts}/sockopts.gsl
  4. +3 −7 src/zlist.c
  5. +1 −1 src/zloop.c
View
@@ -0,0 +1,2 @@
+export PATH=../scripts:$PATH
+gsl -q -script:sockopts.gsl sockopts.xml
File renamed without changes.
@@ -1,4 +1,4 @@
-.output "include/zsockopt.h"
+.output "../include/zsockopt.h"
.for version
. for option
. if type = "uint64" | type = "int64" | type = "uint32" | type = "int"
@@ -112,7 +112,7 @@ int zsockopt_test (bool verbose);
#endif
#endif
-.output "src/zsockopt.c"
+.output "../src/zsockopt.c"
/* =========================================================================
zsockopt - get/set 0MQ socket options
View
@@ -128,9 +128,7 @@ void *
zlist_head (zlist_t *self)
{
assert (self);
- return self->head
- ? self->head->item
- : NULL;
+ return self->head? self->head->item: NULL;
}
@@ -142,14 +140,12 @@ void *
zlist_tail (zlist_t *self)
{
assert (self);
- return self->tail
- ? self->tail->item
- : NULL;
+ return self->tail? self->tail->item: NULL;
}
// --------------------------------------------------------------------------
// Return the next item. If the list is empty, returns NULL. To move to
-// the start of the list call zlist_first(). Advances the cursor.
+// the start of the list call zlist_first (). Advances the cursor.
void *
zlist_next (zlist_t *self)
View
@@ -453,7 +453,7 @@ s_socket_event (zloop_t *loop, zmq_pollitem_t *item, void *arg)
return -1;
}
-int
+void
zloop_test (bool verbose)
{
printf (" * zloop: ");

0 comments on commit ee71717

Please sign in to comment.