if (length == 0)
{
- chill_printchar ('\0', stream);
+ fputs_filtered ("\"\"", stream);
return;
}
{
if (in_control_form || in_literal_form)
{
- fputs_filtered ("'//", stream);
+ fputs_filtered ("\"//", stream);
in_control_form = in_literal_form = 0;
}
chill_printchar (c, stream);
{
if (in_control_form)
{
- fputs_filtered ("'//", stream);
+ fputs_filtered ("\"//", stream);
in_control_form = 0;
}
- fputs_filtered ("'", stream);
+ fputs_filtered ("\"", stream);
in_literal_form = 1;
}
fprintf_filtered (stream, "%c", c);
{
if (in_literal_form)
{
- fputs_filtered ("'//", stream);
+ fputs_filtered ("\"//", stream);
in_literal_form = 0;
}
- fputs_filtered ("c'", stream);
+ fputs_filtered ("c\"", stream);
in_control_form = 1;
}
fprintf_filtered (stream, "%.2x", c);
/* Terminate the quotes if necessary. */
if (in_literal_form || in_control_form)
{
- fputs_filtered ("'", stream);
+ fputs_filtered ("\"", stream);
}
if (force_ellipses || (i < length))
{
}
}
+/* Return 1 if TYPE is a varying string or array. */
+
+int
+chill_is_varying_struct (type)
+ struct type *type;
+{
+ if (TYPE_CODE (type) != TYPE_CODE_STRUCT)
+ return 0;
+ if (TYPE_NFIELDS (type) != 2)
+ return 0;
+ if (strcmp (TYPE_FIELD_NAME (type, 0), "<var_length>") != 0)
+ return 0;
+ return 1;
+}
+
static struct type *
chill_create_fundamental_type (objfile, typeid)
struct objfile *objfile;
chill_create_fundamental_type,/* Create fundamental type in this language */
chill_print_type, /* Print a type using appropriate syntax */
chill_val_print, /* Print a value using appropriate syntax */
- &BUILTIN_TYPE_LONGEST, /* longest signed integral type */
- &BUILTIN_TYPE_UNSIGNED_LONGEST,/* longest unsigned integral type */
&builtin_type_chill_real, /* longest floating point type */
{"", "B'", "", ""}, /* Binary format info */
{"O'%lo", "O'", "o", ""}, /* Octal format info */