mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Revert "mkenums: Support public/private trigraph"
This reverts commit 9ba17d511e
.
This conflicts with the python port in the meson branch.
This commit is contained in:
parent
9aa98db404
commit
41385745e7
@ -19,7 +19,6 @@ my $option_lowercase_name; # DEPRECATED. A lower case name to use as part
|
||||
# uses abnormal capitalization and we can not
|
||||
# guess where to put the underscores.
|
||||
my $seenbitshift; # Have we seen bitshift operators?
|
||||
my $seenprivate; # Have we seen a private option?
|
||||
my $enum_prefix; # Prefix for this enumeration
|
||||
my $enumname; # Name for this enumeration
|
||||
my $enumshort; # $enumname without prefix
|
||||
@ -116,8 +115,6 @@ sub parse_entries {
|
||||
$seenbitshift = 1;
|
||||
}
|
||||
|
||||
next if $seenprivate;
|
||||
|
||||
if (defined $options) {
|
||||
my %options = parse_trigraph($options);
|
||||
if (!defined $options{skip}) {
|
||||
@ -128,21 +125,6 @@ sub parse_entries {
|
||||
}
|
||||
} elsif (m@^\s*\#@) {
|
||||
# ignore preprocessor directives
|
||||
} elsif (m@^\s*
|
||||
/\*< (([^*]|\*(?!/))*) >\s*\*/
|
||||
\s*$
|
||||
@x) {
|
||||
my ($options) = ($1);
|
||||
|
||||
if (defined $options) {
|
||||
my %options = parse_trigraph($options);
|
||||
if (defined $options{private}) {
|
||||
$seenprivate = 1;
|
||||
}
|
||||
elsif (defined $options{public}) {
|
||||
$seenprivate = 0;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
print STDERR "$0: $file_name:$.: Failed to parse `$_'\n";
|
||||
}
|
||||
@ -371,7 +353,6 @@ while (<>) {
|
||||
}
|
||||
|
||||
$seenbitshift = 0;
|
||||
$seenprivate = 0;
|
||||
@entries = ();
|
||||
|
||||
# Now parse the entries
|
||||
|
Loading…
Reference in New Issue
Block a user