---------- Forwarded message ----------
From:
Timo Lähde <address@hidden>
Date: 2010/2/21
Subject: libreDWG decode_3dsolid
To:
address@hiddenHello!
Is this better way to do that, because of variable i :
dwg.spec line 1244:
if (FIELD_VALUE(version)==1)
{
do
{
//FIELD_VALUE(sat_data) = (BITCODE_RC**) realloc(FIELD_VALUE(sat_data), i * sizeof(BITCODE_RC*));
FIELD_VALUE(sat_data) = (BITCODE_RC**) realloc(FIELD_VALUE(sat_data), (i + 1) *
sizeof(BITCODE_RC*));
FIELD_BL (block_size);
//FIELD_VECTOR (sat_data[i++], RC, block_size);
FIELD_VECTOR (sat_data[i], RC, block_size);
i++;
} while(FIELD_VALUE(block_size));
}
else
{
//TODO
fprintf(stderr, "TODO: Implement parsing of ACIS file in entities 37,38 and 39.\n");
}
regards Timo VJ Lähde