empty cleanup

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5074 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2010-05-26 23:25:53 +00:00
parent 697459a3e6
commit 4a4fa87e9c
+3 -3
View File
@@ -199,7 +199,7 @@ enet_symbol_rescale (ENetSymbol * symbol)
}
#ifdef ENET_CONTEXT_EXCLUSION
static const ENetSymbol enet_context_empty = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
static const ENetSymbol emptyContext = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
#define ENET_CONTEXT_WALK(context, body) \
{ \
@@ -268,7 +268,7 @@ enet_range_coder_compress (void * context, const ENetBuffer * inBuffers, size_t
{
ENetSymbol * subcontext, * symbol;
#ifdef ENET_CONTEXT_EXCLUSION
const ENetSymbol * childContext = & enet_context_empty;
const ENetSymbol * childContext = & emptyContext;
#endif
enet_uint8 value;
enet_uint16 count, under, * parent = & predicted, total;
@@ -521,7 +521,7 @@ enet_range_coder_decompress (void * context, const enet_uint8 * inData, size_t i
{
ENetSymbol * subcontext, * symbol, * patch;
#ifdef ENET_CONTEXT_EXCLUSION
const ENetSymbol * childContext = & enet_context_empty;
const ENetSymbol * childContext = & emptyContext;
#endif
enet_uint8 value = 0;
enet_uint16 code, under, count, bottom, * parent = & predicted, total;