2004/01/03 04:27:27
[org.ibex.core.git] / src / org / xwt / plat / DarwinCarbonHeaders.h
index a7eba3f..4106ab7 100644 (file)
@@ -1,6 +1,7 @@
 // stuff needed from Mac OS headers that ARE NOT in /usr/include
 // this stuff usually comes from /System/Library/Frameworks/*/Headers
 
+#include <math.h>
 
 typedef u_int8_t uint8_t;
 typedef u_int16_t uint16_t;
@@ -1559,88 +1560,6 @@ Boolean CFURLGetFSRef(CFURLRef url, struct FSRef *fsRef);
 
 
 }
-typedef int boolean_t;
-typedef unsigned int natural_t;
-typedef int integer_t;
-
-
-
-
-
-typedef natural_t vm_offset_t;
-
-
-
-
-
-
-typedef natural_t vm_size_t;
-
-
-
-
-typedef unsigned int space_t;
-typedef natural_t port_name_t;
-typedef port_name_t *port_name_array_t;
-
-
-typedef port_name_t port_t;
-typedef port_t mach_port_t;
-typedef port_t *mach_port_array_t;
-typedef port_name_t mach_port_name_t;
-typedef mach_port_name_t *mach_port_name_array_t;
-typedef natural_t mach_port_right_t;
-typedef natural_t mach_port_type_t;
-typedef mach_port_type_t *mach_port_type_array_t;
-typedef natural_t mach_port_urefs_t;
-typedef integer_t mach_port_delta_t;
-
-
-
-typedef natural_t mach_port_seqno_t;
-typedef natural_t mach_port_mscount_t;
-typedef natural_t mach_port_msgcount_t;
-typedef natural_t mach_port_rights_t;
-
-
-
-
-
-
-typedef unsigned int mach_port_srights_t;
-
-typedef struct mach_port_status {
-        mach_port_name_t mps_pset;
-        mach_port_seqno_t mps_seqno;
-        mach_port_mscount_t mps_mscount;
-        mach_port_msgcount_t mps_qlimit;
-        mach_port_msgcount_t mps_msgcount;
-        mach_port_rights_t mps_sorights;
-        boolean_t mps_srights;
-        boolean_t mps_pdrequest;
-        boolean_t mps_nsrequest;
-        unsigned int mps_flags;
-} mach_port_status_t;
-
-
-
-
-typedef struct mach_port_limits {
-        mach_port_msgcount_t mpl_qlimit;
-} mach_port_limits_t;
-
-typedef integer_t *mach_port_info_t;
-
-
-typedef int mach_port_flavor_t;
-typedef struct mach_port_qos {
-        boolean_t name:1;
-        boolean_t prealloc:1;
-        boolean_t pad1:30;
-        natural_t len;
-} mach_port_qos_t;
-
-
 
 extern "C" {
 
@@ -2701,485 +2620,8 @@ CFDataRef CFXMLTreeCreateXMLData(CFAllocatorRef allocator, CFXMLTreeRef xmlTree)
 
 
 }
-extern "C" {
-extern void __eprintf (const char *, const char *, unsigned, const char *)
-    __attribute__ ((noreturn));
-}
-typedef struct {
-        rune_t min;
-        rune_t max;
-        rune_t map;
-        unsigned long *types;
-} _RuneEntry;
-
-typedef struct {
-        int nranges;
-        _RuneEntry *ranges;
-} _RuneRange;
-
-typedef struct {
-        char magic[8];
-        char encoding[32];
-
-        rune_t (*sgetrune)
-            (const char *, size_t, char const **);
-        int (*sputrune)
-            (rune_t, char *, size_t, char **);
-        rune_t invalid_rune;
-
-        unsigned long runetype[(1 <<8 )];
-        rune_t maplower[(1 <<8 )];
-        rune_t mapupper[(1 <<8 )];
-
-
-
-
-
-
-        _RuneRange runetype_ext;
-        _RuneRange maplower_ext;
-        _RuneRange mapupper_ext;
-
-        void *variable;
-        int variable_len;
-} _RuneLocale;
-
-
-
-extern _RuneLocale _DefaultRuneLocale;
-extern _RuneLocale *_CurrentRuneLocale;
-extern "C" {
-int isalnum (int);
-int isalpha (int);
-int iscntrl (int);
-int isdigit (int);
-int isgraph (int);
-int islower (int);
-int isprint (int);
-int ispunct (int);
-int isspace (int);
-int isupper (int);
-int isxdigit (int);
-int tolower (int);
-int toupper (int);
-
-
-int digittoint (int);
-int isascii (int);
-int isblank (int);
-int ishexnumber (int);
-int isideogram (int);
-int isnumber (int);
-int isphonogram (int);
-int isrune (int);
-int isspecial (int);
-int toascii (int);
-
-}
-extern "C" {
-unsigned long ___runetype (int);
-int ___tolower (int);
-int ___toupper (int);
-}
-static inline int
-__maskrune(int _c, unsigned long _f)
-{
-        return ((_c < 0 || _c >= (1 <<8 )) ? ___runetype(_c) :
-                _CurrentRuneLocale->runetype[_c]) & _f;
-}
-
-static inline int
-__istype(int c, unsigned long f)
-{
-        return !!(__maskrune(c, f));
-}
-
-static inline int
-__isctype(int _c, unsigned long _f)
-{
-        return (_c < 0 || _c >= (1 <<8 )) ? 0 :
-                !!(_DefaultRuneLocale.runetype[_c] & _f);
-}
-
-static inline int
-__toupper(int _c)
-{
-        return (_c < 0 || _c >= (1 <<8 )) ? ___toupper(_c) :
-                _CurrentRuneLocale->mapupper[_c];
-}
-
-static inline int
-__tolower(int _c)
-{
-        return (_c < 0 || _c >= (1 <<8 )) ? ___tolower(_c) :
-                _CurrentRuneLocale->maplower[_c];
-}
-extern "C" {
-extern int * __error (void);
-
-}
-
-
-
-
-
-
-struct lconv {
-        char *decimal_point;
-        char *thousands_sep;
-        char *grouping;
-        char *int_curr_symbol;
-        char *currency_symbol;
-        char *mon_decimal_point;
-        char *mon_thousands_sep;
-        char *mon_grouping;
-        char *positive_sign;
-        char *negative_sign;
-        char int_frac_digits;
-        char frac_digits;
-        char p_cs_precedes;
-        char p_sep_by_space;
-        char n_cs_precedes;
-        char n_sep_by_space;
-        char p_sign_posn;
-        char n_sign_posn;
-};
-extern "C" {
-struct lconv *localeconv (void);
-char *setlocale (int, const char *);
-}
-extern "C" {
-
-
-
-
-
-
-typedef float float_t;
-typedef double double_t;
-enum {
-        FP_NAN = 1,
-        FP_INFINITE = 2,
-        FP_ZERO = 3,
-        FP_NORMAL = 4,
-        FP_SUBNORMAL = 5
-};
-extern unsigned int __math_errhandling ( void );
-extern long __fpclassifyd( double x );
-extern long __fpclassifyf( float x );
-extern long __fpclassify( long double x );
-
-
-    inline long __fpclassify( long double x ) { return __fpclassifyd((double)( x )); }
-
-
-
-
-
-
-extern long __isnormald( double x );
-extern long __isnormalf( float x );
-extern long __isnormal( long double x );
-
-
-    inline long __isnormal( long double x ) { return __isnormald((double)( x )); }
-
-
-
-
-
-extern long __isfinited( double x );
-extern long __isfinitef( float x );
-extern long __isfinite( long double x );
-
-
-    inline long __isfinite( long double x ) { return __isfinited((double)( x )); }
-
-
-
-
-
-
-extern long __isinfd( double x );
-extern long __isinff( float x );
-extern long __isinf( long double x );
-
-
-    inline long __isinf( long double x ) { return __isinfd((double)( x )); }
-
-
-
-
-
-
-extern long __isnand( double x );
-extern long __isnanf( float x );
-extern long __isnan( long double x );
-
-
-    inline long __isnan( long double x ) { return __isnand((double)( x )); }
-
-
-
-
-
-
-extern long __signbitd( double x );
-extern long __signbitf( float x );
-extern long __signbitl( long double x );
-
-
-    inline long __signbitl( long double x ) { return __signbitd((double)( x )); }
-extern double acos( double x );
-extern double asin( double x );
-extern double atan( double x );
-extern double atan2( double y, double x );
-extern double cos( double x );
-extern double sin( double x );
-extern double tan( double x );
-extern double acosh( double x );
-extern double asinh( double x );
-extern double atanh( double x );
-extern double cosh( double x );
-extern double sinh( double x );
-extern double tanh( double x );
-
-extern double exp ( double x );
-extern double exp2 ( double x );
-extern double expm1 ( double x );
-extern double log ( double x );
-extern double log10 ( double x );
-extern double log2 ( double x );
-extern double log1p ( double x );
-
-extern double logb ( double x );
-extern float logbf ( float x );
-
-extern double modf ( double x, double *iptr );
-extern float modff ( float x, float *iptr );
-
-extern double ldexp ( double value, int exp );
-extern float ldexpf ( float value, int exp );
-
-extern double frexp ( double value, int *eptr );
-extern float frexpf ( float value, int *eptr );
-
-extern int ilogb ( double x );
-extern int ilogbf ( float x );
-
-extern double scalbn ( double x, int n );
-extern float scalbnf ( float x, int n );
-
-extern double scalbln ( double x, long int n );
-extern float scalblnf ( float x, long int n );
-
-extern double fabs( double x );
-extern float fabsf( float x );
-
-extern double cbrt( double x );
-extern double hypot ( double x, double y );
-extern double pow ( double x, double y );
-extern double sqrt( double x );
-
-extern double erf( double x );
-extern double erfc( double x );
-extern double lgamma( double x );
-extern double tgamma( double x );
-
-extern double ceil ( double x );
-extern float ceilf ( float x );
-
-extern double floor ( double x );
-extern float floorf ( float x );
-
-extern double nearbyint ( double x );
-extern float nearbyintf ( float x );
-
-extern double rint ( double x );
-extern float rintf ( float x );
-
-extern long int lrint ( double x );
-extern long int lrintf ( float x );
-
-extern long long int llrint ( double x );
-extern long long int llrintf ( float x );
-
-extern double round ( double x );
-extern float roundf ( float x );
-
-extern long int lround ( double x );
-extern long int lroundf ( float x );
-
-extern long long int llround ( double x );
-extern long long int llroundf ( float x );
-
-extern double trunc ( double x );
-extern float truncf ( float x );
-
-extern double fmod ( double x, double y );
-extern float fmodf ( float x, float y );
-
-extern double remainder ( double x, double y );
-extern float remainderf ( float x, float y );
-
-extern double remquo ( double x, double y, int *quo );
-extern float remquof ( float x, float y, int *quo );
-
-extern double copysign ( double x, double y );
-extern float copysignf ( float x, float y );
-
-extern double nan( const char *tagp );
-extern float nanf( const char *tagp );
-
-extern double nextafter ( double x, double y );
-extern float nextafterf ( float x, float y );
-
-extern double fdim ( double x, double y );
-extern float fdimf ( float x, float y );
-
-extern double fmax ( double x, double y );
-extern float fmaxf ( float x, float y );
-
-extern double fmin ( double x, double y );
-extern float fminf ( float x, float y );
-
-extern double fma ( double x, double y, double z );
-extern float fmaf ( float x, float y, float z );
-extern double __inf( void );
-extern float __inff( void );
-extern float __nan( void );
-
-
-
-
-
-
-extern long int rinttol ( double x );
-
-extern long int roundtol ( double x );
-
-typedef struct _complx {
-        double Real;
-        double Imag;
-} _complex;
-extern int signgam;
-
-
-enum fdversion {fdlibm_ieee = -1, fdlibm_svid, fdlibm_xopen, fdlibm_posix};
-extern enum fdversion _fdlib_version;
-extern int finite ( double x );
-
-extern double gamma ( double x );
-
-extern double j0 ( double x );
-extern double j1 ( double x );
-extern double jn ( int n, double x );
-
-extern double y0 ( double x );
-extern double y1 ( double x );
-extern double yn ( int n, double x );
-
-
-
-extern double scalb ( double x, int n );
-extern double significand ( double x );
-
-
-
-
-extern double cabs ( _complex z );
-
-extern double drem ( double x, double y );
-}
-
-
-
-
-
-
-
-extern double acos (double);
-extern double asin (double);
-extern double atan (double);
-extern double atan2 (double, double);
-extern double ceil (double);
-extern double cos (double);
-extern double cosh (double);
-extern double exp (double);
-extern double fabs (double);
-extern double floor (double);
-extern double fmod (double, double);
-extern double frexp (double, int *);
-extern double ldexp (double, int);
-extern double log10 (double);
-extern double log (double);
-extern double modf (double, double *);
-extern double pow (double, double);
-extern double sin (double);
-extern double sinh (double);
-extern double sqrt (double);
-extern double tan (double);
-extern double tanh (double);
-
-
-typedef int ptrdiff_t;
-
-
-
-struct timespec {
-        time_t tv_sec;
-        long tv_nsec;
-};
-
-
-struct tm {
-        int tm_sec;
-        int tm_min;
-        int tm_hour;
-        int tm_mday;
-        int tm_mon;
-        int tm_year;
-        int tm_wday;
-        int tm_yday;
-        int tm_isdst;
-        long tm_gmtoff;
-        char *tm_zone;
-};
-extern char *tzname[];
-
 
 extern "C" {
-char *asctime (const struct tm *);
-clock_t clock (void);
-char *ctime (const time_t *);
-double difftime (time_t, time_t);
-struct tm *gmtime (const time_t *);
-struct tm *localtime (const time_t *);
-time_t mktime (struct tm *);
-size_t strftime (char *, size_t, const char *, const struct tm *);
-time_t time (time_t *);
-
-
-void tzset (void);
-
-
-
-char *asctime_r (const struct tm *, char *);
-char *ctime_r (const time_t *, char *);
-struct tm *gmtime_r (const time_t *, struct tm *);
-struct tm *localtime_r (const time_t *, struct tm *);
-char *strptime (const char *, const char *, struct tm *);
-char *timezone (int, int);
-void tzsetwall (void);
-time_t timelocal (struct tm * const);
-time_t timegm (struct tm * const);
-
-
-
-int nanosleep (const struct timespec *, struct timespec *);
-
-}
-extern "C" {
 
 
 typedef struct {
@@ -56061,6 +55503,7 @@ enum {
 
 
 
+
   kEventWindowBoundsChanged = 27,