* translate.cxx (mapvar::del): Call the new _stp_map_del
function instead of setting to zero.
+2007-01-10 Martin Hunt <hunt@redhat.com>
+
+ * translate.cxx (mapvar::del): Call the new _stp_map_del
+ function instead of setting to zero.
+
2007-01-01 Frank Ch. Eigler <fche@redhat.com>
* configure.ac: Bump version to 0.5.12 for release.
}
string del (vector<tmpvar> const & indices) const
- {
- if (type() == pe_string)
- return (call_prefix("set", indices) + ", NULL)");
- else if ((type() == pe_long) || (type() == pe_stats))
- return (call_prefix("set", indices) + ", 0)");
- else
- throw semantic_error("setting a value of an unsupported map type");
+ {
+ return (call_prefix("del", indices) + ")");
}
string exists (vector<tmpvar> const & indices) const