Lines Matching full:h

3 # Clean up QEMU #include lines by ensuring that qemu/osdep.h
5 # by osdep.h itself are redundantly included in either .c or .h files.
35 # .c files will have the osdep.h included added, and redundant
37 # .h files will have redundant includes (including includes of osdep.h)
46 # grep -E '^# *include' $i | head -1 | grep 'osdep.h' ; test $? != 0 && \
54 …-tools|pc-bios|subprojects|contrib/plugins|tools/ebpf|ebpf/rss.bpf.skeleton.h|linux-user/(mips64|x…
106 + #include "qemu/osdep.h"
109 + #include "qemu/osdep.h"
129 *include/qemu/osdep.h | \
130 *include/qemu/compiler.h | \
131 *include/qemu/qemu-plugin.h | \
132 *include/glib-compat.h | \
133 *include/system/os-posix.h | \
134 *include/system/os-win32.h | \
136 # Removing include lines from osdep.h itself would be counterproductive.
144 *.h)
145 MODE=h
155 # First, use Coccinelle to add qemu/osdep.h before the first existing include
160 # Now remove any duplicate osdep.h includes
161 perl -n -i -e 'print if !/#include "qemu\/osdep.h"/ || !$n++;' "$f"
163 # Remove includes of osdep.h itself
165 ! (grep { $_ eq $1 } qw ("qemu/osdep.h"))' "$f"
168 # Remove includes that osdep.h already provides
171 "config-host.h" "config-target.h" "qemu/compiler.h"
172 <setjmp.h> <stdarg.h> <stddef.h> <stdbool.h> <stdint.h> <sys/types.h>
173 <stdlib.h> <stdio.h> <string.h> <strings.h> <inttypes.h>
174 <limits.h> <unistd.h> <time.h> <ctype.h> <errno.h> <fcntl.h>
175 <sys/stat.h> <sys/time.h> <assert.h> <signal.h> <glib.h>
176 <sys/stat.h> <sys/time.h> <assert.h> <signal.h> <glib.h> <sys/mman.h>
177 "system/os-posix.h, system/os-win32.h "glib-compat.h"
178 "qemu/typedefs.h"
198 All .c should include qemu/osdep.h first. The script performs three
201 * Ensure .c files include qemu/osdep.h first.
202 * Including it in a .h is redundant, since the .c already includes
204 * Likewise, including headers qemu/osdep.h includes is redundant.