Open
Description
As mentioned in #174 and #173 we should consider switching from unsigned long
to size_t
when passing the length or size of something.
@rofl0r said:
also: in C the proper type for sizes is size_t, not unsigned long. (usually it's the same, but some odd platforms like windows have a 32bit long on 64bit).
and @rofl0r a bit later:
using size_t does not necessarily mean including stdint.h. since you're a fan of ifdef hacks over configure tests you could hardcode a list of CPP defines which define HAVE_STDINT_H and only use it there, for the other platforms fall back to typedefing it to unsigned long, or unsigned long long on windows64 bit.