diff options
author | Matt Kraai <kraai@gcc.gnu.org> | 2003-05-30 00:43:08 +0000 |
---|---|---|
committer | Matt Kraai <kraai@gcc.gnu.org> | 2003-05-30 00:43:08 +0000 |
commit | 8fdf766886512c1558c3d7d3604c25d00fb8c943 (patch) | |
tree | 3f0c5cfb333419fc813a0b381089414fccd0ce03 /gcc/gthr-gnat.c | |
parent | f0ae2326c0c185044fe477b6acdeab85da7d0fea (diff) | |
download | gcc-8fdf766886512c1558c3d7d3604c25d00fb8c943.tar.gz |
gthr-gnat.c: Remove #undef UNUSED.
* gthr-gnat.c: Remove #undef UNUSED.
(__gnat_default_lock, __gnat_default_unlock): Prototype.
(__gnat_task_lock, __gnat_task_unlock): Make declarations
prototypes.
(__gnat_install_locks): Convert declaration to ISO C90, make
parameter declarations prototypes, and remove blank line.
* gthr-gnat.h (__gnat_install_locks): Make parameter
declarations prototypes.
From-SVN: r67238
Diffstat (limited to 'gcc/gthr-gnat.c')
-rw-r--r-- | gcc/gthr-gnat.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/gthr-gnat.c b/gcc/gthr-gnat.c index 9620135bf9b..586e7d1a188 100644 --- a/gcc/gthr-gnat.c +++ b/gcc/gthr-gnat.c @@ -35,6 +35,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define UNUSED(x) x __attribute__((unused)) #endif +void __gnat_default_lock (void); +void __gnat_default_unlock (void); + void __gnat_default_lock (void) { @@ -47,17 +50,14 @@ __gnat_default_unlock (void) return; } -static void (*__gnat_task_lock) () = *__gnat_default_lock; -static void (*__gnat_task_unlock) () = *__gnat_default_unlock; +static void (*__gnat_task_lock) (void) = *__gnat_default_lock; +static void (*__gnat_task_unlock) (void) = *__gnat_default_unlock; void -__gnat_install_locks (lock, unlock) - void (*lock) (); - void (*unlock) (); +__gnat_install_locks (void (*lock) (void), void (*unlock) (void)) { __gnat_task_lock = lock; __gnat_task_unlock = unlock; - } int @@ -79,6 +79,3 @@ __gthread_mutex_unlock (__gthread_mutex_t * UNUSED (mutex)) __gnat_task_unlock (); return 0; } - -#undef UNUSED - |