+2001-09-08 Bruno Haible <haible@clisp.cons.org>
+
+ * findprog.c: Include specification header before all other headers.
+ * fstrcmp.c: Likewise.
+ * full-write.c: Likewise.
+ * hash.c: Likewise.
+ * linebreak.c: Likewise.
+ * mbswidth.c: Likewise.
+ * progname.c: Likewise.
+ * safe-read.c: Likewise.
+ * wait-process.c: Likewise.
+ * xerror.c: Likewise.
+ * getline.c: Include getline.h.
+ * mbswidth.h: Include <stddef.h>, for size_t.
+ * wait-process.h: Include <unistd,h> and <sys/types.h>, for pid_t.
+
2001-09-08 Bruno Haible <haible@clisp.cons.org>
* javacomp.sh.in: New file.
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+/* Specification. */
#include "c-ctype.h"
#undef c_isalnum
# include <config.h>
#endif
+/* Specification. */
#include "system.h"
/* Concatenate a directory pathname, a relative pathname and an optional
# include "config.h"
#endif
+/* Specification. */
+#include "findprog.h"
+
#include <stdlib.h>
#include <string.h>
# include <unistd.h>
#endif
-#include "findprog.h"
#include "system.h"
# include "config.h"
#endif
+/* Specification. */
+#include "fstrcmp.h"
+
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include "system.h"
-#include "fstrcmp.h"
/*
# include <config.h>
#endif
+/* Specification. */
+#include "full-write.h"
+
#include <sys/types.h>
#if HAVE_UNISTD_H
extern int errno;
#endif
-#include "full-write.h"
-
/* Write LEN bytes at PTR to descriptor DESC, retrying if interrupted.
Return LEN upon success, write's (negative) error code otherwise. */
/* getline.c -- Replacement for GNU C library function getline
-Copyright (C) 1993, 1996 Free Software Foundation, Inc.
+Copyright (C) 1993, 1996, 2001 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
# include <config.h>
#endif
+/* Specification. */
+#include "getline.h"
+
/* The `getdelim' function is only declared if the following symbol
is defined. */
#ifndef _GNU_SOURCE
# include <config.h>
#endif
+/* Specification. */
+#include "hash.h"
+
#if STDC_HEADERS
# include <stdlib.h>
#else
# include <values.h>
#endif
-#include "hash.h"
-
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
# include <config.h>
#endif
+/* Specification. */
+#include "linebreak.h"
+
#include <stddef.h>
#include <string.h>
-#include "linebreak.h"
#include "c-ctype.h"
#include "utf8-ucs4.h"
# include <config.h>
#endif
+/* Specification. */
+#include "mbswidth.h"
+
/* Get MB_CUR_MAX. */
#include <stdlib.h>
#undef ISCNTRL
#define ISCNTRL(c) (IN_CTYPE_DOMAIN (c) && iscntrl (c))
-#include "mbswidth.h"
-
/* Returns the number of columns needed to represent the multibyte
character string pointed to by STRING. If a non-printable character
occurs, and MBSW_REJECT_UNPRINTABLE is specified, -1 is returned.
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#include <stddef.h>
+
#ifndef PARAMS
# if defined (__GNUC__) || __STDC__
# define PARAMS(Args) Args
# include "config.h"
#endif
+/* Specification. */
#include "pipe.h"
#include <errno.h>
# include "config.h"
#endif
+/* Specification. */
#include "pipe.h"
#include <errno.h>
# include "config.h"
#endif
+/* Specification. */
#include "pipe.h"
#include <errno.h>
# include "config.h"
#endif
+/* Specification. */
+#include "progname.h"
+
#include <stdio.h>
#include <string.h>
-#include "progname.h"
-
/* String containing name the program is called with.
To be initialized by main(). */
# include <config.h>
#endif
+/* Specification. */
+#include "safe-read.h"
+
#include <sys/types.h>
#if HAVE_UNISTD_H
extern int errno;
#endif
-#include "safe-read.h"
-
/* Read LEN bytes at PTR from descriptor DESC, retrying if interrupted.
Return the actual number of bytes read, zero for EOF, or negative
for an error. */
# include "config.h"
#endif
+/* Specification. */
+#include "wait-process.h"
+
#include <errno.h>
#include <stdlib.h>
# endif
#endif
-#include "wait-process.h"
#include "error.h"
#include "libgettext.h"
#ifndef _WAIT_PROCESS_H
#define _WAIT_PROCESS_H
+/* Get pid_t. */
+#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <sys/types.h>
+
/* Wait for a subprocess to finish. Exit if it didn't terminate
correctly. Otherwise return its exit code. */
extern int wait_subprocess PARAMS ((pid_t child, const char *progname));
# include "config.h"
#endif
+/* Specification. */
+#include "xerror.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "xerror.h"
#include "error.h"
#include "progname.h"
#include "mbswidth.h"
+2001-09-08 Bruno Haible <haible@clisp.cons.org>
+
+ * dir-list.c: Include specification header before all other headers.
+ * file-list.c: Likewise.
+ * message.c: Likewise.
+ * msgl-cat.c: Likewise.
+ * msgl-charset.c: Likewise.
+ * msgl-iconv.c: Likewise.
+ * open-po.c: Likewise.
+ * po.c: Likewise.
+ * po-gram-gen.y: Likewise.
+ * po-hash-gen.y: Likewise.
+ * po-lex.c: Likewise.
+ * read-po.c: Likewise.
+ * str-list.c: Likewise.
+ * write-mo.c: Likewise.
+ * write-po.c: Likewise.
+ * msgfmt.h: Don't include message.h.
+ * open-po.h: Include <stdio.h>, for FILE.
+ * write-mo.h: Include message.h and <stddef.h>.
+
2001-09-21 Tommy Johansson <tommy.johansson@kanalen.org>
* x-java.l (create_char_buf): Fix problem with empty messages.
#include "config.h"
#endif
+/* Specification. */
+#include "dir-list.h"
+
#include <stdlib.h>
#include "system.h"
-#include "dir-list.h"
#include "str-list.h"
static string_list_ty *directory /* = NULL */;
# include "config.h"
#endif
+/* Specification. */
+#include "file-list.h"
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "file-list.h"
#include "str-list.h"
#include "error.h"
#include "getline.h"
# include <config.h>
#endif
+/* Specification. */
#include "format.h"
/* Table of all format string parsers. */
# include <config.h>
#endif
+/* Specification. */
+#include "message.h"
+
#include <stdlib.h>
#include <string.h>
#include "fstrcmp.h"
-#include "message.h"
#include "system.h"
-/* msgfmt specific message representation
+/* msgfmt specifics
Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
#ifndef _MSGFMT_H
#define _MSGFMT_H
-#include "message.h"
-
/* Be more verbose. Use only 'fprintf' and 'multiline_warning' but not
'error' or 'multiline_error' to emit verbosity messages, because 'error'
and 'multiline_error' during PO file parsing cause the program to exit
# include "config.h"
#endif
+/* Specification. */
#include "msgl-ascii.h"
+
#include "c-ctype.h"
# include "config.h"
#endif
+/* Specification. */
+#include "msgl-cat.h"
+
#include <stdlib.h>
-#include "msgl-cat.h"
#include "error.h"
#include "xerror.h"
#include "message.h"
# include "config.h"
#endif
+/* Specification. */
+#include "msgl-charset.h"
+
#include <stdlib.h>
#include <string.h>
#include "po-charset.h"
-#include "msgl-charset.h"
#include "error.h"
#include "progname.h"
#include "xerror.h"
# include "config.h"
#endif
+/* Specification. */
+#include "msgl-iconv.h"
+
#include <errno.h>
#include <stdlib.h>
# include <iconv.h>
#endif
-#include "msgl-iconv.h"
#include "error.h"
#include "progname.h"
#include "message.h"
# include <config.h>
#endif
+/* Specification. */
+#include "open-po.h"
+
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
-#include "open-po.h"
#include "dir-list.h"
#include "error.h"
#include "system.h"
#ifndef _OPEN_PO_H
#define _OPEN_PO_H
+#include <stdio.h>
+
/* Open the input file with the name INPUT_NAME. The ending .po is added
if necessary. If INPUT_NAME is not an absolute file name and the file is
not found, the list of directories in "dir-list.h" is searched. The
# include "config.h"
#endif
+/* Specification. */
#include "po-charset.h"
+
#include "error.h"
#include "xerror.h"
#include "system.h"
# include "config.h"
#endif
+/* Specification. */
+#include "po-gram.h"
+
#include <stdio.h>
#include "str-list.h"
#include "po-lex.h"
-#include "po-gram.h"
#include "error.h"
#include "system.h"
#include "libgettext.h"
# include "config.h"
#endif
+/* Specification. */
+#include "po-hash.h"
+
#include <stdio.h>
-#include <system.h>
-#include "po-hash.h"
+#include "system.h"
#include "po.h"
/* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc),
# include "config.h"
#endif
+/* Specification. */
+#include "po-lex.h"
+
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include "str-list.h"
#include "po-charset.h"
-#include "po-lex.h"
#include "system.h"
#include "error.h"
#include "open-po.h"
# include "config.h"
#endif
+/* Specification. */
+#include "po.h"
+
#include <stdlib.h>
-#include "po.h"
#include "po-charset.h"
#include "po-hash.h"
#include "system.h"
# include <config.h>
#endif
+/* Specification. */
#include "read-mo.h"
#include <errno.h>
# include <config.h>
#endif
+/* Specification. */
+#include "read-po.h"
+
#include <stdlib.h>
#include <string.h>
#include "po.h"
-#include "read-po.h"
#include "system.h"
#include "libgettext.h"
# include "config.h"
#endif
+/* Specification. */
+#include "str-list.h"
+
#include <stdio.h>
#include "system.h"
-#include "str-list.h"
/* Initialize an empty list of strings. */
# include <config.h>
#endif
+/* Specification. */
+#include "write-mo.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "write-mo.h"
#include "msgfmt.h"
/* These two include files describe the binary .mo format. */
#ifndef _WRITE_MO_H
#define _WRITE_MO_H
+#include <stddef.h>
#include <stdbool.h>
-#include "msgfmt.h"
+#include "message.h"
/* Alignment of strings in resulting .mo file. */
extern size_t alignment;
# include <config.h>
#endif
+/* Specification. */
+#include "write-po.h"
+
#include <errno.h>
#include <limits.h>
#include <stdio.h>
# include <iconv.h>
#endif
-#include "write-po.h"
#include "c-ctype.h"
#include "linebreak.h"
#include "msgl-ascii.h"