mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
Drop non-prototype C function header variants: solib1.c
Clean up solib1.c by removing the #ifdef PROTOTYPES conditional. gdb/testsuite/ChangeLog: * gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped variant.
This commit is contained in:

committed by
Andreas Krebbel

parent
8008f2a759
commit
e444df73e9
@ -1,3 +1,8 @@
|
||||
2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||
|
||||
* gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped
|
||||
variant.
|
||||
|
||||
2014-11-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||
|
||||
* gdb.base/callfuncs.exp (perform_all_tests): Re-indent.
|
||||
|
@ -3,16 +3,10 @@
|
||||
the square of its integer argument.
|
||||
*/
|
||||
#if defined(__cplusplus) || defined(__STDCPP__)
|
||||
extern "C" int
|
||||
extern "C"
|
||||
#endif
|
||||
int
|
||||
solib_main (int arg)
|
||||
#else
|
||||
#ifdef PROTOTYPES
|
||||
int solib_main (int arg)
|
||||
#else
|
||||
int solib_main (arg)
|
||||
int arg;
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
return arg*arg; /* HERE */
|
||||
} /* STEP */
|
||||
|
Reference in New Issue
Block a user