* 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
+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.
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)
}