parse_and_set_rules
error = parse_and_set_rules(td_pr, buf, &parse_error);
error = parse_and_set_rules(pr, rules_string, &parse_error);