Module GeneratorBase::build_module(const std::string &function_name, const LoweredFunc::LinkageType linkage_type) { build_params(); Pipeline pipeline = build_pipeline(); // Building the pipeline may mutate the params and imageparams. rebuild_params(); return pipeline.compile_to_module(get_filter_arguments(), function_name, target, linkage_type); }
static int modify_parameter(char **query, const char *name, const char *value) { ParamNodeType *pl = NULL; int ret = -1; ustring us = USTRING_INITIALIZER; char *result; pl = parse_params(*query, "&"); if(!pl) { nag("Error parsing query string\n"); goto cleanup; } if(set_param_value(&pl, name, value, 0)) { nag("Error setting query string value\n"); goto cleanup; } if(rebuild_params(pl, &us, "&")) { nag("Error rebuilding query string\n"); goto cleanup; } result = Strdup(us.string); if(!result) { goto cleanup; } Free(*query); *query = result; ret = 0; cleanup: delete_param_list(pl); reset_ustring(&us); return ret; }