]> granicus.if.org Git - strace/commitdiff
mpers.awk: use stdint.h instead of inttypes.h
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 24 Feb 2018 20:42:03 +0000 (20:42 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 24 Feb 2018 20:42:03 +0000 (20:42 +0000)
As <inttypes.h> is included in files generated by mpers.awk to obtain
definitions of uintNN_t types provided by <stdint.h>, replace the former
header with the latter.

* mpers.awk: Use <stdint.h> instead of <inttypes.h>.
* mpers_test.sh: Update expected output.

mpers.awk
mpers_test.sh

index fcc562e74824463bb2a7f048891e2c1bb990c183..1374ee4899f510b39c57c65a5b90c715b1ed0f37 100644 (file)
--- a/mpers.awk
+++ b/mpers.awk
@@ -161,7 +161,7 @@ function what_is(what_idx, \
 BEGIN {
        match(ARCH_FLAG, /[[:digit:]]+/, temparray)
        default_pointer_size = temparray[0] / 8
-       print "#include <inttypes.h>"
+       print "#include <stdint.h>"
 }
 /^<[[:xdigit:]]+>/ {
        match($0, /([[:alnum:]]+)><([[:alnum:]]+)/, matches)
index 982f0a02c4614b246472632052bb96f107f3cc36..bdd42110850545dd3dac9dbf6a1637cc2a7b84a1 100755 (executable)
@@ -83,7 +83,7 @@ EOF
 expected="$mpers_dir/sample.expected"
 mpers_ptr_t="uint${size}_t"
 cat > "$expected" <<EOF
-#include <inttypes.h>
+#include <stdint.h>
 #ifndef mpers_ptr_t_is_${mpers_ptr_t}
 typedef ${mpers_ptr_t} mpers_ptr_t;
 #define mpers_ptr_t_is_${mpers_ptr_t}