+2001-10-31 Bruno Haible <haible@clisp.cons.org>
+
+ * Makefile.am (noinst_HEADERS): Add read-java.h, write-java.h,
+ format.h, msgunfmt.h.
+ * message.h (NFORMATS): Define via #define, not via an enum value.
+ * format.h (struct formatstring_parser): Use PARAMS.
+ * format-c.c (FAT_SIZE_MASK): Remove extraneous backslashes.
+ * po-charset.c (po_lex_charset_set): Fix syntax error.
+ * write-java.c (write_java_string): Drop hexdigit[] size.
+ * x-java.l (add_object): Remove C++ style comment.
+
2001-10-28 Bruno Haible <haible@clisp.cons.org>
* hostname.c: Include "progname.h".
noinst_HEADERS = pos.h message.h po-gram.h po-hash.h po-charset.h po-lex.h \
po.h open-po.h read-po.h str-list.h write-po.h dir-list.h file-list.h \
po-gram-gen.h po-hash-gen.h msgl-charset.h msgl-equal.h msgl-iconv.h \
-msgl-ascii.h msgl-cat.h msgl-english.h msgfmt.h read-mo.h write-mo.h \
-po-time.h xgettext.h x-c.h x-po.h x-java.h x-ycp.h x-rst.h
+msgl-ascii.h msgl-cat.h msgl-english.h msgfmt.h msgunfmt.h read-mo.h \
+write-mo.h read-java.h write-java.h po-time.h format.h xgettext.h x-c.h \
+x-po.h x-java.h x-ycp.h x-rst.h
EXTRA_DIST = FILES
FAT_COUNT_LONGLONGINT_POINTER = FAT_COUNT_POINTER | FAT_SIZE_LONGLONG,
*/
/* Bitmasks */
- FAT_SIZE_MASK = (FAT_SIZE_SHORT | FAT_SIZE_CHAR \
- | FAT_SIZE_LONG | FAT_SIZE_LONGLONG \
- | FAT_SIZE_INTMAX_T | FAT_SIZE_SIZE_T \
+ FAT_SIZE_MASK = (FAT_SIZE_SHORT | FAT_SIZE_CHAR
+ | FAT_SIZE_LONG | FAT_SIZE_LONGLONG
+ | FAT_SIZE_INTMAX_T | FAT_SIZE_SIZE_T
| FAT_SIZE_PTRDIFF_T)
};
1. the argument types/names needed for the format string,
2. the total number of format directives.
Return NULL if the string is not a valid format string. */
- void * (*parse) (const char *string);
+ void * (*parse) PARAMS ((const char *string));
/* Free a format string descriptor, returned by parse(). */
- void (*free) (void *descr);
+ void (*free) PARAMS ((void *descr));
/* Return the number of format directives.
A string that can be output literally has 0 format directives. */
- int (*get_number_of_directives) (void *descr);
+ int (*get_number_of_directives) PARAMS ((void *descr));
/* Verify that the argument types/names in msgid_descr and those in
msgstr_descr are the same. If not, signal an error using
error_at_line (0, 0, pos->file_name, pos->line_number, ...);
error_with_progname = true;
and return true. Otherwise return false. */
- bool (*check) (const lex_pos_ty *pos, void *msgid_descr, void *msgstr_descr);
+ bool (*check) PARAMS ((const lex_pos_ty *pos, void *msgid_descr, void *msgstr_descr));
};
/* Format string parsers, each defined in its own file. */
format_lisp,
format_java,
format_pascal,
- format_ycp,
- NFORMATS
+ format_ycp
};
+#define NFORMATS 6 /* Number of format_type enum values. */
extern const char *const format_language[NFORMATS];
extern const char *const format_language_pretty[NFORMATS];
multiline_warning (NULL, xasprintf (_("%s\n"), note));
}
#else
+ size_t i;
+
for (i = 0; i < SIZEOF (weird_charsets); i++)
if (strcmp (po_lex_charset, weird_charsets[i]) == 0)
break;
FILE *stream;
const char *str;
{
- static const char hexdigit[16] = "0123456789abcdef";
+ static const char hexdigit[] = "0123456789abcdef";
const char *str_limit = str + strlen (str);
fprintf (stream, "\"");
{
if (list->num_obj + 1 >= list->max_num_obj)
{
- // resize
list->max_num_obj += OBJECT_LIST_GROWTH;
list->objects =
xrealloc (list->objects, list->max_num_obj * sizeof (void *));