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)) { | |||||
| 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); | ||||
| foreach ($futures->limit(8) as $file => $future) { | foreach ($futures->limit(8) as $file => $future) { | ||||
| $tags = $future->resolve(); | $tags = $future->resolve(); | ||||
| $tags = explode("\n", $tags[1]); | $tags = explode("\n", $tags[1]); | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||