/*static char *SCCSID = "@(#)aah.c	6.2 92/01/31";*/
#define BSWAP0 BSWAP0

#define INCL_DOSERRORS
#include <os2def.h>
#include <bse.h>
#include "heap.h"
#include "const.h"
#include "misc.h"
#include "storage.h"
#include "fnode.h"
#include "buf.h"
#include "ea.h"
#include "chain.h"
#include "dir.h"
#include "volume.h"
#include "tables.h"
#include "frame.h"
#include "superb.h"
#include "lw.h"
#include "fsdata.h"
#include "pr_ea.h"
#include "pr_heap.h"
#include "pr_misc.h"

/*
 ***	AAH - Get enough heap space for an AUXHAND structure and zero it.
 *
 *	ENTRY	none
 *
 *	RETURNS pointer to an AUXHAND structure
 *		or NULL if no heap space
 *
 *	HISTORY
 *	    19-Sep-89 by JR (John Rogers, JohnRo@Microsoft)
 *		- Avoid warnings from Microsoft C 5.2 (on slash-slash comments).
 */


PAUXHAND
AAH(PFRAME pfrm)
{
    PAUXHAND pah;

    if( (pah = (PAUXHAND)GHS(sizeof(AUXHAND),pfrm)) == NULL ) {
	/*
	 * No Mem, set hard error flag so callers
	 * won't think disk hard error happened.
	 */

	SETHARDERR( ERROR_NOT_ENOUGH_MEMORY );

    } else {
	/* zero fill the buffer */
	memset (pah, 0, sizeof (AUXHAND));
    }

    return pah;
}
