Skip to content
Snippets Groups Projects
Commit 1945141e authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Added a macro mapping_data_is_shared.

Rev: src/mapping.h:1.52
parent 776ff1c0
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT. || This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information. || for more information.
|| $Id: mapping.h,v 1.51 2003/11/14 11:15:14 mast Exp $ || $Id: mapping.h,v 1.52 2004/02/10 22:20:29 mast Exp $
*/ */
#ifndef MAPPING_H #ifndef MAPPING_H
...@@ -60,6 +60,7 @@ extern struct mapping *gc_internal_mapping; ...@@ -60,6 +60,7 @@ extern struct mapping *gc_internal_mapping;
#define m_ind_types(m) ((m)->data->ind_types) #define m_ind_types(m) ((m)->data->ind_types)
#define m_val_types(m) ((m)->data->val_types) #define m_val_types(m) ((m)->data->val_types)
#define mapping_get_flags(m) ((m)->data->flags) #define mapping_get_flags(m) ((m)->data->flags)
#define mapping_data_is_shared(m) ((m)->data->refs > 1)
#define MD_KEYPAIRS(MD, HSIZE) \ #define MD_KEYPAIRS(MD, HSIZE) \
( (struct keypair *) \ ( (struct keypair *) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment