* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vlc_common.h,v 1.93 2003/12/03 21:50:49 sigmunau Exp $
+ * $Id: vlc_common.h,v 1.96 2003/12/06 22:45:53 jpsaman Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
typedef unsigned long long uint64_t;
typedef signed long long int64_t;
# endif
+ typedef uint32_t uintptr_t;
+ typedef int32_t intptr_t;
#endif
typedef uint8_t byte_t;
#define TAB_APPEND( count, tab, p ) \
if( (count) > 0 ) \
{ \
- (void *)(tab) = realloc( (tab), sizeof( void ** ) * ( (count) + 1 ) );\
+ (*(void **)(&tab)) = \
+ realloc( tab, sizeof( void ** ) * ( (count) + 1 ) ); \
} \
else \
{ \
- (void *)(tab) = malloc( sizeof( void ** ) ); \
+ (*(void **)(&tab)) = malloc( sizeof( void ** ) ); \
} \
- (void**)(tab)[(count)] = (void*)(p); \
+ ((void**)(tab))[count] = (void*)(p); \
(count)++
#define TAB_FIND( count, tab, p, index ) \
(index) = -1; \
for( _i_ = 0; _i_ < (count); _i_++ ) \
{ \
- if((void**)(tab)[_i_]==(void*)(p)) \
+ if( ((void**)(tab))[_i_] == (void*)(p) ) \
{ \
(index) = _i_; \
break; \
#if defined( ENABLE_NLS ) && \
(defined(MODULE_NAME_IS_gnome)||defined(MODULE_NAME_IS_gnome_main)||\
- defined(MODULE_NAME_IS_gnome2)||defined(MODULE_NAME_IS_gnome2_main))
+ defined(MODULE_NAME_IS_gnome2)||defined(MODULE_NAME_IS_gnome2_main)||\
+ defined(MODULE_NAME_IS_pda))
/* Declare nothing: gnome.h will do it for us */
#elif defined( ENABLE_NLS )
#if defined( HAVE_INCLUDED_GETTEXT )