I have a very big C programming project that uses thousands of struct variables with this naming convention:
specificstruct->x = specificstruct->y + specificstruct->z
I want to do some heavy refactoring, namely converting most of these struct members to arrays. The code above would look like this:
specificstruct->x[i] = specificstruct->y[i] + specificstruct->z[i]
... and I don't feel like wasting an entire day on doing all this manually. Does anyone have a suitable regex in store?
EDIT: It is always the same struct, but the equations vary.
Thanks in advance!
Best regards, P. Nilsson