"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "layer0/Util.cpp" 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.

Util.cpp  (pymol-v1.8.6.0.tar.bz2):Util.cpp  (pymol-v2.1.0.tar.bz2)
skipping to change at line 202 skipping to change at line 202
if(*q>32) if(*q>32)
break; break;
else else
{ {
(*q)=0; (*q)=0;
q--; q--;
} }
} }
} }
/*
* Remove ANSI Escape sequences in-place
*/
void UtilStripANSIEscapes(char *s)
{
for (const char *p = s;; ++p, ++s) {
while (p[0] == '\033' && p[1] == '[') {
while (' ' <= p[2] && p[2] < '@') ++p;
p += 3;
}
if (p != s)
*s = *p;
if (!p[0])
break;
}
}
void UtilZeroMem(void *ptr,ov_size howMuch) void UtilZeroMem(void *ptr,ov_size howMuch)
{ {
char *p,*q; char *p,*q;
p=(char*)ptr; p=(char*)ptr;
q=p+howMuch; q=p+howMuch;
MemoryZero(p,q); MemoryZero(p,q);
} }
void UtilCopyMem(void *dst,const void *src,ov_size howMuch) /* optimize! */ void UtilCopyMem(void *dst,const void *src,ov_size howMuch) /* optimize! */
{ {
 End of changes. 1 change blocks. 
0 lines changed or deleted 17 lines changed or added

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