Changeset View
Changeset View
Standalone View
Standalone View
scripts/symbols/generate_ctags_symbols.php
Show All 33 Lines | if (posix_isatty(STDIN)) { | ||||
exit(1); | exit(1); | ||||
} | } | ||||
$input = file_get_contents('php://stdin'); | $input = file_get_contents('php://stdin'); | ||||
$data = array(); | $data = array(); | ||||
$futures = array(); | $futures = array(); | ||||
foreach (explode("\n", trim($input)) as $file) { | foreach (explode("\n", trim($input)) as $file) { | ||||
if (!strlen($file)) { | if (!phutil_nonempty_string($file)) { | ||||
continue; | continue; | ||||
} | } | ||||
$file = Filesystem::readablePath($file); | $file = Filesystem::readablePath($file); | ||||
$futures[$file] = ctags_get_parser_future($file); | $futures[$file] = ctags_get_parser_future($file); | ||||
} | } | ||||
$futures = new FutureIterator($futures); | $futures = new FutureIterator($futures); | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0