modified the string-constant printing routines; bts2str() is invoked

This commit is contained in:
erikb
1986-03-27 11:01:12 +00:00
parent f2ff7661e4
commit 5bdb108e47
3 changed files with 19 additions and 4 deletions

View File

@@ -21,6 +21,7 @@
#include "LLlex.h"
#include "alloc.h"
#include "specials.h"
#include "ssize.h"
extern struct tokenname tkidf[], tkother[];
extern char *symbol2str();
@@ -328,8 +329,14 @@ preprocess()
printf(" ");
break;
case STRING:
printf("\"%s\" ", dot.tk_bts);
{
char sbuf[SSIZE];
char *bts2str();
printf("\"%s\" ",
bts2str(dot.tk_bts, dot.tk_len, sbuf));
break;
}
case INTEGER:
printf("%ld ", dot.tk_ival);
break;