Lines Matching refs:x
1198 my $x = shift;
1201 …if ($x =~ /(struct|union)\s+(\w+)\s*\{(.*)\}(\s*(__packed|__aligned|____cacheline_aligned_in_smp|_…
1376 my $x = shift;
1381 $x =~ s@/\*.*?\*/@@gos; # strip comments.
1383 $x =~ s@#\s*((define|ifdef)\s+|endif)[^;]*;@@gos;
1385 if ($x =~ /typedef\s+enum\s*\{(.*)\}\s*(\w*)\s*;/) {
1388 } elsif ($x =~ /enum\s+(\w*)\s*\{(.*)\}/) {
1442 my $x = shift;
1445 $x =~ s@/\*.*?\*/@@gos; # strip comments.
1448 if ($x =~ $typedef1 || $x =~ $typedef2) {
1472 while (($x =~ /\(*.\)\s*;$/) || ($x =~ /\[*.\]\s*;$/)) {
1473 $x =~ s/\(*.\)\s*;$/;/;
1474 $x =~ s/\[*.\]\s*;$/;/;
1477 if ($x =~ /typedef.*\s+(\w+)\s*;/) {
1921 my $x = shift;
1924 $x =~ s@\/\/.*$@@gos; # strip C99-style comments to end of line
1926 if ($x =~ m#\s*/\*\s+MACDOC\s*#io || ($x =~ /^#/ && $x !~ /^#\s*define/)) {
1929 elsif ($x =~ /([^\{]*)/) {
1933 if (($x =~ /\{/) || ($x =~ /\#\s*define/) || ($x =~ /;/)) {
1956 my $x = shift;
1959 $x =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1960 $x =~ s@^\s+@@gos; # strip leading spaces
1961 $x =~ s@\s+$@@gos; # strip trailing spaces
1962 $x =~ s@\/\/.*$@@gos; # strip C99-style comments to end of line
1964 if ($x =~ /^#/) {
1966 $x .= ";";
1970 if ( $x =~ /([^\{\};]*)([\{\};])(.*)/ ) {
1982 $x = $3;
1984 $prototype .= $x;