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

@@ -284,7 +284,8 @@ type2str(tp)
}
char * /* the ultimate transient buffer supplier */
next_transient() {
next_transient()
{
static int bnum;
static char buf[MAXTRANS][300];
@@ -340,8 +341,15 @@ p1_expr(lvl, expr)
v->vl_value);
break;
case String:
printf("%s\n", expr->SG_VALUE);
{
char bts2str();
printf(
"%s\n",
bts2str(expr->SG_VALUE, expr->SG_LEN, next_transient())
);
break;
}
case Float:
printf("%s\n", expr->FL_VALUE);
break;