コード例 #1
0
ファイル: dbl.c プロジェクト: BackupTheBerlios/ktoon-svn
SWFDBLBitmap
newSWFDBLBitmap(FILE* f)
{
	SWFDBLBitmap dbl = newSWFDBLBitmap_fromInput(newSWFInput_file(f));
	BLOCK(dbl)->dtor = (destroySWFBlockMethod) destroySWFDBLBitmap_andInputs;
	return dbl;
}
コード例 #2
0
ファイル: dbl.c プロジェクト: cran/R2SWF
SWFDBLBitmap
newSWFDBLBitmap(FILE* f)
{
	SWFInput input = newSWFInput_file(f);
	SWFDBLBitmap dbl = NULL;

	/* If newSWFInput_file() failed, return NULL to signify this */
	if (NULL == input)
		return NULL;

	dbl = newSWFDBLBitmap_fromInput(input);

	/* If newSWFDBLBitmap_fromInput() failed, return NULL to signify this */
	if (NULL == dbl)
		return NULL;

	BLOCK(dbl)->dtor = (destroySWFBlockMethod) destroySWFDBLBitmap_andInputs;
	return dbl;
}