Lines Matching refs:percent
29 * Handle suffix and percent rules
61 static void create_target_group_and_dependencies_list(Name target, Percent pat_rule, String percent);
62 static Boolean match_found_with_pattern(Name target, Percent pat_rule, String percent, wchar_t *percent_buf);
63 static void construct_string_from_pattern(Percent pat_rule, String percent, String result);
446 line->body.line.percent = NULL;
777 * Each percent rule get one entry on the list.
790 * percent_list List of all percent rules
803 String_rec percent;
851 /* used to track first percent dependency */
856 if it matches, percent string will contain matched percent part of pattern */
857 if (!match_found_with_pattern(true_target, pat_rule, &percent, percent_buf)) {
868 if (pat_depe->name->percent) {
872 construct_string_from_pattern(pat_depe, &percent, &string);
945 if (pat_depe->name->percent) {
1003 if (pat_depe->name->percent) {
1005 construct_string_from_pattern(pat_depe, &percent, &string);
1038 create_target_group_and_dependencies_list(target, pat_rule, &percent);
1133 /* enter explicit rule from percent rule */
1141 line->body.line.star = GETNAME(percent.buffer.start, FIND_LENGTH);
1151 line->body.line.percent = NULL;
1153 line->body.line.percent = GETNAME(left + 1, right - left - 1);
1156 line->body.line.percent = NULL;
1165 * ( target, pat_rule, percent, percent_buf)
1176 * percent record that contains "percent_buf" below
1182 match_found_with_pattern(Name target, Percent pat_rule, String percent, wchar_t *percent_buf) {
1245 /* init percent string */
1246 percent->buffer.start = percent_buf;
1247 percent->text.p = percent_buf;
1248 percent->text.end = NULL;
1249 percent->free_after_use = false;
1250 percent->buffer.end = percent_buf + STRING_BUFFER_LENGTH;
1252 /* construct percent and result strings */
1253 targ_string.append_to_str(percent, prefix_length, percent_length);
1254 construct_string_from_pattern(pat_rule, percent, &string);
1271 * (target, pat_rule, percent)
1293 * percent string containing matched % part. In the example=xx.
1300 create_target_group_and_dependencies_list(Name target, Percent pat_rule, String percent) {
1312 if (pat_depe->name->percent) {
1314 construct_string_from_pattern(pat_depe, percent, &string);
1333 if (group_member->name->percent) {
1335 construct_string_from_pattern(group_member->percent_member, percent, &string);
1374 * (pat_rule, percent, result)
1377 * strings from this matched pattern rule and a string (percent) with substitutes % sign in pattern.
1384 * percent string containing matched % sign part.
1389 construct_string_from_pattern(Percent pat_rule, String percent, String result) {
1403 append_string(percent->buffer.start,
1405 percent->text.p - percent->buffer.start);