diff options
author | Uli Schlachter <psychon@znc.in> | 2022-03-12 14:31:16 +0100 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2022-07-14 18:21:54 +0200 |
commit | 1dc945863b97f111995c14d4f40ecb99e1b141e7 (patch) | |
tree | 2323c7749ba9873f0e20f8650bad9b8f5c1cc935 /src/check-preprocessor-syntax.sh | |
parent | 913f4767e75ae5d7c6687e81eb54894562b5173d (diff) | |
download | cairo-1dc945863b97f111995c14d4f40ecb99e1b141e7.tar.gz |
Fix complaints from check-preprocessor-syntax.sh
Checking that public header files #include "cairo.h" first (or none)
Checking that private header files #include "some cairo header" first (or none)
Checking that source files #include "cairoint.h" first (or none)
./win32/cairo-dwrite-font-public.c:#include "cairo-win32-private.h"
Checking that there is no #include <cairo.*.h>
./win32/cairo-dwrite-font-public.c: * #include <cairo-win32.h>
Checking that feature conditionals are used with #if only (not #ifdef)
This adds a missing cairoint.h include and makes
check-preprocessor-syntax.sh slightly better in not warning about
includes in C comments.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/check-preprocessor-syntax.sh')
-rwxr-xr-x | src/check-preprocessor-syntax.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check-preprocessor-syntax.sh b/src/check-preprocessor-syntax.sh index b718f604e..fa0fa715f 100755 --- a/src/check-preprocessor-syntax.sh +++ b/src/check-preprocessor-syntax.sh @@ -49,7 +49,7 @@ grep . >&2 && stat=1 echo 'Checking that there is no #include <cairo.*.h>' -grep '#.*\<include\>.*<.*cairo' $ALL >&2 && stat=1 +grep '^[^*]#.*\<include\>.*<.*cairo' $ALL >&2 && stat=1 echo 'Checking that feature conditionals are used with #if only (not #ifdef)' |