mpers.awk: use stdint.h instead of inttypes.h

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.
This commit is contained in:
Дмитрий Левин 2018-02-24 20:42:03 +00:00
parent 003c02745f
commit 4078b012ae
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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}