summary refs log tree commit diff
path: root/home/.local/bin/def
blob: ea8b9536d0696be2575b8c35b619bb951c284cb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
set -eu

macro=$1
headers='
assert.h
complex.h
ctype.h
errno.h
fenv.h
float.h
inttypes.h
iso646.h
limits.h
locale.h
math.h
setjmp.h
signal.h
stdalign.h
stdarg.h
stdatomic.h
stdbool.h
stddef.h
stdint.h
stdio.h
stdlib.h
stdnoreturn.h
string.h
tgmath.h
threads.h
time.h
uchar.h
wchar.h
wctype.h
'

for header in $headers; do
	defined=$(
		echo "$macro" \
		| cc -E -x c -include "$header" - \
		2> /dev/null \
		| tail -n 1
	)
	[ $? -ne 0 -o "$defined" = "$macro" ] && continue
	echo "#include <$header>"
	echo "$defined"
done
mp;id=3b4a10a68682f3b8590450c9be75a8ed4c7307c4&follow=1'>Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe