bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header fil


From: Samuel Thibault
Subject: Re: [PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header file
Date: Sun, 8 Dec 2013 23:28:52 +0900
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Marin Ramesa, le Mon 02 Dec 2013 22:54:45 +0100, a écrit :
> * ipc/ipc_hash.c (ipc_hash_global_bucket): Move struct definition to 
> ipc/ipc_hash.h.

Ditto.

> ---
>  ipc/ipc_hash.c | 7 -------
>  ipc/ipc_hash.h | 7 +++++++
>  2 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/ipc/ipc_hash.c b/ipc/ipc_hash.c
> index 5eec58c..5b31691 100644
> --- a/ipc/ipc_hash.c
> +++ b/ipc/ipc_hash.c
> @@ -144,13 +144,6 @@ ipc_hash_index_t ipc_hash_global_mask;
>         (((ipc_hash_index_t) ((vm_offset_t)obj)) >> 6)) &             \
>        ipc_hash_global_mask)
>  
> -typedef struct ipc_hash_global_bucket {
> -     decl_simple_lock_data(, ihgb_lock_data)
> -     ipc_tree_entry_t ihgb_head;
> -} *ipc_hash_global_bucket_t;
> -
> -#define      IHGB_NULL       ((ipc_hash_global_bucket_t) 0)
> -
>  #define      ihgb_lock_init(ihgb)    
> simple_lock_init(&(ihgb)->ihgb_lock_data)
>  #define      ihgb_lock(ihgb)         simple_lock(&(ihgb)->ihgb_lock_data)
>  #define      ihgb_unlock(ihgb)       simple_unlock(&(ihgb)->ihgb_lock_data)
> diff --git a/ipc/ipc_hash.h b/ipc/ipc_hash.h
> index 929ba77..1e853c3 100644
> --- a/ipc/ipc_hash.h
> +++ b/ipc/ipc_hash.h
> @@ -39,6 +39,13 @@
>  
>  typedef natural_t ipc_hash_index_t;
>  
> +typedef struct ipc_hash_global_bucket {
> +     decl_simple_lock_data(, ihgb_lock_data)
> +     ipc_tree_entry_t ihgb_head;
> +} *ipc_hash_global_bucket_t;
> +
> +#define      IHGB_NULL       ((ipc_hash_global_bucket_t) 0)
> +
>  extern void
>  ipc_hash_init(void);
>  
> -- 
> 1.8.1.4
> 
> 

-- 
Samuel
 Yep. Moi j'ai un clavier à une touche. 
 Par contre, ma souris a 102 boutons, c'est pas toujours pratique.
 -+- OG in: Guide du Cabaliste Usenet - Le mulot contre attaque -+-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]