From mboxrd@z Thu Jan 1 00:00:00 1970 From: cgit at cryptocrack.de (Lukas Fleischer) Date: Wed, 15 Jan 2014 22:37:03 +0100 Subject: [PATCH 0/4] Remove references to the global context variable Message-ID: <1389821827-3483-1-git-send-email-cgit@cryptocrack.de> Jason noticed that sometimes, we pass a reference (pointer) to the global context variable. This series removes all such references and replaces them with direct use of the global variable. Most of the patches are much easier to review with the following options: --word-diff=color --word-diff-regex='[a-zA-Z_]+|->|\.' Comments welcome! Lukas Fleischer (4): Remove context parameter from cgit_print_*() Remove context parameter from all commands cgit.c: Remove context parameter from initializations Remove callback data parameter for cache slots cache.c | 14 ++- cache.h | 5 +- cgit.c | 249 ++++++++++++++++++++++++------------------------ cmd.c | 102 ++++++++++---------- cmd.h | 4 +- ui-atom.c | 2 +- ui-blob.c | 2 +- ui-clone.c | 48 +++++----- ui-clone.h | 6 +- ui-diff.c | 2 +- ui-patch.c | 2 +- ui-plain.c | 14 +-- ui-plain.h | 2 +- ui-repolist.c | 6 +- ui-shared.c | 297 +++++++++++++++++++++++++++++----------------------------- ui-shared.h | 6 +- ui-snapshot.c | 8 +- ui-stats.c | 29 +++--- ui-stats.h | 2 +- 19 files changed, 397 insertions(+), 403 deletions(-) -- 1.8.5.2