Fix plain year directive

Only Y2014 or apply year 2014 would actually set the year for the
following transactions; year 2014 would silently do nothing.
This commit is contained in:
Alexis Hildebrandt 2014-12-28 13:32:22 +01:00
parent 66ce4ac48f
commit e716980c7d

View file

@ -1375,6 +1375,13 @@ bool instance_t::general_directive(char * line)
return true; return true;
} }
break; break;
case 'y':
if (std::strcmp(p, "year") == 0) {
apply_year_directive(arg);
return true;
}
break;
} }
if (expr_t::ptr_op_t op = lookup(symbol_t::DIRECTIVE, p)) { if (expr_t::ptr_op_t op = lookup(symbol_t::DIRECTIVE, p)) {