Move definition of struct xlat to a separate header file
Define struct xlat in a separate file so that it could be used later by tests without inclusion of defs.h header file. * defs.h (struct xlat, XLAT, XLAT_END): Move ... * xlat.h: ... here. * Makefile.am (strace_SOURCES): Add xlat.h.
This commit is contained in:
parent
a6acc310d7
commit
0e09704e09
@ -214,6 +214,7 @@ strace_SOURCES = \
|
||||
vsprintf.c \
|
||||
wait.c \
|
||||
xattr.c \
|
||||
xlat.h \
|
||||
xmalloc.c \
|
||||
# end of strace_SOURCES
|
||||
|
||||
|
7
defs.h
7
defs.h
@ -360,12 +360,7 @@ typedef uint8_t qualbits_t;
|
||||
#define abbrev(tcp) ((tcp)->qual_flg & QUAL_ABBREV)
|
||||
#define filtered(tcp) ((tcp)->flags & TCB_FILTERED)
|
||||
|
||||
struct xlat {
|
||||
unsigned int val;
|
||||
const char *str;
|
||||
};
|
||||
#define XLAT(x) { x, #x }
|
||||
#define XLAT_END { 0, NULL }
|
||||
#include "xlat.h"
|
||||
|
||||
extern const struct xlat addrfams[];
|
||||
extern const struct xlat at_flags[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user