Re: segfault in glib-mkenums
- From: Max Horn <max quendi de>
- To: Gtk Developers <gtk-devel-list gnome org>
- Subject: Re: segfault in glib-mkenums
- Date: Sat, 15 Sep 2001 00:59:18 +0200
A work around for the crash in glib-mkenums, that I believe should
work on other OSes, too, and will even speed up glib-mkenums a bit is
to change the three occurences of
while (m@/\*([^*]|\*[^/*])*\**$ x) {
my $new;
defined ($new = <>) || die "Unmatched comment in $ARGV";
$_ .= $new;
}
to
while (m@/\*([^*]|\*[^/*])*\**$ x) {
my $new;
defined ($new = <>) || die "Unmatched comment in $ARGV";
next unless ($new =~ m \*/$@);
$_ .= $new;
}
This will skip intermediate lines in multi-line comments. Unless
there is a flaw with this that I overlooked, it would be cool if it
could be added to glib-mkenums in CVS! Thanks.
Now the next error I get is this:
[localhost:foreign/gtk+/gtk] maxhorn% make
cd . \
&& LC_ALL=C awk -f maketypes.awk gtk.defs macros > xgen-gtbh \
&& (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h) \
&& rm -f xgen-gtbh \
&& echo timestamp > stamp-gtktypebuiltins.h
awk: illegal primary in regular expression ).* at .*
source line number 136
context is
sub ("\).*", "", >>> tmp_var2) <<< ;
make: *** [stamp-gtktypebuiltins.h] Error 2
Well, I guess I should install gawk now :)
Max
--
-----------------------------------------------
Max Horn
Software Developer
email: <mailto:max quendi de>
phone: (+49) 6151-494890
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]