mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
24 lines
452 B
PHP
24 lines
452 B
PHP
<?php
|
|
|
|
$source = "php://stdin";
|
|
if (isset($argv[1])) {
|
|
$source = $argv[1];
|
|
}
|
|
|
|
$input_lines = file($source);
|
|
foreach ($input_lines as $line) {
|
|
// Strip AWS_EXTERN_C_BEGIN/END
|
|
if (preg_match('/AWS_EXTERN_C/', $line)) {
|
|
continue;
|
|
}
|
|
|
|
// Strip macros/includes
|
|
if (preg_match('/^#/', $line)) {
|
|
continue;
|
|
}
|
|
|
|
// Strip visibility attributes
|
|
$line = str_replace('AWS_CRT_API ', '', $line);
|
|
|
|
echo($line);
|
|
}
|