Change how builtin functions are loaded, better error checking

This commit is contained in:
2022-03-16 17:05:20 -04:00
parent 3b1c3e022a
commit c1ce1bfcc0
5 changed files with 184 additions and 99 deletions

View File

@@ -65,7 +65,7 @@ void quote_string(const eng::string &s, std::ostream *os) {
case '\t': (*os) << "\\t"; break;
case '\r': (*os) << "\\r"; break;
default:
(*os) << "\\" << std::setw(3) << int(c);
(*os) << "\\" << std::setfill('0') << std::setw(3) << int(c);
break;
}
}