void weedSERVICE(SERVICE* s) { if(s == NULL) return; weedError = 0; if(s->html != NULL) { weedHTML(s->html); } if(s->schema != NULL) { weedSCHEMA(s->schema); } if(s->variable != NULL) { weedVARIABLE(s->variable); } if(s->function != NULL) { weedFUNCTION(s->function); } if(s->session != NULL) { weedSESSION(s->session); } }
void weedSCHEMA(SCHEMA* s) { if(s == NULL) return; if(s->next != NULL) { weedSCHEMA(s->next); } weedID(s->id); weedFIELD(s->field); }
int test_weed_void_var_in_schema(void) { SCHEMA *void_schema = makeSCHEMA("empty", makeVARIABLE(makeTYPEvoid(), "var")); return !weedSCHEMA(void_schema); }