rename included C files to foo.inc.c, remove osdep.h
PATCH 1/1 rename included C files to foo.inc.c, remove osdep.h
osdep.h is only needed for files that are compiled directly. Remove it from included C source files, and rename them to *.inc.c so that scripts/clean-includes knows to skip them.
---
target/cris/translate.c | 2 +-
.../cris/{translate_v10.c => translate_v10.inc.c} | 0
target/mips/translate.c | 2 +-
.../{translate_init.c => translate_init.inc.c} | 0
target/ppc/int_helper.c | 2 +-
target/ppc/{mfrom_table.c => mfrom_table.inc.c} | 0
target/ppc/translate.c | 2 +-
.../ppc/{translate_init.c => translate_init.inc.c} | 1 -
ui/vnc-enc-zrle.c | 22 ++++++++++----------
ui/{vnc-enc-zrle-template.c => vnc-enc-zrle.inc.c} | 0
10 files changed, 15 insertions(+), 16 deletions(-)
rename target/cris/{translate_v10.c => translate_v10.inc.c} (100%)
rename target/mips/{translate_init.c => translate_init.inc.c} (100%)
rename target/ppc/{mfrom_table.c => mfrom_table.inc.c} (100%)
rename target/ppc/{translate_init.c => translate_init.inc.c} (99%)
rename ui/{vnc-enc-zrle-template.c => vnc-enc-zrle.inc.c} (100%)target/cris/translate.c +1 -1
@@ -3047,7 +3047,7 @@ static unsigned int crisv32_decoder(CPUCRISState *env, DisasContext *dc)return insn_len; } -#include "translate_v10.c" +#include "translate_v10.inc.c" /* * Delay slots on QEMU/CRIS.
target/cris/translate_v10.inc.c renamed from target/cris/translate_v10.c +0 -0
target/mips/translate.c +1 -1
@@ -20499,7 +20499,7 @@ void mips_tcg_init(void) "fcr31"); } -#include "translate_init.c" +#include "translate_init.inc.c" void cpu_mips_realize_env (CPUMIPSState *env) {
target/mips/translate_init.inc.c renamed from target/mips/translate_init.c +0 -0
target/ppc/int_helper.c +1 -1
@@ -379,7 +379,7 @@ target_ulong helper_divso(CPUPPCState *env, target_ulong arg1,target_ulong helper_602_mfrom (target_ulong arg) {if (likely (arg <602 )) { -#include "mfrom_table.c" +#include "mfrom_table.inc.c" return mfrom_ROM_table[arg]; }else {return 0 ;
target/ppc/mfrom_table.inc.c renamed from target/ppc/mfrom_table.c +0 -0
target/ppc/translate.c +1 -1
@@ -6991,7 +6991,7 @@ GEN_HANDLER2_E(trechkpt, "trechkpt", 0x1F, 0x0E, 0x1F, 0x03FFF800, \ };#include "helper_regs.h" -#include "translate_init.c" +#include "translate_init.inc.c" /*****************************************************************************/ /* Misc PowerPC helpers */
target/ppc/translate_init.inc.c renamed from target/ppc/translate_init.c +0 -1
@@ -18,7 +18,6 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "qemu/osdep.h" #include "disas/bfd.h" #include "exec/gdbstub.h" #include "kvm_ppc.h"
ui/vnc-enc-zrle.c +11 -11
@@ -199,56 +199,56 @@ static void zrle_write_u8(VncState *vs, uint8_t value)#define ZRLE_BPP 8#define ZYWRLE_ENDIAN ENDIAN_NO -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZRLE_BPP#define ZRLE_BPP 15#undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_LITTLE -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_BIG -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZRLE_BPP#define ZRLE_BPP 16#undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_LITTLE -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_BIG -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZRLE_BPP#define ZRLE_BPP 32#undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_LITTLE -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_BIG -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #define ZRLE_COMPACT_PIXEL 24a#undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_LITTLE -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_BIG -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZRLE_COMPACT_PIXEL#define ZRLE_COMPACT_PIXEL 24b#undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_LITTLE -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZYWRLE_ENDIAN#define ZYWRLE_ENDIAN ENDIAN_BIG -#include "vnc-enc-zrle-template.c" +#include "vnc-enc-zrle.inc.c" #undef ZRLE_COMPACT_PIXEL#undef ZRLE_BPP
ui/vnc-enc-zrle.inc.c renamed from ui/vnc-enc-zrle-template.c +0 -0
Signature · 1 line
1.7.1
Quoted 19 lines · Paolo Bonzini
osdep.his only needed for files that are compiled directly. Remove it from included C source files, and rename them to *.inc.c so thatscripts/clean-includesknows to skip them.Cc Eric Blake <[email protected]>Cc Michael S. Tsirkin <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- target/cris/translate.c | 2 +- .../cris/{translate_v10.c => translate_v10.inc.c} | 0 target/mips/translate.c | 2 +- .../{translate_init.c => translate_init.inc.c} | 0 target/ppc/int_helper.c | 2 +- target/ppc/{mfrom_table.c => mfrom_table.inc.c} | 0 target/ppc/translate.c | 2 +- .../ppc/{translate_init.c => translate_init.inc.c} | 1 - ui/vnc-enc-zrle.c | 22 ++++++++++---------- ui/{vnc-enc-zrle-template.c => vnc-enc-zrle.inc.c} | 0 10 files changed, 15 insertions(+), 16 deletions(-)
Quoted 5 lines
rename
target/cris/{translate_v10.c=>translate_v10.inc.c} (100%) renametarget/mips/{translate_init.c=>translate_init.inc.c} (100%) renametarget/ppc/{mfrom_table.c=>mfrom_table.inc.c} (100%) renametarget/ppc/{translate_init.c=>translate_init.inc.c} (99%) renameui/{vnc-enc-zrle-template.c=>vnc-enc-zrle.inc.c} (100%)
How did we ever manage rename patches without git's nice compressed patch representation? :)
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Quoted 16 lines · Paolo Bonzini
osdep.his only needed for files that are compiled directly. Remove it from included C source files, and rename them to *.inc.c so thatscripts/clean-includesknows to skip them.Cc Eric Blake <[email protected]>Cc Michael S. Tsirkin <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- target/cris/translate.c | 2 +- .../cris/{translate_v10.c => translate_v10.inc.c} | 0 target/mips/translate.c | 2 +- .../{translate_init.c => translate_init.inc.c} | 0 target/ppc/int_helper.c | 2 +- target/ppc/{mfrom_table.c => mfrom_table.inc.c} | 0 target/ppc/translate.c | 2 +- .../ppc/{translate_init.c => translate_init.inc.c} | 1 -
Quoted 8 lines
ui/vnc-enc-zrle.c | 22 ++++++++++----------
ui/{vnc-enc-zrle-template.c => vnc-enc-zrle.inc.c} | 0
10 files changed, 15 insertions(+), 16 deletions(-)
rename target/cris/{translate_v10.c => translate_v10.inc.c} (100%)
rename target/mips/{translate_init.c => translate_init.inc.c} (100%)
rename target/ppc/{mfrom_table.c => mfrom_table.inc.c} (100%)
rename target/ppc/{translate_init.c => translate_init.inc.c} (99%)
rename ui/{vnc-enc-zrle-template.c => vnc-enc-zrle.inc.c} (100%)