{"thread":{"id":"220","subject":"[PATCH 14/19] move cache_header out of the public view","startedAt":"2005-04-21T18:38:05Z","lastAt":"2005-04-21T18:38:05Z","messageCount":1,"participants":["Brad Roberts"],"isPatch":true,"patchVersion":1,"patchTotal":19},"messages":[{"id":"1169","messageId":"200504211838.j3LIc56p027751@gameboy2.puremagic.com","threadId":"220","inReplyTo":null,"subject":"[PATCH 14/19] move cache_header out of the public view","fromName":"Brad Roberts","fromEmail":"braddr@gameboy2.puremagic.com","sentAt":"2005-04-21T18:38:05Z","receivedAt":"2005-04-21T18:38:05Z","isPatch":true,"sender":{"key":"braddr@gameboy2.puremagic.com","avatar":null},"body":"tree a2c82ce3512904f82f78d87d86709a471f67ef9f\nparent ff3667537379d5b0680e8c4f9a14d82dc9835430\nauthor Brad Roberts <braddr@puremagic.com> 1114083477 -0700\ncommitter Brad Roberts <braddr@gameboy2.puremagic.com> 1114083477 -0700\n\n[PATCH] move cache_header out of the public view\n\nSigned-off-by: Brad Roberts <braddr@puremagic.com>\n---\n\n cache.h      |   15 ---------------\n read-cache.c |   11 +++++++++++\n 2 files changed, 11 insertions(+), 15 deletions(-)\n\nIndex: cache.h\n===================================================================\n--- ff3667537379d5b0680e8c4f9a14d82dc9835430:1/cache.h  (mode:100644 sha1:b29bb0ca5e7be15c0b423101f5cf381ee68f139e)\n+++ b7d4fa53d4ee449b4b9b4f3c9dd40d6c99db4bc1:1/cache.h  (mode:100644 sha1:74d6c4d25c564e08eadc04aaef31a711d0645a43)\n@@ -17,21 +17,6 @@\n #include <zlib.h>\n \n /*\n- * Basic data structures for the directory cache\n- *\n- * NOTE NOTE NOTE! This is all in the native CPU byte format. It's\n- * not even trying to be portable. It's trying to be efficient. It's\n- * just a cache, after all.\n- */\n-\n-#define CACHE_SIGNATURE 0x44495243\t/* \"DIRC\" */\n-struct cache_header {\n-\tunsigned int hdr_signature;\n-\tunsigned int hdr_version;\n-\tunsigned int hdr_entries;\n-};\n-\n-/*\n  * The \"cache_time\" is just the low 32 bits of the\n  * time. It doesn't matter if it overflows - we only\n  * check it for equality in the 32 bits we save.\nIndex: read-cache.c\n===================================================================\n--- ff3667537379d5b0680e8c4f9a14d82dc9835430:1/read-cache.c  (mode:100644 sha1:0e972a80fa19eb77fd547fb579354af784be3ac4)\n+++ b7d4fa53d4ee449b4b9b4f3c9dd40d6c99db4bc1:1/read-cache.c  (mode:100644 sha1:b16a72dc4e4525a7df060b3a43722217db7869c2)\n@@ -6,6 +6,17 @@\n #include <stdarg.h>\n #include \"cache.h\"\n \n+/*\n+ * Basic data structures for the directory cache\n+ */\n+\n+#define CACHE_SIGNATURE 0x44495243\t/* \"DIRC\" */\n+struct cache_header {\n+\tunsigned int hdr_signature;\n+\tunsigned int hdr_version;\n+\tunsigned int hdr_entries;\n+};\n+\n static struct cache_entry **active_cache = NULL;\n static unsigned int active_nr = 0, active_alloc = 0;\n \n\n"}]}