src/libmetha/utable.c
M_CODE
lm_ulist_init(ulist_t *ul, unsigned int allocsz)
{
    int x;

    if (allocsz) {
        if (!(ul->row = malloc(allocsz*sizeof(url_t))))
            return M_OUT_OF_MEM;
        for (x=0; x<allocsz; x++)
            lm_url_init(&ul->row[x]);
    }

    ul->cap = allocsz;
    ul->sz = 0;
    ul->private = 0;

    return M_OK;
}
/** 
 * Put ulist_t-related functions below this line
 * --------------------------------------------------------
 **/
Put ulist_t-related functions below this line
Put ulist_t - related functions below this line
M_CODE
lm_ulist_init(ulist_t *ul, unsigned int allocsz)
{
    int x;
    if (allocsz) {
        if (!(ul->row = malloc(allocsz*sizeof(url_t))))
            return M_OUT_OF_MEM;
        for (x=0; x<allocsz; x++)
            lm_url_init(&ul->row[x]);
    }
    ul->cap = allocsz;
    ul->sz = 0;
    ul->private = 0;
    return M_OK;
}
M_CODE lm_ulist_init ( ulist_t * ul , unsigned int allocsz ) { int x ; if ( allocsz ) { if ( ! ( ul -> row = malloc ( allocsz * sizeof ( url_t ) ) ) ) return M_OUT_OF_MEM ; for ( x = 0 ; x < allocsz ; x ++ ) lm_url_init ( & ul -> row [ x ] ) ; } ul -> cap = allocsz ; ul -> sz = 0 ; ul -> private = 0 ; return M_OK ; }
Put ulist_t-related functions below this line
Put ulist_t - related functions below this line