Skip to content

Commit

Permalink
[codingstd] fix c_parens.t 1 for thr_pthread.h and gc_api.h
Browse files Browse the repository at this point in the history
while(0) => while (0)
  • Loading branch information
Reini Urban committed Mar 10, 2014
1 parent ddc6b9a commit ac25bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/parrot/gc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define ALIGNED_STRING_SIZE(len) (((len) + sizeof (void*) + WORD_ALIGN_1) & WORD_ALIGN_MASK)

#define PARROT_GC_WRITE_BARRIER(i, p) \
do { if (PObj_GC_need_write_barrier_TEST((p))) Parrot_gc_write_barrier((i), (p)); } while(0)
do { if (PObj_GC_need_write_barrier_TEST((p))) Parrot_gc_write_barrier((i), (p)); } while (0)

typedef struct _Parrot_GC_Init_Args {
void *stacktop;
Expand Down
2 changes: 1 addition & 1 deletion include/parrot/thr_pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# define UNLOCK(m) pthread_mutex_unlock((pthread_mutex_t*)&(m))
# define COND_WAIT(c, m) pthread_cond_wait(&(c), &(m))
# define COND_TIMED_WAIT(c, m, t, rc) \
do { (rc) = pthread_cond_timedwait(&(c), &(m), (t)); } while(0)
do { (rc) = pthread_cond_timedwait(&(c), &(m), (t)); } while (0)
# define COND_SIGNAL(c) pthread_cond_signal(&(c))
# define COND_BROADCAST(c) pthread_cond_broadcast(&(c))

Expand Down

0 comments on commit ac25bf2

Please sign in to comment.