• Kir Kolyshkin's avatar
    gen-offsets.h: refactor · fd9102a9
    Kir Kolyshkin authored
    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: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    fd9102a9
Name
Last commit
Last update
Documentation Loading commit data...
include Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...
README Loading commit data...
cr-dump.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
file-ids.c Loading commit data...
files.c Loading commit data...
gen-offsets.sh Loading commit data...
ipc_ns.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
namespaces.c Loading commit data...
parasite-syscall.c Loading commit data...
parasite.c Loading commit data...
parasite.lds.S Loading commit data...
proc_parse.c Loading commit data...
ptrace.c Loading commit data...
rbtree.c Loading commit data...
restorer-log.c Loading commit data...
restorer.c Loading commit data...
restorer.lds.S Loading commit data...
sockets.c Loading commit data...
sysctl.c Loading commit data...
util-net.c Loading commit data...
util.c Loading commit data...
uts_ns.c Loading commit data...