2002-07-08 Mike Kestner <mkestner@speakeasy.net>

* glue/Makefile.in : s/BASE_SOURCES/BASESOURCES
	* parser/gapi_pp.pl : handle nested #if/#endif in ignored #if's
	* parser/makefile : make gtkapi.xml depend on gapi*.pl

svn path=/trunk/gtk-sharp/; revision=5649
This commit is contained in:
Mike Kestner 2002-07-08 14:52:20 +00:00
parent 0fb0f3c54a
commit a31a206d61
5 changed files with 2199 additions and 4387 deletions

View File

@ -1,3 +1,9 @@
2002-07-08 Mike Kestner <mkestner@speakeasy.net>
* glue/Makefile.in : s/BASE_SOURCES/BASESOURCES
* parser/gapi_pp.pl : handle nested #if/#endif in ignored #if's
* parser/makefile : make gtkapi.xml depend on gapi*.pl
2002-07-06 Rachel Hestilow <hestilow@ximian.com>
* generator/Parameters.cs (Initialize): Initialize error

File diff suppressed because it is too large Load Diff

View File

@ -1,22 +1,21 @@
lib_LTLIBRARIES = libgtksharpglue.la
BASE_SOURCES = \
BASESOURCES = \
value.c \
textiter.c \
fileselection.c \
error.c \
event.c \
slist.c \
#
slist.c
if ENABLE_GNOME
libgtksharpglue_la_SOURCES = \
$(BASE_SOURCES) \
$(BASESOURCES) \
program.c \
#
else
libgtksharpglue_la_SOURCES = \
$(BASE_SOURCES)
$(BASESOURCES)
endif
INCLUDES = @BASE_DEPENDENCIES_CFLAGS@ -I$(top_srcdir)

View File

@ -51,7 +51,15 @@ foreach $fname (@hdrs) {
} elsif ($line =~ /^#ifndef\s+\w+_H_*\b/) {
while ($line !~ /#define/) {$line = <INFILE>;}
} elsif ($line =~ /$eatit_regex/) {
while ($line !~ /#else|#endif/) {$line = <INFILE>;}
$nested = 0;
while ($line = <INFILE>) {
last if (!$nested && ($line =~ /#else|#endif/));
if ($line =~ /#if/) {
$nested++;
} elsif ($line =~ /#endif/) {
$nested--
}
}
} elsif ($line =~ /^#\s*ifn?\s*\!?def/) {
#warn "Ignored #if:\n$line";
} elsif ($line =~ /typedef\s+struct\s+\w*\s*\{/) {

View File

@ -6,5 +6,5 @@ generated-stamp: formatXml gtkapi.xml
formatXml: formatXml.c
cc -o formatXml formatXml.c `pkg-config --cflags --libs libxml-2.0 glib-2.0`
gtkapi.xml: build.pl
gtkapi.xml: build.pl gapi_pp.pl gapi2xml.pl
./build.pl