They use the same names as the function.
However, I seemed to have solved the problem. The new function I added actually called a second function, which is what appears to have thrown a spanner in the works.
I have re-edited the sketch to include the sub-function in to the body of the new function and it now compiles fine.
I'm guessing the Arduino environment doesn't like nested functions.