void MATHFree(struct MATH *math) { int i; if ( math==NULL ) return; for ( i=0; math_constants_descriptor[i].ui_name!=NULL; ++i ) { if ( math_constants_descriptor[i].devtab_offset>=0 ) DeviceTableFree( *(DeviceTable **) (((char *) math) + math_constants_descriptor[i].devtab_offset ) ); } free(math); }
void MATHFree(struct MATH *math) { #ifdef FONTFORGE_CONFIG_DEVICETABLES int i; if ( math==NULL ) return; for ( i=0; math_constants_descriptor[i].ui_name!=NULL; ++i ) { if ( math_constants_descriptor[i].devtab_offset>=0 ) DeviceTableFree( *(DeviceTable **) (((char *) math) + math_constants_descriptor[i].devtab_offset ) ); } #else if ( math==NULL ) return; #endif free(math); }