reverted bogus and undocumented!!! changes from Jay Cox (98/11/23

Thu Nov 26 03:18:08 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkclist.h:
        * gtk/gtkctree.h:
        * gtk/gtkclist.c:
        * gtk/gtkctree.c: reverted bogus and undocumented!!! changes from
        Jay Cox (98/11/23 13:53:26) which `const' qualified char* arrays.

        * gtk/maketypes.awk: changed underline substitution, so we get
        GTK_TYPE_CTREE_POS instead of the broken GTK_TYPE_C_TREE_POS.
        * gtk/makeenums.pl: likewise.
        * gtk/gtkctree.c: adapted type names accordingly.
This commit is contained in:
Tim Janik
1998-11-26 03:43:24 +00:00
committed by Tim Janik
parent ce073aac7d
commit c7ac3835fa
14 changed files with 123 additions and 32 deletions

View File

@ -199,11 +199,12 @@ while (<>) {
print ")\n";
} else {
($valuename = $enumname) =~ s/([A-Z][a-z])/_$1/g;
$valuename =~ s/([a-z])([A-Z])/$1_$2/g;
$valuename = lc($valuename);
my $valuename = $enumname;
$valuename =~ s/([^A-Z])([A-Z])/$1_$2/g;
$valuename =~ s/([A-Z][A-Z])([A-Z][0-9a-z])/$1_$2/g;
$valuename = lc($valuename);
print "static GtkEnumValue $ {valuename}_values[] = {\n";
print "static GtkEnumValue _${valuename}_values[] = {\n";
for (@entries) {
my ($name,$nick) = @{$_};
print qq( { $name, "$name", "$nick" },\n);