Commit d3c375f5 by Shujing Zhao Committed by Shujing Zhao

exgettext: Handle the functions and the macro definitions that the arguments are broken...

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.

From-SVN: r156168
parent c4d188d5
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> 2010-01-20 Joseph Myers <joseph@codesourcery.com>
* zh_CN.po: Update. * zh_CN.po: Update.
......
...@@ -184,6 +184,18 @@ END { ...@@ -184,6 +184,18 @@ END {
while (getline < file) { while (getline < file) {
if (/^(#[ ]*define[ ]*)?[A-Za-z_].*\(.*msgid[,\)]/) { if (/^(#[ ]*define[ ]*)?[A-Za-z_].*\(.*msgid[,\)]/) {
keyword_option($0) 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/) { } else if (/%e/ || /%n/) {
spec_error_string($0) spec_error_string($0)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment