/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1993-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* huffman coding routine to read a pack format header
*
* David Korn
* AT&T Laboratories
*/
#include "huffman.h"
#include <error.h>
{
register int i, j, c;
/* allocate space for huffman tree */
{
return((Huff_t*)0);
}
/* check two-byte header */
goto error;
/* get size of original file, */
for (i=0; i<4; i++)
/* get number of levels in maxlev, */
{
/* larger than 2**32 */
for (i=0; i<4; i++)
}
goto error;
/* get number of leaves on level i */
{
goto error;
}
/* read in the characters and compute number of bits for each */
for(i=0; i <= END; i++)
{
goto error;
while (j-- > 0)
{
goto error;
}
}
goto error;
return(hp);
return ((Huff_t*)0);
}