mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-23 06:32:05 +03:00
make brace placement in public header typedef'd structs consistent
commit befa5866ee
performed this change
for struct definitions that did not also involve typedef, but omitted
the latter.
This commit is contained in:
parent
3c3b09980d
commit
ee3f0c5516
@ -15,8 +15,7 @@ typedef struct {
|
|||||||
unsigned int fpsr;
|
unsigned int fpsr;
|
||||||
unsigned int fpcr;
|
unsigned int fpcr;
|
||||||
} fpregset_t;
|
} fpregset_t;
|
||||||
typedef struct sigcontext
|
typedef struct sigcontext {
|
||||||
{
|
|
||||||
unsigned long fault_address;
|
unsigned long fault_address;
|
||||||
unsigned long regs[31];
|
unsigned long regs[31];
|
||||||
unsigned long sp, pc, pstate;
|
unsigned long sp, pc, pstate;
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
|
|
||||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
typedef int greg_t, gregset_t[18];
|
typedef int greg_t, gregset_t[18];
|
||||||
typedef struct sigcontext
|
typedef struct sigcontext {
|
||||||
{
|
|
||||||
unsigned long trap_no, error_code, oldmask;
|
unsigned long trap_no, error_code, oldmask;
|
||||||
unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
|
unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
|
||||||
unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
|
unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
#undef __WORDSIZE
|
#undef __WORDSIZE
|
||||||
#define __WORDSIZE 32
|
#define __WORDSIZE 32
|
||||||
|
|
||||||
typedef struct user_fpregs_struct
|
typedef struct user_fpregs_struct {
|
||||||
{
|
|
||||||
long cwd, swd, twd, fip, fcs, foo, fos, st_space[20];
|
long cwd, swd, twd, fip, fcs, foo, fos, st_space[20];
|
||||||
} elf_fpregset_t;
|
} elf_fpregset_t;
|
||||||
|
|
||||||
typedef struct user_fpxregs_struct
|
typedef struct user_fpxregs_struct {
|
||||||
{
|
|
||||||
unsigned short cwd, swd, twd, fop;
|
unsigned short cwd, swd, twd, fop;
|
||||||
long fip, fcs, foo, fos, mxcsr, reserved;
|
long fip, fcs, foo, fos, mxcsr, reserved;
|
||||||
long st_space[32], xmm_space[32], padding[56];
|
long st_space[32], xmm_space[32], padding[56];
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
|
|
||||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
typedef unsigned long greg_t, gregset_t[38];
|
typedef unsigned long greg_t, gregset_t[38];
|
||||||
typedef struct sigcontext
|
typedef struct sigcontext {
|
||||||
{
|
|
||||||
struct {
|
struct {
|
||||||
unsigned long r0, r1, r2, r3, r4, r5, r6, r7;
|
unsigned long r0, r1, r2, r3, r4, r5, r6, r7;
|
||||||
unsigned long r8, r9, r10, r11, r12, r13, r14, r15;
|
unsigned long r8, r9, r10, r11, r12, r13, r14, r15;
|
||||||
|
@ -24,8 +24,7 @@ struct sigcontext {
|
|||||||
unsigned long long sc_mdhi, sc_mdlo;
|
unsigned long long sc_mdhi, sc_mdlo;
|
||||||
unsigned long sc_hi1, sc_lo1, sc_hi2, sc_lo2, sc_hi3, sc_lo3;
|
unsigned long sc_hi1, sc_lo1, sc_hi2, sc_lo2, sc_hi3, sc_lo3;
|
||||||
};
|
};
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
unsigned regmask, status;
|
unsigned regmask, status;
|
||||||
unsigned long long pc, gregs[32], fpregs[32];
|
unsigned long long pc, gregs[32], fpregs[32];
|
||||||
unsigned ownedfp, fpc_csr, fpc_eir, used_math, dsp;
|
unsigned ownedfp, fpc_csr, fpc_eir, used_math, dsp;
|
||||||
|
@ -23,8 +23,7 @@ typedef struct {
|
|||||||
unsigned _pad2[3];
|
unsigned _pad2[3];
|
||||||
} vrregset_t;
|
} vrregset_t;
|
||||||
|
|
||||||
typedef struct sigcontext
|
typedef struct sigcontext {
|
||||||
{
|
|
||||||
unsigned long _unused[4];
|
unsigned long _unused[4];
|
||||||
int signal;
|
int signal;
|
||||||
int _pad0;
|
int _pad0;
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#undef __WORDSIZE
|
#undef __WORDSIZE
|
||||||
#define __WORDSIZE 64
|
#define __WORDSIZE 64
|
||||||
|
|
||||||
typedef struct user_fpregs_struct
|
typedef struct user_fpregs_struct {
|
||||||
{
|
|
||||||
uint16_t cwd, swd, ftw, fop;
|
uint16_t cwd, swd, ftw, fop;
|
||||||
uint64_t rip, rdp;
|
uint64_t rip, rdp;
|
||||||
uint32_t mxcsr, mxcr_mask;
|
uint32_t mxcsr, mxcr_mask;
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#undef __WORDSIZE
|
#undef __WORDSIZE
|
||||||
#define __WORDSIZE 64
|
#define __WORDSIZE 64
|
||||||
|
|
||||||
typedef struct user_fpregs_struct
|
typedef struct user_fpregs_struct {
|
||||||
{
|
|
||||||
uint16_t cwd, swd, ftw, fop;
|
uint16_t cwd, swd, ftw, fop;
|
||||||
uint64_t rip, rdp;
|
uint64_t rip, rdp;
|
||||||
uint32_t mxcsr, mxcr_mask;
|
uint32_t mxcsr, mxcr_mask;
|
||||||
|
@ -324,15 +324,13 @@ typedef struct {
|
|||||||
#define SHF_ORDERED (1 << 30)
|
#define SHF_ORDERED (1 << 30)
|
||||||
#define SHF_EXCLUDE (1U << 31)
|
#define SHF_EXCLUDE (1U << 31)
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
Elf32_Word ch_type;
|
Elf32_Word ch_type;
|
||||||
Elf32_Word ch_size;
|
Elf32_Word ch_size;
|
||||||
Elf32_Word ch_addralign;
|
Elf32_Word ch_addralign;
|
||||||
} Elf32_Chdr;
|
} Elf32_Chdr;
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
Elf64_Word ch_type;
|
Elf64_Word ch_type;
|
||||||
Elf64_Word ch_reserved;
|
Elf64_Word ch_reserved;
|
||||||
Elf64_Xword ch_size;
|
Elf64_Xword ch_size;
|
||||||
@ -434,8 +432,7 @@ typedef struct {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
Elf32_Addr r_offset;
|
Elf32_Addr r_offset;
|
||||||
Elf32_Word r_info;
|
Elf32_Word r_info;
|
||||||
} Elf32_Rel;
|
} Elf32_Rel;
|
||||||
@ -1513,8 +1510,7 @@ typedef struct {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
Elf32_Word l_name;
|
Elf32_Word l_name;
|
||||||
Elf32_Word l_time_stamp;
|
Elf32_Word l_time_stamp;
|
||||||
Elf32_Word l_checksum;
|
Elf32_Word l_checksum;
|
||||||
@ -1522,8 +1518,7 @@ typedef struct
|
|||||||
Elf32_Word l_flags;
|
Elf32_Word l_flags;
|
||||||
} Elf32_Lib;
|
} Elf32_Lib;
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
Elf64_Word l_name;
|
Elf64_Word l_name;
|
||||||
Elf64_Word l_time_stamp;
|
Elf64_Word l_time_stamp;
|
||||||
Elf64_Word l_checksum;
|
Elf64_Word l_checksum;
|
||||||
@ -1546,8 +1541,7 @@ typedef struct
|
|||||||
|
|
||||||
typedef Elf32_Addr Elf32_Conflict;
|
typedef Elf32_Addr Elf32_Conflict;
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
Elf32_Half version;
|
Elf32_Half version;
|
||||||
unsigned char isa_level;
|
unsigned char isa_level;
|
||||||
unsigned char isa_rev;
|
unsigned char isa_rev;
|
||||||
|
@ -19,8 +19,7 @@ extern "C" {
|
|||||||
|
|
||||||
typedef unsigned long fd_mask;
|
typedef unsigned long fd_mask;
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
unsigned long fds_bits[FD_SETSIZE / 8 / sizeof(long)];
|
unsigned long fds_bits[FD_SETSIZE / 8 / sizeof(long)];
|
||||||
} fd_set;
|
} fd_set;
|
||||||
|
|
||||||
|
@ -18,8 +18,7 @@ extern "C" {
|
|||||||
#define WRDE_SHOWERR 16
|
#define WRDE_SHOWERR 16
|
||||||
#define WRDE_UNDEF 32
|
#define WRDE_UNDEF 32
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
size_t we_wordc;
|
size_t we_wordc;
|
||||||
char **we_wordv;
|
char **we_wordv;
|
||||||
size_t we_offs;
|
size_t we_offs;
|
||||||
|
Loading…
Reference in New Issue
Block a user