parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652)

This commit is contained in:
Jose Mendoza 2025-06-08 04:44:38 -04:00 committed by GitHub
parent 0de2f742f0
commit a5f400ee77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 41 additions and 29 deletions

View file

@ -125,16 +125,16 @@ fn (mut l Log) log_file(s string, level Level) {
unsafe {
l.ofile.write_ptr(timestamp.str, timestamp.len)
l.ofile.write_ptr(' '.str, 1)
l.ofile.write_ptr(c' ', 1)
l.ofile.write_ptr('['.str, 1)
l.ofile.write_ptr(c'[', 1)
l.ofile.write_ptr(e.str, e.len)
l.ofile.write_ptr(']'.str, 1)
l.ofile.write_ptr(c']', 1)
l.ofile.write_ptr(' '.str, 1)
l.ofile.write_ptr(c' ', 1)
l.ofile.write_ptr(s.str, s.len)
l.ofile.write_ptr('\n'.str, 1)
l.ofile.write_ptr(c'\n', 1)
}
if l.always_flush {
l.flush()