| 1869 | |
| 1870 | |
| 1871 | static Capture *findopen (Capture *cap) { |
| 1872 | int n = 0; |
| 1873 | for (;;) { |
| 1874 | cap--; |
| 1875 | if (isclosecap(cap)) n++; |
| 1876 | else if (!isfullcap(cap)) |
| 1877 | if (n-- == 0) return cap; |
| 1878 | } |
| 1879 | } |
| 1880 | |
| 1881 | |
| 1882 | static Capture *nextcap (Capture *cap) { |
no outgoing calls
no test coverage detected