for installed header files, add comment saying where they came from

This commit is contained in:
leitner
2010-06-03 22:46:59 +00:00
parent 2cb6a12c92
commit 928bfe5c09
35 changed files with 59 additions and 3 deletions

View File

@@ -15,11 +15,11 @@
(pos+1)*sizeof(t) bytes are initialized.
#endif
void* array_get(array* x,uint64 membersize,int64 pos) {
void* array_get(const array* const x,uint64 membersize,int64 pos) {
uint64 wanted;
if (__unlikely(pos+1<1)) return 0;
if (__unlikely(!umult64(membersize,pos,&wanted))) return 0;
if (__unlikely((int64)wanted >= x->allocated || wanted>=x->initialized)) return 0;
return x->p+pos*membersize;
return (void*)(x->p+pos*membersize);
}