18907920bb
This commit is an attempt to unify usage of include guards (in top-level headers, at least). As a side note, different files with *.h extension have different semantics: for example, printargs.h is included multiple times in order to generate slightly varying code depending on values of macro definitions - maybe it's better to change extension of such files to something like *.inc. * defs.h: Add #include guard. * flock.h: Likewise. * ipc_defs.h: Likewise. * mpers_type.h: Likewise. * printsiginfo.h: Likewise. * ptrace.h: Likewise. * regs.h: Likewise. * seccomp_fprog.h: Likewise. * gcc_compat.h: Rename the macro used for #include guard. * msghdr.h: Likewise. * sigevent.h: Likewise. * kernel_types.h: Comment the trailing part of #include guard. * xlat.h: Add missing macro definition for #include guard.
18 lines
406 B
C
18 lines
406 B
C
#ifndef STRACE_XLAT_H
|
|
#define STRACE_XLAT_H
|
|
|
|
# include <stdint.h>
|
|
|
|
struct xlat {
|
|
uint64_t val;
|
|
const char *str;
|
|
};
|
|
|
|
# define XLAT(val) { (unsigned)(val), #val }
|
|
# define XLAT_PAIR(val, str) { (unsigned)(val), str }
|
|
# define XLAT_TYPE(type, val) { (type)(val), #val }
|
|
# define XLAT_TYPE_PAIR(type, val, str) { (type)(val), str }
|
|
# define XLAT_END { 0, 0 }
|
|
|
|
#endif /* !STRACE_XLAT_H */
|