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:
parent
003c02745f
commit
4078b012ae
@ -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)
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user