Lines Matching refs:x
1794 my $x = shift;
1798 if ($x =~ /(struct|union)\s+(\w+)\s*{(.*)}/) {
1843 my $x = shift;
1846 $x =~ s@/\*.*?\*/@@gos; # strip comments.
1847 $x =~ s/^#\s*define\s+.*$//; # strip #define macros inside enums
1849 if ($x =~ /enum\s+(\w+)\s*{(.*)}/) {
1882 my $x = shift;
1885 $x =~ s@/\*.*?\*/@@gos; # strip comments.
1888 if ($x =~ /typedef\s+(\w+)\s*\(\*\s*(\w\S+)\s*\)\s*\((.*)\);/) {
1911 while (($x =~ /\(*.\)\s*;$/) || ($x =~ /\[*.\]\s*;$/)) {
1912 $x =~ s/\(*.\)\s*;$/;/;
1913 $x =~ s/\[*.\]\s*;$/;/;
1916 if ($x =~ /typedef.*\s+(\w+)\s*;/) {
2335 my $x = shift;
2338 $x =~ s@\/\/.*$@@gos; # strip C99-style comments to end of line
2340 if ($x =~ m#\s*/\*\s+MACDOC\s*#io || ($x =~ /^#/ && $x !~ /^#\s*define/)) {
2343 elsif ($x =~ /([^\{]*)/) {
2347 if (($x =~ /\{/) || ($x =~ /\#\s*define/) || ($x =~ /;/)) {
2365 my $x = shift;
2368 $x =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
2369 $x =~ s@^\s+@@gos; # strip leading spaces
2370 $x =~ s@\s+$@@gos; # strip trailing spaces
2371 $x =~ s@\/\/.*$@@gos; # strip C99-style comments to end of line
2373 if ($x =~ /^#/) {
2375 $x .= ";";
2379 if ( $x =~ /([^{};]*)([{};])(.*)/ ) {
2388 $x = $3;
2390 $prototype .= $x;