gen-offsets.h: refactor
These changes are mostly for better readability and style. The only actual difference (in the output produced) is the last item. (1) Use UPPERCASE variable names (2) Simplify names (get rid of name_ prefix for everything) (3) Rename variables: - name_ifndef to INC_GUARD, - name_prefix_offset to PREFIX, - name_bin to BINARY. (4) Replace sed with tr for simplicity (5) Replace grep with awk condition (6) Don't escape every $ and " inside AWK_CMD, just quote the full string (7) Use cat and 'here document' instead of many echoes (8) Simplify hexdump arguments, use single -e option (9) Insert our name into 'Generated by' comment. Signed-off-by:Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
Showing
Please
register
or
sign in
to comment