| 221 | |
| 222 | |
| 223 | CompilerScratch::csb_repeat* CMP_csb_element(CompilerScratch* csb, StreamType element) |
| 224 | { |
| 225 | /************************************** |
| 226 | * |
| 227 | * C M P _ c s b _ e l e m e n t |
| 228 | * |
| 229 | ************************************** |
| 230 | * |
| 231 | * Functional description |
| 232 | * Find tail element of compiler scratch block. If the csb isn't big |
| 233 | * enough, extend it. |
| 234 | * |
| 235 | **************************************/ |
| 236 | DEV_BLKCHK(csb, type_csb); |
| 237 | CompilerScratch::csb_repeat empty_item; |
| 238 | while (element >= csb->csb_rpt.getCount()) { |
| 239 | csb->csb_rpt.add(empty_item); |
| 240 | } |
| 241 | return &csb->csb_rpt[element]; |
| 242 | } |
| 243 | |
| 244 | |
| 245 | const Format* CMP_format(thread_db* tdbb, CompilerScratch* csb, StreamType stream) |
no test coverage detected