mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Minor symbol visibility cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23952 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4fa4c00318
commit
d733696a80
11 changed files with 168 additions and 253 deletions
|
@ -21,7 +21,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. */
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02111 USA. */
|
||||
|
||||
#ifndef __NSCallBacks_h_OBJECTS_INCLUDE
|
||||
#define __NSCallBacks_h_OBJECTS_INCLUDE 1
|
||||
|
@ -31,53 +32,62 @@
|
|||
#include "Foundation/NSObject.h"
|
||||
#include "Foundation/NSString.h"
|
||||
|
||||
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
|
||||
#define GS_HIDDEN __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define GS_HIDDEN
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/**** Type, Constant, and Macro Definitions **********************************/
|
||||
|
||||
/**** Function Prototypes ****************************************************/
|
||||
|
||||
/** For `int's **/
|
||||
|
||||
unsigned int _NS_int_hash(void *table, void* i);
|
||||
BOOL _NS_int_is_equal(void *table, void* i, void* j);
|
||||
void _NS_int_retain(void *table, void* i);
|
||||
void _NS_int_release(void *table, void* i);
|
||||
NSString *_NS_int_describe(void *table, void* i);
|
||||
unsigned int _NS_int_hash(void *table, void* i) GS_HIDDEN;
|
||||
BOOL _NS_int_is_equal(void *table, void* i, void* j) GS_HIDDEN;
|
||||
void _NS_int_retain(void *table, void* i) GS_HIDDEN;
|
||||
void _NS_int_release(void *table, void* i) GS_HIDDEN;
|
||||
NSString *_NS_int_describe(void *table, void* i) GS_HIDDEN;
|
||||
|
||||
/** For owned `void *' **/
|
||||
|
||||
unsigned int _NS_owned_void_p_hash(void *table, void *p);
|
||||
BOOL _NS_owned_void_p_is_equal(void *table, void *p, void *q);
|
||||
void _NS_owned_void_p_retain(void *table, void *p);
|
||||
void _NS_owned_void_p_release(void *table, void *p);
|
||||
NSString *_NS_owned_void_p_describe(void *table, void *p);
|
||||
unsigned int _NS_owned_void_p_hash(void *table, void *p) GS_HIDDEN;
|
||||
BOOL _NS_owned_void_p_is_equal(void *table, void *p, void *q) GS_HIDDEN;
|
||||
void _NS_owned_void_p_retain(void *table, void *p) GS_HIDDEN;
|
||||
void _NS_owned_void_p_release(void *table, void *p) GS_HIDDEN;
|
||||
NSString *_NS_owned_void_p_describe(void *table, void *p) GS_HIDDEN;
|
||||
|
||||
/** For non-retained Objective-C objects **/
|
||||
unsigned int _NS_non_retained_id_hash(void *table, id <NSObject> o);
|
||||
BOOL _NS_non_retained_id_is_equal(void *table, id <NSObject> o, id <NSObject> p);
|
||||
void _NS_non_retained_id_retain(void *table, id <NSObject> o);
|
||||
void _NS_non_retained_id_release(void *table, id <NSObject> o);
|
||||
NSString *_NS_non_retained_id_describe(void *table, id <NSObject> o);
|
||||
unsigned int _NS_non_retained_id_hash(void *table, id <NSObject> o) GS_HIDDEN;
|
||||
BOOL _NS_non_retained_id_is_equal(void *table,
|
||||
id <NSObject> o, id <NSObject> p) GS_HIDDEN;
|
||||
void _NS_non_retained_id_retain(void *table, id <NSObject> o) GS_HIDDEN;
|
||||
void _NS_non_retained_id_release(void *table, id <NSObject> o) GS_HIDDEN;
|
||||
NSString *_NS_non_retained_id_describe(void *table, id <NSObject> o) GS_HIDDEN;
|
||||
|
||||
/** For(retainable) objects **/
|
||||
unsigned int _NS_id_hash(void *table, id <NSObject> o);
|
||||
BOOL _NS_id_is_equal(void *table, id <NSObject> o, id <NSObject> p);
|
||||
void _NS_id_retain(void *table, id <NSObject> o);
|
||||
void _NS_id_release(void *table, id <NSObject> o);
|
||||
NSString *_NS_id_describe(void *table, id <NSObject> o);
|
||||
unsigned int _NS_id_hash(void *table, id <NSObject> o) GS_HIDDEN;
|
||||
BOOL _NS_id_is_equal(void *table, id <NSObject> o, id <NSObject> p) GS_HIDDEN;
|
||||
void _NS_id_retain(void *table, id <NSObject> o) GS_HIDDEN;
|
||||
void _NS_id_release(void *table, id <NSObject> o) GS_HIDDEN;
|
||||
NSString *_NS_id_describe(void *table, id <NSObject> o) GS_HIDDEN;
|
||||
|
||||
/** For(non-owned) `void *' **/
|
||||
unsigned int _NS_non_owned_void_p_hash(void *table, void *p);
|
||||
BOOL _NS_non_owned_void_p_is_equal(void *table, void *p, void *q);
|
||||
void _NS_non_owned_void_p_retain(void *table, void *p);
|
||||
void _NS_non_owned_void_p_release(void *table, void *p);
|
||||
NSString *_NS_non_owned_void_p_describe(void *table, void *p);
|
||||
unsigned int _NS_non_owned_void_p_hash(void *table, void *p) GS_HIDDEN;
|
||||
BOOL _NS_non_owned_void_p_is_equal(void *table, void *p, void *q) GS_HIDDEN;
|
||||
void _NS_non_owned_void_p_retain(void *table, void *p) GS_HIDDEN;
|
||||
void _NS_non_owned_void_p_release(void *table, void *p) GS_HIDDEN;
|
||||
NSString *_NS_non_owned_void_p_describe(void *table, void *p) GS_HIDDEN;
|
||||
|
||||
/** For pointers to structures and `int *' **/
|
||||
unsigned int _NS_int_p_hash(void *table, int *p);
|
||||
BOOL _NS_int_p_is_equal(void *table, int *p, int *q);
|
||||
void _NS_int_p_retain(void *table, int *p);
|
||||
void _NS_int_p_release(void *table, int *p);
|
||||
NSString *_NS_int_p_describe(void *table, int *p);
|
||||
unsigned int _NS_int_p_hash(void *table, int *p) GS_HIDDEN;
|
||||
BOOL _NS_int_p_is_equal(void *table, int *p, int *q) GS_HIDDEN;
|
||||
void _NS_int_p_retain(void *table, int *p) GS_HIDDEN;
|
||||
void _NS_int_p_release(void *table, int *p) GS_HIDDEN;
|
||||
NSString *_NS_int_p_describe(void *table, int *p) GS_HIDDEN;
|
||||
|
||||
#endif /* __NSCallBacks_h_OBJECTS_INCLUDE **/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue