Skip to content

Commit

Permalink
replace even if in middle of string
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut committed Dec 28, 2024
1 parent 58c517c commit c67461f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tool/build/renamestr.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,8 @@ int main(int argc, char *argv[]) {
struct Param *param = &(params.p[i]);
for (param->roloc = NEXT_ROLOC(param); param->roloc != NULL;
param->roloc = NEXT_ROLOC(param)) {
if (param->roloc == rostart ||
param->roloc[-1] == '\0') { // confirm start of string
ReplaceString(param);
param->count++;
} else {
// in the middle of a string, so move forward
param->roloc += param->from_len;
}
}
}
#undef NEXT_ROLOC
Expand Down

0 comments on commit c67461f

Please sign in to comment.