From: Bruno Haible Date: Mon, 19 Mar 2001 14:00:56 +0000 (+0000) Subject: Recognize other usual C++ file extensions. X-Git-Tag: v0.10.36~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef75ca8e8d99a38f746dcbf4c74bb5bc0d705546;p=thirdparty%2Fgettext.git Recognize other usual C++ file extensions. --- diff --git a/src/ChangeLog b/src/ChangeLog index 802aa4f57..29f40a49a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2001-03-19 Bruno Haible + + * xgettext.c (extension_to_language): Recognize "*.cpp" and "*.hpp" as + being C++. + Patch by Dennis Bjorklund . + 2001-03-11 Bruno Haible * gettext.c: Force inclusion of libgnuintl.h. On Solaris, diff --git a/src/xgettext.c b/src/xgettext.c index 97c6ce358..5bf5897c4 100644 --- a/src/xgettext.c +++ b/src/xgettext.c @@ -1453,11 +1453,13 @@ extension_to_language (extension) { "c++", "C++", }, { "cc", "C++", }, { "cxx", "C++", }, + { "cpp", "C++", }, { "h", "C", }, + { "hpp", "C++", }, { "po", "PO", }, { "pot", "PO", }, { "pox", "PO", }, - /* Here will follow more file extensions: sh, pl, tcl ... */ + /* Here will follow more file extensions: sh, pl, tcl, lisp ... */ }; table_ty *tp;