]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Recognize other usual C++ file extensions.
authorBruno Haible <bruno@clisp.org>
Mon, 19 Mar 2001 14:00:56 +0000 (14:00 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 19 Mar 2001 14:00:56 +0000 (14:00 +0000)
src/ChangeLog
src/xgettext.c

index 802aa4f5734b877dbc6558bb938dc87aca36da2f..29f40a49ae7198c8671178e2e3ac8ff2ab197872 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-19  Bruno Haible  <haible@clisp.cons.org>
+
+       * xgettext.c (extension_to_language): Recognize "*.cpp" and "*.hpp" as
+       being C++.
+       Patch by Dennis Bjorklund <db@zigo.dhs.org>.
+
 2001-03-11  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext.c: Force inclusion of libgnuintl.h. On Solaris, <locale.h>
index 97c6ce358458037fdba7f0b4814d0a71456d919f..5bf5897c4eb9d1d4dfef9f4009e954a01b3b6536 100644 (file)
@@ -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;