Put quotes around strings for statement operands.

This makes reading output a bit easier (especially if the string is empty
or just whitespace).
This commit is contained in:
Bill Currie 2012-10-30 12:25:53 +09:00
parent f8bdd909cc
commit 5c79953a7e

View file

@ -66,7 +66,8 @@ operand_string (operand_t *op)
case op_value:
switch (op->o.value->type) {
case ev_string:
return quote_string (op->o.value->v.string_val);
return va ("\"%s\"",
quote_string (op->o.value->v.string_val));
case ev_float:
return va ("%g", op->o.value->v.float_val);
case ev_vector: