ack/util/ceg/EM_parser/common/eval.c

21 lines
271 B
C
Raw Normal View History

1987-11-20 11:12:07 +00:00
#include <ctype.h>
#include "decl.h"
eval( str)
char *str;
{
register char c;
int i;
for ( c = *str++; c != '\0'; c= *str++)
if ( c == '$' && isdigit( *str)) {
i = *str++ - '0' - 1;
out( "%s", C_instr_info->arg_conv[i]);
}
else
out( "%c", c);
}