diff options
author | Dmitry V. Levin <ldv@strace.io> | 2022-01-09 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2022-01-09 08:00:00 +0000 |
commit | 77f4e03ad602f3f9d8518b0ab5fef70378967215 (patch) | |
tree | 5bd5d8ad8780196e79d43f6b8c5432fbbdfecc70 | |
parent | 0b5f1b34a43b394351479d80e88701bea01bef89 (diff) | |
download | strace-77f4e03ad602f3f9d8518b0ab5fef70378967215.tar.gz |
Fix preprocessor indentation
Indent the C preprocessor directives to reflect their nesting
using the following script:
$ cppi -l $(git grep -El '^[[:space:]]*#[[:space:]]*(if|ifdef|ifndef|elif|else|endif|define|pragma)[[:space:]]' src tests |grep -v '\.sh$') |while read f; do
cppi < "$f" > "$f".cppi; mv "$f".cppi "$f"
done
-rw-r--r-- | src/gcc_compat.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gcc_compat.h b/src/gcc_compat.h index f41dea21e..985a17e68 100644 --- a/src/gcc_compat.h +++ b/src/gcc_compat.h @@ -63,13 +63,13 @@ * 1, if the given two types are known to be the same; * 0, otherwise. */ -#if GNUC_PREREQ(3, 0) -# define IS_SAME_TYPE(x_, y_) \ +# if GNUC_PREREQ(3, 0) +# define IS_SAME_TYPE(x_, y_) \ __builtin_types_compatible_p(__typeof__(x_), __typeof__(y_)) -#else +# else /* Cannot tell whether these types are the same. */ -# define IS_SAME_TYPE(x_, y_) 0 -#endif +# define IS_SAME_TYPE(x_, y_) 0 +# endif # if GNUC_PREREQ(3, 0) # define ATTRIBUTE_MALLOC __attribute__((__malloc__)) |