20260829 Redesign
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef INCLUDED_C_ALIGNMENT_H
|
||||
#define INCLUDED_C_ALIGNMENT_H
|
||||
|
||||
typedef union {
|
||||
#ifdef C_ALIGN_MAX_BYTES
|
||||
char pad[C_ALIGN_MAX_BYTES];
|
||||
#else
|
||||
int i;
|
||||
long l;
|
||||
long *lp;
|
||||
void *p;
|
||||
void (*fp)(void);
|
||||
float f;
|
||||
double d;
|
||||
long double ld;
|
||||
#endif
|
||||
}c_Alignment_t ;
|
||||
|
||||
#define C_ALIGN_SIZE sizeof(c_Alignment_t)
|
||||
|
||||
#endif /*INCLUDED_C_ALIGNMENT_H*/
|
||||
Reference in New Issue
Block a user