15 Apr
2009
15 Apr
'09
8:36 a.m.
2009/4/15 Stefan Dösinger <stefan(a)codeweavers.com>:
+void record_const_read(DWORD reg, unsigned int *array, int *num) { + int r; + BOOL inc = TRUE; + for(r = 0; r < *num; r++) { + if(array[r] == reg) { + inc = FALSE; + break; + } + } + + if(inc) { + array[(*num)++] = reg; + } +} + This should be static. Using a bitmap and counting the bits would be nicer, imo.