]> granicus.if.org Git - strace/commit
Unify usage of #include guards
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 7 Aug 2016 03:44:19 +0000 (06:44 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 8 Aug 2016 09:54:01 +0000 (09:54 +0000)
commit18907920bb11dc0325821021885b808ff1bbc363
tree5cf5f20d017f56a569933392452f56a92397258d
parent7b1401e9654674de97db3bf3a11da9840e3332da
Unify usage of #include guards

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.
13 files changed:
defs.h
flock.h
gcc_compat.h
ipc_defs.h
kernel_types.h
mpers_type.h
msghdr.h
printsiginfo.h
ptrace.h
regs.h
seccomp_fprog.h
sigevent.h
xlat.h