File:  [Research Unix] / researchv10no / libplot / libpen / dummies.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#include "pen.h"
erase(){}
closepl(){
	move(e0->p1x,e0->p1y);
	color((char *)0);
	ckerr(1);
}
grade(){}
ppause(){}
cfill(s)
char *s;
{
	register char **p;
	register char *sp, *bp;
	while(*s != NULL){
		if(*s >= '0' && *s <= '8'){
			e1->brush = atoi(s);
		}
		else if(*s == 'A'){
			e1->pslant = (180. - atof(++s))/RADIANS;
		}
		else if(*s == 'G'){
			e1->pgap = atoi(++s);
		}
		else {
			if(*s == 'T')sp = s+1;
			else sp = s;
			if(*s == 'b')sp+=2;
			for(p=pens;p<&pens[4];p++){
				bp = *p;
				if(*bp == 'b')bp+=2;
				if(*bp == *sp){
					e1->brush = p-pens;
					e1->brush++;
					if(*s == 'T')e1->brush += 4;
				}
			}
		}
		while(*++s != NULL)
			if(*s == '/'){
				s++;
				break;
			}
	}
}
idle(){}
ptype(){}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.