]> git.ipfire.org Git - thirdparty/iproute2.git/commit
utils: Add helper routines for indent handling
authorParav Pandit <parav@nvidia.com>
Wed, 10 Feb 2021 18:34:42 +0000 (20:34 +0200)
committerDavid Ahern <dsahern@kernel.org>
Thu, 11 Feb 2021 16:08:13 +0000 (09:08 -0700)
commitbd3709c3a7466a3cf00e04f0d0189cad77cf17a5
treebc774de57a67f3ee588c96fd575e0e510c1fda5f
parent5a6bf92a95f58d025037aeb0dab4a4a654cda430
utils: Add helper routines for indent handling

Subsequent patch needs to use 2 char indentation for nested objects.
Hence introduce a generic helpers to allocate, deallocate, increment,
decrement and to print indent block.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/utils.h
lib/utils.c