/********************************************************************
*   InitCGlue.c
*
*   Shared library jump buffer and code segment initialization code.
*
*   Copyright (c) 1994, Willows Software Inc.  All rights reserved.  
********************************************************************/

static char *InitCGlue_c =  "IDENT:  @(#)InitCGlue.c	1.1 1/2/96 12:09:41";

#include <CodeFragments.h>

#include "InitCGlue.h"

FSSpec gMyFileSpec;
short __initialize(void);


/****************************************************************
*       __Init
*
*     Get this code fragment's container (file).  We need this to be able to access resources in the
*     containing file.
*     Continue on with the normal MetroWerks code fragment initialization
*
****************************************************************/
pascal OSErr __Init(const CFragInitBlock *theInitBlock)
{
	
	/* Get the file information for "us" */
	gMyFileSpec = *theInitBlock->fragLocator.u.onDisk.fileSpec;
		
	return(__initialize());		/* continue with normal MetroWerks code fragment initialization */
}
