minor fixes and cleaning up

This commit is contained in:
Alexander Medvednikov 2020-01-04 00:06:01 +01:00
parent aeda48d94e
commit 3344111a03
7 changed files with 25 additions and 48 deletions

View file

@ -20,7 +20,12 @@ fn (p mut Parser) string_expr() {
*/
if (p.calling_c && p.peek() != .dot) || is_cstr || (p.pref.translated && p.mod == 'main') {
p.gen('"$f"')
if p.os == .windows {
p.gen('L"$f"')
}
else {
p.gen('"$f"')
}
}
else if p.is_sql {
p.gen("'$str'")