Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $h = "include/curl/curl.h";
- open H_IN, "-|", "cpp", $h;
- while ( <H_IN> ) {
- if ( /enum\s+(\S+\s+)?{/ .. /}/ ) {
- s/^\s+//;
- next unless /^CURL/;
- chomp;
- s/[,\s].*//;
- print $_ . "\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement