| 278 | |
| 279 | |
| 280 | static void prt_que(const char* string, const srq* que_inst) |
| 281 | { |
| 282 | /************************************** |
| 283 | * |
| 284 | * p r t _ q u e |
| 285 | * |
| 286 | ************************************** |
| 287 | * |
| 288 | * Functional description |
| 289 | * Print the contents of a self-relative que. |
| 290 | * |
| 291 | **************************************/ |
| 292 | SLONG offset = SRQ_REL_PTR(que_inst); |
| 293 | |
| 294 | if (offset == que_inst->srq_forward && offset == que_inst->srq_backward) |
| 295 | printf("%s: *empty*\n", string); |
| 296 | else |
| 297 | printf("%s: forward: %d, backward: %d\n", |
| 298 | string, que_inst->srq_forward, que_inst->srq_backward); |
| 299 | } |