开始设计
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#ifndef INCLUDED_C_ALIGNMENT_H
|
||||
#define INCLUDED_C_ALIGNMENT_H
|
||||
|
||||
#ifndef INCLUDED_C_BASE_H
|
||||
#include <c_Base.h>
|
||||
#endif /*INCLUDED_C_BASE_H*/
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
|
||||
typedef union {
|
||||
#ifdef C_ALIGN_MAX_SIZE
|
||||
char pad[C_ALIGN_MAX_SIZE];
|
||||
#else
|
||||
int i;
|
||||
long l;
|
||||
long *lp;
|
||||
void *p;
|
||||
void (*fp)(void);
|
||||
float f;
|
||||
double d;
|
||||
long double ld;
|
||||
#endif
|
||||
} c_align_t;
|
||||
|
||||
#define C_ALIGN_SIZE sizeof(c_align_t)
|
||||
|
||||
#endif /*INCLUDED_C_ALIGNMENT_H*/
|
||||
Reference in New Issue
Block a user