| 1131 | } |
| 1132 | |
| 1133 | PB_API void pb_free(pb_State *S) { |
| 1134 | const pb_TypeEntry *te = NULL; |
| 1135 | if (S == NULL) return; |
| 1136 | while (pb_nextentry(&S->types, (const pb_Entry**)&te)) |
| 1137 | if (te->value != NULL) pb_deltype(S, te->value); |
| 1138 | pb_freetable(&S->types); |
| 1139 | pb_freepool(&S->typepool); |
| 1140 | pb_freepool(&S->fieldpool); |
| 1141 | pbN_free(S); |
| 1142 | } |
| 1143 | |
| 1144 | PB_API const pb_Type *pb_type(const pb_State *S, const pb_Name *tname) { |
| 1145 | pb_TypeEntry *te = NULL; |
no test coverage detected