+2003-10-20 Bruno Haible <bruno@clisp.org>
+
+ Portability to Solaris with cc.
+ * x-java.c (string_buffer_append): Avoid aggregate initializer
+ containing non-constant expressions.
+ * xgettext.c (flag_context_list_iterator): Likewise.
+ (language_to_extractor): Likewise.
+
2003-10-11 Bruno Haible <bruno@clisp.org>
* xgettext.c (main): Drop suffix ".in" from input file name, if
flag_context_list_iterator_ty
flag_context_list_iterator (flag_context_list_ty *list)
{
- flag_context_list_iterator_ty result = { 1, list };
+ flag_context_list_iterator_ty result;
+ result.argnum = 1;
+ result.head = list;
return result;
}
for (tp = table; tp < ENDOF(table); ++tp)
if (strcasecmp (name, tp->name) == 0)
{
- extractor_ty result =
- {
- tp->func,
- tp->flag_table,
- tp->formatstring_parser1, tp->formatstring_parser2
- };
+ extractor_ty result;
+
+ result.func = tp->func;
+ result.flag_table = tp->flag_table;
+ result.formatstring_parser1 = tp->formatstring_parser1;
+ result.formatstring_parser2 = tp->formatstring_parser2;
return result;
}