[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PFile compiles again



Bjarke Hammersholt Roune wrote:

>> >2) A const pointer is used to alter what it points to in ToNative().
>> 
>> Where exactly? I couldn't find it.
>> 
>const char *NextPos
>
>should be
>
>char *NextPos

Oh, I stumbled over that and changed it while looking for the "real" error
;)
But where is NextPos used to modify the string?
Hmmm, it's assigned to CurrentPos, which is char *, and CurrentPos is used
for modification.
I refixed it now so that NextPos is const char * again and casted to char *
only at the assignment to CurrentPos. That's better than casting away the
const at each of the three assignments to NextPos.

	Christian
-- 

Drive A: not responding...Formatting C: instead