Drop non-prototype C function header variants: solib1.c
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 23 Oct 2014 14:27:57 +0000 (14:27 +0000)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 13 Nov 2014 09:20:42 +0000 (10:20 +0100)
Clean up solib1.c by removing the #ifdef PROTOTYPES conditional.

gdb/testsuite/ChangeLog:

* gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped
variant.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/solib1.c

index 73aff6033f1906c2e30c2ef171906d92f0230fde..ae4d0bc5c4ef8ffebaf5f5b28a27dde28cb73c53 100644 (file)
@@ -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.
index 224a93d7a408a358ff21dbf94ac8cd30e6d15be6..c7d17f49f413034799a1f2466132ca14db081741 100644 (file)
@@ -3,16 +3,10 @@
    the square of its integer argument.
    */
 #if defined(__cplusplus) || defined(__STDCPP__)
-extern "C" int
-solib_main (int arg)
-#else
-#ifdef PROTOTYPES
-int  solib_main (int arg)
-#else
-int  solib_main (arg)
-  int  arg;
-#endif
+extern "C"
 #endif
+int
+solib_main (int arg)
 {
   return arg*arg;              /* HERE */
 }                              /* STEP */
This page took 0.032277 seconds and 4 git commands to generate.