sim: drop extern C linkage from most sim interface headers
authorMike Frysinger <vapier@gentoo.org>
Tue, 10 Nov 2015 07:12:52 +0000 (23:12 -0800)
committerMike Frysinger <vapier@gentoo.org>
Sun, 15 Nov 2015 05:38:26 +0000 (00:38 -0500)
Since these headers merely have enum's, drop the extern C linkage
markings.  Helps to reduce the copy & paste spam.

include/gdb/ChangeLog
include/gdb/sim-arm.h
include/gdb/sim-cr16.h
include/gdb/sim-d10v.h
include/gdb/sim-frv.h
include/gdb/sim-h8300.h
include/gdb/sim-lm32.h
include/gdb/sim-sh.h

index 57a83ce657ec98940908ee3af95fbe7bfa78f58a..eae0cf10b7cb97423c0182dab636284689720231 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-arm.h: Delete __cplusplus checks and extern "C" linkage.
+       * sim-cr16.h, sim-d10v.h, sim-frv.h, sim-h8300.h, sim-lm32.h,
+       sim-sh.h: Likewise.
+
 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-cr16.h (sim_cr16_translate_dmap_addr): Delete.
index d1b1272b74666e576105c37d7d256d4115b03e18..1483ab983ae7d1ac36758f285eefa5fc4191ef49 100644 (file)
 #if !defined (SIM_ARM_H)
 #define SIM_ARM_H
 
-#ifdef __cplusplus
-extern "C" { // }
-#endif
-
 enum sim_arm_regs
 {
   SIM_ARM_R0_REGNUM,
@@ -105,8 +101,4 @@ enum sim_arm_regs
   SIM_ARM_IWMMXT_COP1R15_REGNUM
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
index 03f4b817e7ca9aebe6aed35bea3df5bfe1af1769..2f41303847b3c3a20aeeeec58007557af74bb02f 100644 (file)
 #if !defined (SIM_CR16_H)
 #define SIM_CR16_H
 
-#ifdef __cplusplus
-extern "C" { // }
-#endif
-
 enum
   {
     SIM_CR16_MEMORY_UNIFIED = 0x00000000,
@@ -76,8 +72,4 @@ enum
   SIM_CR16_NR_CR_REGS = 11
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
index 341676697555917f619f9e9fa701020dc03cbc56..5a83f91b6d0076c378a282b903a59666bb245f9c 100644 (file)
 #if !defined (SIM_D10V_H)
 #define SIM_D10V_H
 
-#ifdef __cplusplus
-extern "C" { // }
-#endif
-
 /* GDB interprets addresses as:
 
    0x00xxxxxx: Physical unified memory segment     (Unified memory)
@@ -111,8 +107,4 @@ enum
   SIM_D10V_NR_CR_REGS = 16
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
index fa31e34ad3ab2108cee09f372917fa62d28cf034..481b5650bd2c05c17cb92c6dc06eda86e12705b4 100644 (file)
 #if !defined (SIM_FRV_H)
 #define SIM_FRV_H
 
-#ifdef __cplusplus
-extern "C" { // }
-#endif
-
 enum sim_frv_regs
 {
   SIM_FRV_GR0_REGNUM  = 0,
@@ -44,8 +40,4 @@ enum sim_frv_regs
   SIM_FRV_SPR4095_REGNUM = SIM_FRV_SPR0_REGNUM + 4095
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
index 282143392bf97c9eb41def6423deb707b01869ab..e0405d39915b97f986e44211672d8b3bd5087f24 100644 (file)
 #if !defined (SIM_H8300_H)
 #define SIM_H8300_H
 
-#ifdef __cplusplus
-extern "C" { //}
-#endif
-
 /* The simulator makes use of the following register information. */
 
-  enum sim_h8300_regs
+enum sim_h8300_regs
   {
     /* Registers common to all the H8 variants. */
     /* Start here: */
@@ -52,7 +48,7 @@ extern "C" { //}
     SIM_H8300_TICK_REGNUM
   };
 
-  enum
+enum
   {
     SIM_H8300_ARG_FIRST_REGNUM = SIM_H8300_R0_REGNUM, /* first reg in which an arg
                                                          may be passed */
@@ -63,15 +59,11 @@ extern "C" { //}
     SIM_H8300_SP_REGNUM = SIM_H8300_R7_REGNUM  /* Contains address of top of stack */
   };
 
-  enum
+enum
   {
     SIM_H8300_NUM_COMMON_REGS = 10,
     SIM_H8300_S_NUM_REGS = 13,
     SIM_H8300_NUM_REGS = 16
   };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif                         /* SIM_H8300_H */
index 8fa5cf417e8d27863fd3fa6587b39baf878014b3..55926d492c75da4ae15a17dc1dd69a6562009562 100644 (file)
 #ifndef SIM_LM32_H
 #define SIM_LM32_H
 
-#ifdef __cplusplus
-extern "C" { // }
-#endif
-
 enum sim_lm32_regs
 {
   SIM_LM32_R0_REGNUM,
@@ -69,8 +65,4 @@ enum sim_lm32_regs
   SIM_LM32_NUM_REGS      
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
index fc42212b4068a4eed86e58ca2fbce9bf039880cb..e11d0b55cbf643395db3e6ab0a6c25a4637455f9 100644 (file)
 #if !defined (SIM_SH_H)
 #define SIM_SH_H
 
-#ifdef __cplusplus
-extern "C" { // }
-#endif
-
 /* The simulator makes use of the following register information. */
 
 enum
@@ -162,8 +158,4 @@ enum
   SIM_SH64_NR_FP_REGS = 64 /* number of floating point registers */
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
This page took 0.027744 seconds and 4 git commands to generate.