for (alloclen = 8; alloclen < sizeof(long) + sizeof(*gstr) + len;
alloclen *= 2);
- gstr = (gc_string *) zmalloc(alloclen);
+ gstr = zmalloc<gc_string>(alloclen);
if (!gstr) {
goto end;
}
struct filter_ast *ast = filter_parser_get_ast(scanner);
struct filter_node *node;
- node = (filter_node *) zmalloc(sizeof(*node));
+ node = zmalloc<filter_node>();
if (!node)
return NULL;
memset(node, 0, sizeof(*node));
struct filter_ast *ast = filter_parser_get_ast(scanner);
struct filter_node *node;
- node = (filter_node *) zmalloc(sizeof(*node));
+ node = zmalloc<filter_node>();
if (!node)
return NULL;
memset(node, 0, sizeof(*node));
{
struct filter_ast *ast;
- ast = (filter_ast *) zmalloc(sizeof(*ast));
+ ast = zmalloc<filter_ast>();
if (!ast)
return NULL;
memset(ast, 0, sizeof(*ast));
yydebug = filter_parser_debug;
- parser_ctx = (filter_parser_ctx *) zmalloc(sizeof(*parser_ctx));
+ parser_ctx = zmalloc<filter_parser_ctx>();
if (!parser_ctx)
return NULL;
memset(parser_ctx, 0, sizeof(*parser_ctx));