diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-09-19 18:45:44 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-09-19 18:45:44 -0400 |
commit | 2dd90a6c94559374d995475fff8ffff5d0d3ff6f (patch) | |
tree | 8d581a1dca33ce91b1748f4a31093265488a2378 /src/cairo-mutex.c | |
parent | 8ae8189327f383fa033032d7d4280b91d650171d (diff) |
[cairo-mutex] Move semicolons out of cairo-mutex-list-private.h
Previously cairo-mutex-list-private.h assumed that every use of the file
will produce a statement for each mutex by including a semicolon after
each. But some uses (like enumerating all static mutexes in an array
for example, can't be implemented with the semicolon in place. So, move
the semicolon out to the users of the header file.
Diffstat (limited to 'src/cairo-mutex.c')
-rw-r--r-- | src/cairo-mutex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-mutex.c b/src/cairo-mutex.c index 5149ee83..5b6a6e15 100644 --- a/src/cairo-mutex.c +++ b/src/cairo-mutex.c @@ -35,7 +35,7 @@ #include "cairo-mutex-private.h" -#define CAIRO_MUTEX_DECLARE(mutex) cairo_mutex_t mutex = CAIRO_MUTEX_NIL_INITIALIZER +#define CAIRO_MUTEX_DECLARE(mutex) cairo_mutex_t mutex = CAIRO_MUTEX_NIL_INITIALIZER; #include "cairo-mutex-list-private.h" #undef CAIRO_MUTEX_DECLARE @@ -61,7 +61,7 @@ void _cairo_mutex_initialize (void) _cairo_mutex_initialized = TRUE; -#define CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_INIT (mutex) +#define CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_INIT (mutex); #include "cairo-mutex-list-private.h" #undef CAIRO_MUTEX_DECLARE } @@ -75,7 +75,7 @@ void _cairo_mutex_finalize (void) _cairo_mutex_initialized = FALSE; -#define CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_FINI (mutex) +#define CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_FINI (mutex); #include "cairo-mutex-list-private.h" #undef CAIRO_MUTEX_DECLARE } |