瀏覽代碼

make brace placement in public header typedef'd structs consistent

commit befa5866ee30d09c0c96e88af2eabff5911342ea performed this change
for struct definitions that did not also involve typedef, but omitted
the latter.
Rich Felker 8 年之前
父節點
當前提交
ee3f0c5516

+ 1 - 2
arch/aarch64/bits/signal.h

@@ -15,8 +15,7 @@ typedef struct {
 	unsigned int fpsr;
 	unsigned int fpcr;
 } fpregset_t;
-typedef struct sigcontext
-{
+typedef struct sigcontext {
 	unsigned long fault_address;
 	unsigned long regs[31];
 	unsigned long sp, pc, pstate;

+ 1 - 2
arch/arm/bits/signal.h

@@ -8,8 +8,7 @@
 
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 typedef int greg_t, gregset_t[18];
-typedef struct sigcontext
-{
+typedef struct sigcontext {
 	unsigned long trap_no, error_code, oldmask;
 	unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
 	unsigned long arm_r4, arm_r5, arm_r6, arm_r7;

+ 2 - 4
arch/i386/bits/user.h

@@ -1,13 +1,11 @@
 #undef __WORDSIZE
 #define __WORDSIZE 32
 
-typedef struct user_fpregs_struct
-{
+typedef struct user_fpregs_struct {
 	long cwd, swd, twd, fip, fcs, foo, fos, st_space[20];
 } elf_fpregset_t;
 
-typedef struct user_fpxregs_struct
-{
+typedef struct user_fpxregs_struct {
 	unsigned short cwd, swd, twd, fop;
 	long fip, fcs, foo, fos, mxcsr, reserved;
 	long st_space[32], xmm_space[32], padding[56];

+ 1 - 2
arch/microblaze/bits/signal.h

@@ -8,8 +8,7 @@
 
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 typedef unsigned long greg_t, gregset_t[38];
-typedef struct sigcontext
-{
+typedef struct sigcontext {
 	struct {
 		unsigned long r0, r1, r2, r3, r4, r5, r6, r7;
 		unsigned long r8, r9, r10, r11, r12, r13, r14, r15;

+ 1 - 2
arch/mips/bits/signal.h

@@ -24,8 +24,7 @@ struct sigcontext {
 	unsigned long long sc_mdhi, sc_mdlo;
 	unsigned long sc_hi1, sc_lo1, sc_hi2, sc_lo2, sc_hi3, sc_lo3;
 };
-typedef struct
-{
+typedef struct {
 	unsigned regmask, status;
 	unsigned long long pc, gregs[32], fpregs[32];
 	unsigned ownedfp, fpc_csr, fpc_eir, used_math, dsp;

+ 1 - 2
arch/powerpc64/bits/signal.h

@@ -23,8 +23,7 @@ typedef struct {
 	unsigned _pad2[3];
 } vrregset_t;
 
-typedef struct sigcontext
-{
+typedef struct sigcontext {
 	unsigned long _unused[4];
 	int signal;
 	int _pad0;

+ 1 - 2
arch/x32/bits/user.h

@@ -1,8 +1,7 @@
 #undef __WORDSIZE
 #define __WORDSIZE 64
 
-typedef struct user_fpregs_struct
-{
+typedef struct user_fpregs_struct {
 	uint16_t cwd, swd, ftw, fop;
 	uint64_t rip, rdp;
 	uint32_t mxcsr, mxcr_mask;

+ 1 - 2
arch/x86_64/bits/user.h

@@ -1,8 +1,7 @@
 #undef __WORDSIZE
 #define __WORDSIZE 64
 
-typedef struct user_fpregs_struct
-{
+typedef struct user_fpregs_struct {
 	uint16_t cwd, swd, ftw, fop;
 	uint64_t rip, rdp;
 	uint32_t mxcsr, mxcr_mask;

+ 6 - 12
include/elf.h

@@ -324,15 +324,13 @@ typedef struct {
 #define SHF_ORDERED	     (1 << 30)
 #define SHF_EXCLUDE	     (1U << 31)
 
-typedef struct
-{
+typedef struct {
   Elf32_Word	ch_type;
   Elf32_Word	ch_size;
   Elf32_Word	ch_addralign;
 } Elf32_Chdr;
 
-typedef struct
-{
+typedef struct {
   Elf64_Word	ch_type;
   Elf64_Word	ch_reserved;
   Elf64_Xword	ch_size;
@@ -434,8 +432,7 @@ typedef struct {
 
 
 
-typedef struct
-{
+typedef struct {
   Elf32_Addr	r_offset;
   Elf32_Word	r_info;
 } Elf32_Rel;
@@ -1513,8 +1510,7 @@ typedef struct {
 
 
 
-typedef struct
-{
+typedef struct {
   Elf32_Word l_name;
   Elf32_Word l_time_stamp;
   Elf32_Word l_checksum;
@@ -1522,8 +1518,7 @@ typedef struct
   Elf32_Word l_flags;
 } Elf32_Lib;
 
-typedef struct
-{
+typedef struct {
   Elf64_Word l_name;
   Elf64_Word l_time_stamp;
   Elf64_Word l_checksum;
@@ -1546,8 +1541,7 @@ typedef struct
 
 typedef Elf32_Addr Elf32_Conflict;
 
-typedef struct
-{
+typedef struct {
   Elf32_Half version;
   unsigned char isa_level;
   unsigned char isa_rev;

+ 1 - 2
include/sys/select.h

@@ -19,8 +19,7 @@ extern "C" {
 
 typedef unsigned long fd_mask;
 
-typedef struct
-{
+typedef struct {
 	unsigned long fds_bits[FD_SETSIZE / 8 / sizeof(long)];
 } fd_set;
 

+ 1 - 2
include/wordexp.h

@@ -18,8 +18,7 @@ extern "C" {
 #define WRDE_SHOWERR 16
 #define WRDE_UNDEF   32
 
-typedef struct
-{
+typedef struct {
 	size_t we_wordc;
 	char **we_wordv;
 	size_t we_offs;