Move evaluation of attributes into the input routine.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5592 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-03-10 20:26:47 +00:00
parent 44c70d01cb
commit 1a7b115b3c
5 changed files with 51 additions and 79 deletions

View File

@@ -243,7 +243,7 @@ static void ReadPlane (FILE* F, PCXHeader* P, unsigned char* L)
Bitmap* ReadPCXFile (const char* Name)
Bitmap* ReadPCXFile (const Collection* A)
/* Read a bitmap from a PCX file */
{
PCXHeader* P;
@@ -254,6 +254,8 @@ Bitmap* ReadPCXFile (const char* Name)
unsigned X, Y;
/* Get the file name */
const char* Name = NeedAttrVal (A, "name", "read pcx file");
/* Open the file */
FILE* F = fopen (Name, "rb");