Skip to content
Snippets Groups Projects
Commit 84b2591f authored by rswindell's avatar rswindell
Browse files

Support \e (in character and string constants) for ESC (i.e. ASCII 27).

parent bf93253f
Branches
Tags
No related merge requests found
......@@ -125,6 +125,8 @@ ulong ahtoul(char *str)
uchar cesc(char ch)
{
switch(ch) {
case 'e':
return(ESC);
case 'r':
return(CR);
case 'n':
......@@ -248,6 +250,9 @@ void writecstr(uchar *p)
tmp[2]=0; }
str[j]=(char)ahtoul(tmp);
break;
case 'e':
str[j]=ESC;
break;
case 'r':
str[j]=CR;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment