mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-08 07:53:17 +02:00
2004-11-12 Mike Kestner <mkestner@novell.com>
* parser/gapi_pp.pl : fix multi-line extern parsing. svn path=/trunk/gtk-sharp/; revision=36086
This commit is contained in:
parent
314419c926
commit
220caaa929
@ -1,3 +1,7 @@
|
||||
2004-11-12 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* parser/gapi_pp.pl : fix multi-line extern parsing.
|
||||
|
||||
2004-11-12 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* parser/gapi_pp.pl : fix a struct parsing bug.
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
# Copyright (c) 2001 Mike Kestner
|
||||
# Copyright (c) 2003 Martin Willemoes Hansen
|
||||
# Copyright (c) 2003 Novell, Inc.
|
||||
# Copyright (c) 2003-2004 Novell, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of version 2 of the GNU General Public
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
$private_regex = "^#if.*(ENABLE_BACKEND|ENABLE_ENGINE)";
|
||||
$eatit_regex = "^#if.*(__cplusplus|DEBUG|DISABLE_COMPAT|ENABLE_BROKEN)";
|
||||
$ignoreit_regex = '^\s+\*|#ident|#\s*include|#\s*else|#\s*undef|G_(BEGIN|END)_DECLS|extern|GDKVAR|GTKVAR|GTKMAIN_C_VAR|GTKTYPEUTILS_VAR|VARIABLE|GTKTYPEBUILTIN';
|
||||
$ignoreit_regex = '^\s+\*|#ident|#\s*include|#\s*else|#\s*undef|G_(BEGIN|END)_DECLS|GDKVAR|GTKVAR|GTKMAIN_C_VAR|GTKTYPEUTILS_VAR|VARIABLE|GTKTYPEBUILTIN';
|
||||
|
||||
foreach $arg (@ARGV) {
|
||||
if (-d $arg && -e $arg) {
|
||||
@ -79,6 +79,8 @@ foreach $fname (@hdrs) {
|
||||
}
|
||||
} elsif ($line =~ /^\s*\/\*/) {
|
||||
while ($line !~ /\*\//) {$line = <INFILE>;}
|
||||
} elsif ($line =~ /^extern/) {
|
||||
while ($line !~ /;/) {$line = <INFILE>;}
|
||||
} elsif ($line =~ /$private_regex/) {
|
||||
$nested = 0;
|
||||
while ($line = <INFILE>) {
|
||||
|
Loading…
Reference in New Issue
Block a user