Added some C support

This commit is contained in:
ceriel
1990-09-14 14:37:26 +00:00
parent 4900ad0743
commit 5f592dd6bd
12 changed files with 520 additions and 27 deletions

View File

@@ -65,8 +65,9 @@ static struct langdep def = {
struct langdep *def_dep = &def;
static int
print_string(s)
print_string(s, len)
char *s;
int len;
{
register char *str = s;
int delim = '\'';
@@ -74,7 +75,7 @@ print_string(s)
while (*str) {
if (*str++ == '\'') delim = '"';
}
fprintf(db_out, "%c%s%c", delim, s, delim);
fprintf(db_out, "%c%.*s%c", delim, len, s, delim);
}
extern long int_size;