+2006-10-29 Bruno Haible <bruno@clisp.org>
+
+ * x-awk.h: Make includable without prerequisites.
+ * x-c.h: Likewise.
+ * x-csharp.h: Likewise.
+ * x-elisp.h: Likewise.
+ * x-glade.h: Likewise.
+ * x-java.h: Likewise.
+ * x-librep.h: Likewise.
+ * x-lisp.h: Likewise.
+ * x-perl.h: Likewise.
+ * x-php.h: Likewise.
+ * x-po.h: Likewise.
+ * x-properties.h: Likewise.
+ * x-python.h: Likewise.
+ * x-rst.h: Likewise.
+ * x-scheme.h: Likewise.
+ * x-sh.h: Likewise.
+ * x-smalltalk.h: Likewise.
+ * x-stringtable.h: Likewise.
+ * x-tcl.h: Likewise.
+ * x-ycp.h: Likewise.
+ * x-awk.c: Include x-awk.h.
+ * x-c.c: Include x-c.h.
+ * x-csharp.c: Include x-csharp.h.
+ * x-elisp.c: Include x-elisp.h.
+ * x-glade.c: Include x-glade.h.
+ * x-java.c: Include x-java.h.
+ * x-librep.c: Include x-librep.h.
+ * x-lisp.c: Include x-lisp.h.
+ * x-perl.c: Include x-perl.h.
+ * x-php.c: Include x-php.h.
+ * x-po.c: Include x-po.h, x-properties.h, x-stringtable.h.
+ * x-python.c: Include x-python.h.
+ * x-rst.c: Include x-rst.h.
+ * x-scheme.c: Include x-scheme.h.
+ * x-sh.c: Include x-sh.h.
+ * x-smalltalk.c: Include x-smalltalk.h.
+ * x-tcl.c: Include x-tcl.h.
+ * x-ycp.c: Include x-ycp.h.
+ * xgettext.c: Remove extern "C" around x-*.h includes.
+
2006-10-29 Bruno Haible <bruno@clisp.org>
* format-awk.c (format_parse): Fix bug with unnumbered argument in
# include "config.h"
#endif
+/* Specification. */
+#include "x-awk.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext awk backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2002.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_AWK \
{ "awk", "awk" }, \
extern void x_awk_extract_all (void);
extern void init_flag_table_awk (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-c.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext C/C++/ObjectiveC backend.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_C \
{ "c", "C" }, \
{ "h", "C" }, \
extern void init_flag_table_c (void);
extern void init_flag_table_objc (void);
extern void init_flag_table_gcc_internal (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-csharp.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext C# backend.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_CSHARP \
{ "cs", "C#" }, \
extern void x_csharp_extract_all (void);
extern void init_flag_table_csharp (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-elisp.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext Emacs Lisp backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2002.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_ELISP \
{ "el", "EmacsLisp" }, \
extern void x_elisp_keyword (const char *name);
extern void init_flag_table_elisp (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-glade.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext glade backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2002.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_GLADE \
{ "glade", "glade" }, \
{ "glade2", "glade" }, \
extern void x_glade_extract_all (void);
extern void x_glade_keyword (const char *name);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-java.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext Java backend.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
Written by Tommy Johansson <tommy.johansson@kanalen.org>, 2001.
This program is free software; you can redistribute it and/or modify
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_JAVA \
{ "java", "Java" }, \
extern void x_java_extract_all (void);
extern void init_flag_table_java (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-librep.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext librep backend.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_LIBREP \
{ "jl", "librep" }, \
extern void x_librep_keyword (const char *name);
extern void init_flag_table_librep (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-lisp.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext Lisp backend.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_LISP \
{ "lisp", "Lisp" }, \
extern void x_lisp_keyword (const char *name);
extern void init_flag_table_lisp (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-perl.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext Perl backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
Written by Guido Flohr <guido@imperia.net>, 2002-2003
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_PERL \
{ "pl", "perl" }, \
{ "PL", "perl" }, \
extern void x_perl_extract_all (void);
extern void init_flag_table_perl (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-php.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext PHP backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_PHP \
{ "php", "PHP" }, \
{ "php3", "PHP" }, \
extern void x_php_extract_all (void);
extern void init_flag_table_php (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include <config.h>
#endif
+/* Specification. */
+#include "x-po.h"
+#include "x-properties.h"
+#include "x-stringtable.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
/* xgettext PO backend.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_PO \
{ "po", "PO" }, \
{ "pot", "PO" }, \
const char *logical_filename,
flag_context_list_table_ty *flag_table,
msgdomain_list_ty *mdlp);
+
+
+#ifdef __cplusplus
+}
+#endif
/* xgettext JavaProperties backend.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_PROPERTIES \
{ "properties", "JavaProperties" }, \
const char *logical_filename,
flag_context_list_table_ty *flag_table,
msgdomain_list_ty *mdlp);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-python.h"
+
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
/* xgettext Python backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2002.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_PYTHON \
{ "py", "Python" }, \
extern void x_python_extract_all (void);
extern void init_flag_table_python (void);
+
+
+#ifdef __cplusplus
+}
+#endif
/* xgettext RST backend.
- Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2001.
# include "config.h"
#endif
+/* Specification. */
+#include "x-rst.h"
+
#include <errno.h>
#include <stdio.h>
#include <stddef.h>
/* xgettext RST backend.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_RST \
{ "rst", "RST" }, \
const char *logical_filename,
flag_context_list_table_ty *flag_table,
msgdomain_list_ty *mdlp);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-scheme.h"
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
/* xgettext Scheme backend.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2004.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_SCHEME \
{ "scm", "Scheme" }, \
extern void x_scheme_keyword (const char *name);
extern void init_flag_table_scheme (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-sh.h"
+
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
/* xgettext sh backend.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_SH \
{ "sh", "Shell" }, \
{ "bash", "Shell" }, \
extern void x_sh_extract_all (void);
extern void init_flag_table_sh (void);
+
+
+#ifdef __cplusplus
+}
+#endif
/* xgettext Smalltalk backend.
- Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
# include "config.h"
#endif
+/* Specification. */
+#include "x-smalltalk.h"
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
/* xgettext Smalltalk backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2002.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_SMALLTALK \
{ "st", "Smalltalk" }, \
const char *logical_filename,
flag_context_list_table_ty *flag_table,
msgdomain_list_ty *mdlp);
+
+
+#ifdef __cplusplus
+}
+#endif
/* xgettext NXStringTable backend.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_STRINGTABLE \
{ "strings", "NXStringTable" }, \
const char *logical_filename,
flag_context_list_table_ty *flag_table,
msgdomain_list_ty *mdlp);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-tcl.h"
+
#include <assert.h>
#include <errno.h>
#include <limits.h>
/* xgettext Tcl Lisp backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2002.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_TCL \
{ "tcl", "Tcl" }, \
extern void x_tcl_keyword (const char *name);
extern void init_flag_table_tcl (void);
+
+
+#ifdef __cplusplus
+}
+#endif
# include "config.h"
#endif
+/* Specification. */
+#include "x-ycp.h"
+
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
/* xgettext YCP backend.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <stdio.h>
+
+#include "message.h"
+#include "xgettext.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define EXTENSIONS_YCP \
{ "ycp", "YCP" }, \
msgdomain_list_ty *mdlp);
extern void init_flag_table_ycp (void);
+
+
+#ifdef __cplusplus
+}
+#endif
#define _(str) gettext (str)
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include "x-c.h"
#include "x-po.h"
#include "x-sh.h"
#include "x-rst.h"
#include "x-glade.h"
-#ifdef __cplusplus
-}
-#endif
-
/* If nonzero add all comments immediately preceding one of the keywords. */
static bool add_all_comments = false;