]> granicus.if.org Git - strace/commit
print_array: add support for printing array indices
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 7 May 2018 06:06:14 +0000 (08:06 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 30 May 2018 10:13:06 +0000 (10:13 +0000)
commit30fe991db81d27dcab8ea71bdacb0682a67da860
tree62a99f8395a96e6f25149156bf16d4e07e2d81de
parenteb2c0b8bdfb8980f3336fc82dc40aafbcdd75eed
print_array: add support for printing array indices

* defs.h (XLAT_STYLE_SPEC_BITS, XLAT_STYLE_MASK): New macro constants.
(tfetch_mem_fn, print_fn): New typedefs.
(enum print_array_flag_bits, enum print_array_flags): New enumerations.
(print_array_ex): Rename from print_array, add flags, index_xlat,
index_xlat_size, and index_dflt arguments.
(print_array): New static inline function, a thin wrapper around
print_array_ex.
util.c: Include "xlat.h".
(print_array): Rename to print_array_ex, add flags, index_xlat,
index_xlat_size, and index_dflt arguments.  Print array indices
according to the style settings specified by flags if PAF_PRINT_INDICES
is set.
defs.h
util.c