Added some C support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user