plan 9 kernel history: overview | file list | diff list

1991/0731/port/devbit.c (diff list | history)

1991/0710/sys/src/9/port/devbit.c:1133,11441991/0731/sys/src/9/port/devbit.c:1133,1149 (short | long | prev | next)
1990/05313    
Cursortocursor(Cursor *c) 
1990/0329    
{ 
1990/0504    
	int i; 
1991/0731    
	uchar *p; 
1990/0504    
 
	lock(&cursor); 
1991/0318    
	memmove(&cursor, c, sizeof(Cursor)); 
1990/0504    
	for(i=0; i<16; i++){ 
1990/05313    
		setbits[i] = (c->set[2*i]<<24) + (c->set[2*i+1]<<16); 
		clrbits[i] = (c->clr[2*i]<<24) + (c->clr[2*i+1]<<16); 
1991/0731    
		p = (uchar*)&setbits[i]; 
		*p = c->set[2*i]; 
		*(p+1) = c->set[2*i+1]; 
		p = (uchar*)&clrbits[i]; 
		*p = c->clr[2*i]; 
		*(p+1) = c->clr[2*i+1]; 
1990/0504    
	} 
	unlock(&cursor); 
} 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)