Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-14 03:06:51 +0300
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-14 03:06:51 +0300
commit07766bb0e7adcefa5dd5a373986176a5cd42ed23 (patch)
treed43553bc2fa6980fb99a098c9c363e6837844633 /archival/gzip.c
parentda799e82274ffa48c5a27c5d034f4f31ba06e29f (diff)
gzip: reduce global data footprint, part 3
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 76ee1cf58..c8444ac25 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -355,8 +355,8 @@ struct global1 {
uint32_t crc; /* shift register contents */
};
-extern struct global1 *global_ptr;
-#define G1 (*(global_ptr - 1))
+extern struct global1 *ptr_to_globals;
+#define G1 (*(ptr_to_globals - 1))
/* ===========================================================================
@@ -972,7 +972,7 @@ struct global2 {
};
-#define G2ptr ((struct global2*)(global_ptr))
+#define G2ptr ((struct global2*)(ptr_to_globals))
#define G2 (*G2ptr)
@@ -2131,8 +2131,8 @@ int gzip_main(int argc, char **argv)
}
#endif
- global_ptr = xzalloc(sizeof(struct global1) + sizeof(struct global2));
- global_ptr++;
+ ptr_to_globals = xzalloc(sizeof(struct global1) + sizeof(struct global2));
+ ptr_to_globals++;
G2.l_desc.dyn_tree = G2.dyn_ltree;
G2.l_desc.static_tree = G2.static_ltree;
G2.l_desc.extra_bits = extra_lbits;