atoplot.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/*
* Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
* All Rights Reserved.
*/
#include <stdio.h>
float deltx;
float delty;
char *mapLineType();
int std=1;
while(argc-- > 1) {
case 'l':
break;
case 'w':
break;
}
else {
std = 0;
exit(1);
}
}
argv++;
}
if (std)
exit(0);
}
int c;
char s[256];
int pat[256];
openpl();
switch(c){
case 'm':
break;
case 'l':
break;
case 't':
label(s);
break;
case 'e':
erase();
break;
case 'p':
break;
case 'n':
break;
case 's':
break;
case 'a':
break;
case 'c':
break;
case 'f':
linemod( mapLineType(s) );
break;
case 'd':
break;
}
/* scan to newline */
if ( c == EOF ) {
break;
}
}
}
closepl();
}
int i;
return(EOF);
}
return( i );
}
if(*s == '\n')
break;
*s = '\0';
}
char *lineMap[] = {
"solid", /* line type 0 */
"solid", /* line type 1 */
"dotted", /* line type 2 */
"dotdashed", /* line type 3 */
"shortdashed", /* line type 4 */
"longdashed", /* line type 5 */
"dotlongdash", /* line type 6 */
"dotshortdash", /* line type 7 */
"dotdotdash", /* line type 8 */
} ;
char *
mapLineType( cp )
char *cp;
{
int i;
if ( i < 0 || i > sizeof(lineMap)/sizeof(char *) ) {
i = 1;
}
return( lineMap[i] );
}
else {
return( cp );
}
}