pack_init.c revision f3f69e0e8d6a713566e129aa3ab321b1e6b07fbc
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "cr_error.h"
#include "cr_mem.h"
#include "packer.h"
#include <stdio.h>
#ifdef CHROMIUM_THREADSAFE
int cr_packer_globals; /* dummy - for the sake of packer.def */
#else
#endif
int cr_packer_cmd_blocks_enabled = 0;
{
#ifdef CHROMIUM_THREADSAFE
if (!pc)
return NULL;
#else
#endif
pc->u32CmdBlockState = 0;
pc->updateBBOX = 0;
return pc;
}
{
#ifdef CHROMIUM_THREADSAFE
#endif
}
/* Set packing context for the calling thread */
{
#ifdef CHROMIUM_THREADSAFE
#else
(void)pc;
#endif
}
/* Return packing context for the calling thread */
CRPackContext *crPackGetContext( void )
{
#ifdef CHROMIUM_THREADSAFE
#else
return &cr_packer_globals;
#endif
}