Fix premature memory delete and missing DLL export definition.

A couple of errors that showed up in a MinGW build.
This commit is contained in:
Martin Whitaker 2012-08-04 17:51:51 +01:00 committed by Cary R
parent 7179274bde
commit 4af8b03e9d
2 changed files with 2 additions and 1 deletions

View File

@ -3819,7 +3819,6 @@ module
}
}
pform_endmodule($3, in_celldefine, ucd);
delete[]$3;
have_timeunit_decl = false; // We will allow decls again.
have_timeprec_decl = false;
}
@ -3832,6 +3831,7 @@ module
if ($15 && (strcmp($3,$15) != 0)) {
yyerror(@15, "error: End name doesn't match module/program name");
}
delete[]$3;
if ($15) delete[]$15;
}
;

View File

@ -38,6 +38,7 @@ vpi_sim_vcontrol
vpi_vprintf
vpip_calc_clog2
vpip_count_drivers
vpip_format_strength
vpip_make_systf_system_defined
vpip_set_return_value