diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-04-22 15:56:18 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-04-22 15:56:18 -0400 |
commit | fc83784525d3f2bb3e09d931cc9c83261c0b73ae (patch) | |
tree | 47e2c5cbae1192fb92d812d321e8e41599778005 /src/cairo-mutex-private.h | |
parent | 406fc63b68203e86c9236d06448e2ffa2c259669 (diff) | |
download | cairo-fc83784525d3f2bb3e09d931cc9c83261c0b73ae.tar.gz |
[cairo-mutex] Properly paranthesize macro arguments
Diffstat (limited to 'src/cairo-mutex-private.h')
-rw-r--r-- | src/cairo-mutex-private.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cairo-mutex-private.h b/src/cairo-mutex-private.h index 1e0c06869..b7db102f5 100644 --- a/src/cairo-mutex-private.h +++ b/src/cairo-mutex-private.h @@ -70,8 +70,8 @@ typedef int cairo_mutex_t; typedef pthread_mutex_t cairo_mutex_t; # define CAIRO_MUTEX_INITIALIZE() CAIRO_MUTEX_NOOP -# define CAIRO_MUTEX_LOCK(name) pthread_mutex_lock (&name) -# define CAIRO_MUTEX_UNLOCK(name) pthread_mutex_unlock (&name) +# define CAIRO_MUTEX_LOCK(name) pthread_mutex_lock (&(name)) +# define CAIRO_MUTEX_UNLOCK(name) pthread_mutex_unlock (&(name)) # define CAIRO_MUTEX_FINI(mutex) pthread_mutex_destroy (mutex) # define CAIRO_MUTEX_NIL_INITIALIZER PTHREAD_MUTEX_INITIALIZER @@ -93,8 +93,8 @@ typedef int cairo_mutex_t; typedef CRITICAL_SECTION cairo_mutex_t; -# define CAIRO_MUTEX_LOCK(name) EnterCriticalSection (&name) -# define CAIRO_MUTEX_UNLOCK(name) LeaveCriticalSection (&name) +# define CAIRO_MUTEX_LOCK(name) EnterCriticalSection (&(name)) +# define CAIRO_MUTEX_UNLOCK(name) LeaveCriticalSection (&(name)) # define CAIRO_MUTEX_INIT(mutex) InitializeCriticalSection (mutex) # define CAIRO_MUTEX_FINI(mutex) DeleteCriticalSection (mutex) # define CAIRO_MUTEX_NIL_INITIALIZER { NULL, 0, 0, NULL, NULL, 0 } @@ -126,8 +126,8 @@ typedef int cairo_mutex_t; cairo_private void _cairo_beos_unlock(cairo_mutex_t*); /* the real initialization takes place in a global constructor */ -# define CAIRO_MUTEX_LOCK(name) _cairo_beos_lock (&name) -# define CAIRO_MUTEX_UNLOCK(name) _cairo_beos_unlock (&name) +# define CAIRO_MUTEX_LOCK(name) _cairo_beos_lock (&(name)) +# define CAIRO_MUTEX_UNLOCK(name) _cairo_beos_unlock (&(name)) # warning "XXX: Someone who understands BeOS needs to add definitions for" \ " cairo_mutex_t, CAIRO_MUTEX_INIT, and CAIRO_MUTEX_FINI," \ |