20050831 Paul Gilliam * ppc-tdep.h: Use a short-lived macro to shorten some ugly function prototypes. Index: ppc-tdep.h =================================================================== RCS file: /cvs/src/src/gdb/ppc-tdep.h,v retrieving revision 1.46 diff -c -3 -p -r1.46 ppc-tdep.h *** ppc-tdep.h 25 May 2005 03:12:13 -0000 1.46 --- ppc-tdep.h 31 Aug 2005 23:07:17 -0000 *************** struct value; *** 29,45 **** struct regcache; struct type; /* From ppc-linux-tdep.c... */ ! enum return_value_convention ppc_sysv_abi_return_value (struct gdbarch *gdbarch, ! struct type *valtype, ! struct regcache *regcache, ! gdb_byte *readbuf, ! const gdb_byte *writebuf); ! enum return_value_convention ppc_sysv_abi_broken_return_value (struct gdbarch *gdbarch, ! struct type *valtype, ! struct regcache *regcache, ! gdb_byte *readbuf, ! const gdb_byte *writebuf); CORE_ADDR ppc_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, --- 29,47 ---- struct regcache; struct type; + #define E_RVC enum return_value_convention + /* From ppc-linux-tdep.c... */ ! E_RVC ppc_sysv_abi_return_value (struct gdbarch *gdbarch, ! struct type *valtype, ! struct regcache *regcache, ! gdb_byte *readbuf, ! const gdb_byte *writebuf); ! E_RVC ppc_sysv_abi_broken_return_value (struct gdbarch *gdbarch, ! struct type *valtype, ! struct regcache *regcache, ! gdb_byte *readbuf, ! const gdb_byte *writebuf); CORE_ADDR ppc_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, *************** void ppc_linux_supply_fpregset (const st *** 66,76 **** struct regcache *regcache, int regnum, const void *gregs, size_t size); ! enum return_value_convention ppc64_sysv_abi_return_value (struct gdbarch *gdbarch, ! struct type *valtype, ! struct regcache *regcache, ! gdb_byte *readbuf, ! const gdb_byte *writebuf); /* From rs6000-tdep.c... */ int altivec_register_p (int regno); --- 68,79 ---- struct regcache *regcache, int regnum, const void *gregs, size_t size); ! E_RVC ppc64_sysv_abi_return_value (struct gdbarch *gdbarch, ! struct type *valtype, ! struct regcache *regcache, ! gdb_byte *readbuf, ! const gdb_byte *writebuf); ! #undef E_RVC /* From rs6000-tdep.c... */ int altivec_register_p (int regno);