| 905 | } |
| 906 | |
| 907 | static p_ply_property ply_find_property(p_ply_element element, |
| 908 | const char *name) { |
| 909 | p_ply_property property; |
| 910 | int i, nproperties; |
| 911 | assert(element && name); |
| 912 | property = element->property; |
| 913 | nproperties = element->nproperties; |
| 914 | assert(property || nproperties == 0); |
| 915 | assert(!property || nproperties > 0); |
| 916 | for (i = 0; i < nproperties; i++) |
| 917 | if (!strcmp(property[i].name, name)) return &property[i]; |
| 918 | return NULL; |
| 919 | } |
| 920 | |
| 921 | static int ply_check_word(p_ply ply) { |
| 922 | size_t size = strlen(BWORD(ply)); |