OSDN Git Service

2010-01-22 Shujing Zhao <pearly.zhao@oracle.com>
authorpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Jan 2010 02:50:44 +0000 (02:50 +0000)
committerpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Jan 2010 02:50:44 +0000 (02:50 +0000)
        * exgettext: Handle the functions and the macro definitions that the
        arguments are broken into more than one line.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156168 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/po/ChangeLog
gcc/po/exgettext

index 3e0cf42..ccab0c2 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-22  Shujing Zhao  <pearly.zhao@oracle.com>
+
+       * exgettext: Handle the functions and the macro definitions that the
+       arguments are broken into more than one line.
+
 2010-01-20  Joseph Myers  <joseph@codesourcery.com>
 
        * zh_CN.po: Update.
index 7ff3799..35f81a7 100644 (file)
@@ -184,6 +184,18 @@ END {
        while (getline < file) {
            if (/^(#[   ]*define[       ]*)?[A-Za-z_].*\(.*msgid[,\)]/) {
                keyword_option($0)
+           } else if (/^(#[   ]*define[       ]*)?[A-Za-z_].*(\(|\(.*,)$/) {
+               name_line = $0
+               while (getline < file) {
+                 lineno++
+                 if (/msgid[,\)]/){
+                   keyword_option(name_line $0)
+                   break
+                 } else if (/,$/) {
+                     name_line = name_line $0
+                     continue
+                 } else break
+               }
            } else if (/%e/ || /%n/) {
                spec_error_string($0)
            }