Commit 41385745 authored by Matthias Clasen's avatar Matthias Clasen

Revert "mkenums: Support public/private trigraph"

This reverts commit 9ba17d51.

This conflicts with the python port in the meson branch.
parent 9aa98db4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment