Example #1
0
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);
    }
}
Example #2
0
void weedSCHEMA(SCHEMA* s)
{
    if(s == NULL) return;
    if(s->next != NULL)
    {
        weedSCHEMA(s->next);
    }
    weedID(s->id);
    weedFIELD(s->field);
}
Example #3
0
int test_weed_void_var_in_schema(void)
{
    SCHEMA *void_schema = makeSCHEMA("empty", makeVARIABLE(makeTYPEvoid(), "var"));
    return !weedSCHEMA(void_schema);
}