"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "contrib/champ/os_memory.c" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

os_memory.c  (pymol-v1.8.6.0.tar.bz2):os_memory.c  (pymol-v2.1.0.tar.bz2)
skipping to change at line 57 skipping to change at line 57
static DebugRec *HashTable[1024]; static DebugRec *HashTable[1024];
static int InitFlag=true; static int InitFlag=true;
static int Count; static int Count;
static int MaxCount; static int MaxCount;
DebugRec *OSMemoryRemove(void *ptr); DebugRec *OSMemoryRemove(void *ptr);
void OSMemoryInit(void); void OSMemoryInit(void);
#endif
void OSMemoryZero(char *p,char *q) void OSMemoryZero(char *p,char *q)
{ {
register unsigned long count; register unsigned long count;
register long *a; register long *a;
int mask; int mask;
count = q-p; count = q-p;
mask=sizeof(long)-1; mask=sizeof(long)-1;
/* get us word aligned */ /* get us word aligned */
while(count&&(((int)p)&mask)) { while(count&&(((int)p)&mask)) {
count--; count--;
skipping to change at line 102 skipping to change at line 104
*a++=0; *a++=0;
} }
p=(char*)a; p=(char*)a;
while(count>0) while(count>0)
{ {
*p++=0; *p++=0;
count--; count--;
} }
} }
#ifdef _os_memory_debug_on
void OSMemoryInit(void) void OSMemoryInit(void)
{ {
int a; int a;
for(a=0;a<1024;a++) for(a=0;a<1024;a++)
HashTable[a]=NULL; HashTable[a]=NULL;
InitFlag=false; InitFlag=false;
Count=0; Count=0;
MaxCount=0; MaxCount=0;
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)