Logo Search packages:      
Sourcecode: t1utils version File versions  Download package

void Clp_DeleteParser ( Clp_Parser clp  ) 

Destroy a Clp_Parser object.

Parameters:
clp the parser
All memory associated with clp is freed.

Definition at line 544 of file clp.c.

References Clp_Parser::internal.

{
    int i;
    Clp_Internal *cli;
    if (!clp)
      return;

    cli = clp->internal;

    /* get rid of any string list types */
    for (i = 0; i < cli->nvaltype; i++)
      if (cli->valtype[i].func == parse_string_list) {
          Clp_StringList *clsl = (Clp_StringList *)cli->valtype[i].user_data;
          free(clsl->items);
          free(clsl->iopt);
          free(clsl);
      }

    free(cli->valtype);
    free(cli->iopt);
    free(cli);
    free(clp);
}


Generated by  Doxygen 1.6.0   Back to index