[gtk-doc] scan: apply IGNORE_DECORATORS to variables as well
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] scan: apply IGNORE_DECORATORS to variables as well
- Date: Fri, 31 Jan 2014 22:03:06 +0000 (UTC)
commit 95029aa1493b5eeb62ad6c89db2d6f6ee2642b10
Author: Stefan Sauer <ensonic users sf net>
Date: Fri Jan 31 21:48:30 2014 +0100
scan: apply IGNORE_DECORATORS to variables as well
Fix detecting global exported variables.
gtkdoc-scan.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
index 0128ccd..31ec79a 100755
--- a/gtkdoc-scan.in
+++ b/gtkdoc-scan.in
@@ -545,7 +545,7 @@ sub ScanHeader {
# VARIABLES (extern'ed variables)
- } elsif
(m/^\s*(extern|[A-Za-z_]+VAR)\s+((const\s+|signed\s+|unsigned\s+|long\s+|short\s+)*\w+)(\s+\*+|\*+|\s)\s*(const\s+)*([A-Za-z]\w*)\s*;/)
{
+ } elsif
(m/^\s*(extern|[A-Za-z_]+VAR|${IGNORE_DECORATORS})\s+((const\s+|signed\s+|unsigned\s+|long\s+|short\s+)*\w+)(\s+\*+|\*+|\s)\s*(const\s+)*([A-Za-z]\w*)\s*;/)
{
$symbol = $6;
s/^\s*([A-Za-z_]+VAR)\b/extern/;
$decl = $_;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]