Simon Harriyott

Legacy code you don't want to see

This week I had to look at some 10-year-old C++ code. I was quite looking forward to it, as I haven't look at C++ code for a few years. However, the first couple of lines in the method function I needed to look at started with

int n_len, n_numbytes, n_crc, n_crc2, crc1, crc2, crcx, n_add, n_and, i,j,k,n,ii;
int i_p,i_t,n_crcc;


I didn't get very far with it, and plumped for a work-around instead of a bug-fix.

[Tags: ]
5 January 2007