This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ choosing wrong function for Xt callback (3/14)
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: g++ choosing wrong function for Xt callback (3/14)
- From: Gary Beckmann <gary at radionics dot com>
- Date: Tue, 11 Jan 2000 16:17:17 -0500
struct random_data
{
int32_t *fptr;
int32_t *rptr;
int32_t *state;
int rand_type;
int rand_deg;
int rand_sep;
int32_t *end_ptr;
};
extern int random_r (struct random_data * __buf,
int32_t * __result) throw () ;
extern int srandom_r (unsigned int __seed, struct random_data *__buf) throw () ;
extern int initstate_r (unsigned int __seed,
void * __statebuf,
size_t __statelen,
struct random_data * __buf) throw () ;
extern int setstate_r (void * __statebuf,
struct random_data * __buf) throw () ;
extern int rand (void) throw () ;
extern void srand (unsigned int __seed) throw () ;
extern int rand_r (unsigned int *__seed) throw () ;
extern double drand48 (void) throw () ;
extern double erand48 (unsigned short int __xsubi[3]) throw () ;
extern long int lrand48 (void) throw () ;
extern long int nrand48 (unsigned short int __xsubi[3]) throw () ;
extern long int mrand48 (void) throw () ;
extern long int jrand48 (unsigned short int __xsubi[3]) throw () ;
extern void srand48 (long int __seedval) throw () ;
extern unsigned short int *seed48 (unsigned short int __seed16v[3]) throw () ;
extern void lcong48 (unsigned short int __param[7]) throw () ;
struct drand48_data
{
unsigned short int x[3];
unsigned short int a[3];
unsigned short int c;
unsigned short int old_x[3];
int init;
};
extern int drand48_r (struct drand48_data * __buffer,
double * __result) throw () ;
extern int erand48_r (unsigned short int __xsubi[3],
struct drand48_data * __buffer,
double * __result) throw () ;
extern int lrand48_r (struct drand48_data * __buffer,
long int * __result) throw () ;
extern int nrand48_r (unsigned short int __xsubi[3],
struct drand48_data * __buffer,
long int * __result) throw () ;
extern int mrand48_r (struct drand48_data * __buffer,
long int * __result) throw () ;
extern int jrand48_r (unsigned short int __xsubi[3],
struct drand48_data * __buffer,
long int * __result) throw () ;
extern int srand48_r (long int __seedval, struct drand48_data *__buffer) throw () ;
extern int seed48_r (unsigned short int __seed16v[3],
struct drand48_data *__buffer) throw () ;
extern int lcong48_r (unsigned short int __param[7],
struct drand48_data *__buffer) throw () ;
extern void * malloc (size_t __size) throw () ;
extern void * calloc (size_t __nmemb, size_t __size) throw () ;
extern void * realloc (void * __ptr, size_t __size) throw () ;
extern void free (void * __ptr) throw () ;
extern void cfree (void * __ptr) throw () ;
# 1 "/usr/include/alloca.h" 1 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 1 3
# 19 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 61 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 131 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 188 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 271 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 283 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 317 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 25 "/usr/include/alloca.h" 2 3
extern "C" {
extern void * alloca (size_t __size) throw () ;
}
# 492 "/usr/include/stdlib.h" 2 3
extern void * valloc (size_t __size) throw () ;
extern void abort (void) throw () __attribute__ ((__noreturn__));
extern int atexit (void (*__func) (void)) throw () ;
extern int __on_exit (void (*__func) (int __status, void * __arg),
void * __arg) throw () ;
extern int on_exit (void (*__func) (int __status, void * __arg),
void * __arg) throw () ;
extern void exit (int __status) throw () __attribute__ ((__noreturn__));
extern char *getenv (__const char *__name) throw () ;
extern char *__secure_getenv (__const char *__name) throw () ;
extern int putenv (__const char *__string) throw () ;
extern int setenv (__const char *__name, __const char *__value,
int __replace) throw () ;
extern void unsetenv (__const char *__name) throw () ;
extern int clearenv (void) throw () ;
extern char *mktemp (char *__template) throw () ;
extern int mkstemp (char *__template) throw () ;
extern int system (__const char *__command) throw () ;
extern char *realpath (__const char * __name,
char * __resolved) throw () ;
typedef int (*__compar_fn_t) (__const void * , __const void * ) ;
extern void * bsearch (__const void * __key, __const void * __base,
size_t __nmemb, size_t __size,
__compar_fn_t __compar) ;
extern void qsort (void * __base, size_t __nmemb, size_t __size,
__compar_fn_t __compar) ;
extern int abs (int __x) throw () __attribute__ ((__const__));
extern long int labs (long int __x) throw () __attribute__ ((__const__));
extern div_t div (int __numer, int __denom) throw () __attribute__ ((__const__));
extern ldiv_t ldiv (long int __numer, long int __denom) throw ()
__attribute__ ((__const__));
extern char *ecvt (double __value, int __ndigit, int * __decpt,
int * __sign) throw () ;
extern char *fcvt (double __value, int __ndigit, int * __decpt,
int * __sign) throw () ;
extern char *gcvt (double __value, int __ndigit, char *__buf) throw () ;
extern char *qecvt (long double __value, int __ndigit,
int * __decpt, int * __sign) throw () ;
extern char *qfcvt (long double __value, int __ndigit,
int * __decpt, int * __sign) throw () ;
extern char *qgcvt (long double __value, int __ndigit, char *__buf) throw () ;
extern int ecvt_r (double __value, int __ndigit, int * __decpt,
int * __sign, char * __buf,
size_t __len) throw () ;
extern int fcvt_r (double __value, int __ndigit, int * __decpt,
int * __sign, char * __buf,
size_t __len) throw () ;
extern int qecvt_r (long double __value, int __ndigit,
int * __decpt, int * __sign,
char * __buf, size_t __len) throw () ;
extern int qfcvt_r (long double __value, int __ndigit,
int * __decpt, int * __sign,
char * __buf, size_t __len) throw () ;
extern int mblen (__const char *__s, size_t __n) throw () ;
extern int mbtowc (wchar_t * __pwc,
__const char * __s, size_t __n) throw () ;
extern int wctomb (char *__s, wchar_t __wchar) throw () ;
extern size_t mbstowcs (wchar_t * __pwcs,
__const char * __s, size_t __n) throw () ;
extern size_t wcstombs (char * __s,
__const wchar_t * __pwcs, size_t __n) throw () ;
extern int rpmatch (__const char *__response) throw () ;
# 732 "/usr/include/stdlib.h" 3
# 756 "/usr/include/stdlib.h" 3
# 766 "/usr/include/stdlib.h" 3
}
# 1 "wrong-func.cxx" 2
# 1 "/usr/include/X11/Intrinsic.h" 1 3
# 1 "/usr/include/X11/Xlib.h" 1 3
# 1 "/usr/include/X11/X.h" 1 3
typedef unsigned long XID;
typedef unsigned long Mask;
typedef unsigned long Atom;
typedef unsigned long VisualID;
typedef unsigned long Time;
typedef XID Window;
typedef XID Drawable;
typedef XID Font;
typedef XID Pixmap;
typedef XID Cursor;
typedef XID Colormap;
typedef XID GContext;
typedef XID KeySym;
typedef unsigned char KeyCode;
# 345 "/usr/include/X11/X.h" 3