提交 cc8ce8ee 编写于 作者: C Cole Robinson

build-aux: header-ifdef: Fix typos

Acked-by: NEric Blake <eblake@redhat.com>
Signed-off-by: NCole Robinson <crobinso@redhat.com>
上级 b1886608
...@@ -106,7 +106,7 @@ while (<>) { ...@@ -106,7 +106,7 @@ while (<>) {
} }
} elsif ($state == $STATE_PRIV_START) { } elsif ($state == $STATE_PRIV_START) {
if (/^$/) { if (/^$/) {
&mistake("$file: too many blank lines after coyright header"); &mistake("$file: too many blank lines after copyright header");
} elsif (/#ifndef $ifdefpriv$/) { } elsif (/#ifndef $ifdefpriv$/) {
$state = $STATE_PRIV_ERROR; $state = $STATE_PRIV_ERROR;
} else { } else {
...@@ -116,7 +116,7 @@ while (<>) { ...@@ -116,7 +116,7 @@ while (<>) {
if (/# error ".*"$/) { if (/# error ".*"$/) {
$state = $STATE_PRIV_END; $state = $STATE_PRIV_END;
} else { } else {
&mistake("$file: missing '#error ...priv allow...'"); &mistake("$file: missing '# error ...priv allow...'");
} }
} elsif ($state == $STATE_PRIV_END) { } elsif ($state == $STATE_PRIV_END) {
if (m,#endif /\* $ifdefpriv \*/,) { if (m,#endif /\* $ifdefpriv \*/,) {
...@@ -131,7 +131,7 @@ while (<>) { ...@@ -131,7 +131,7 @@ while (<>) {
$state = $STATE_GUARD_START; $state = $STATE_GUARD_START;
} elsif ($state == $STATE_GUARD_START) { } elsif ($state == $STATE_GUARD_START) {
if (/^$/) { if (/^$/) {
&mistake("$file: too many blank lines after coyright header"); &mistake("$file: too many blank lines after copyright header");
} elsif (/#ifndef $ifdef$/) { } elsif (/#ifndef $ifdef$/) {
$state = $STATE_GUARD_DEFINE; $state = $STATE_GUARD_DEFINE;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册