---------------------------------------------------------------------- * Query support functions * ---------------------------------------------------------------------- */
| 695 | * Query support functions |
| 696 | * ---------------------------------------------------------------------- */ |
| 697 | p_ply_element ply_get_next_element(p_ply ply, |
| 698 | p_ply_element last) { |
| 699 | assert(ply); |
| 700 | if (!last) return ply->element; |
| 701 | last++; |
| 702 | if (last < ply->element + ply->nelements) return last; |
| 703 | else return NULL; |
| 704 | } |
| 705 | |
| 706 | int ply_get_element_info(p_ply_element element, const char** name, |
| 707 | long *ninstances) { |