atoplot.c revision b7d62af5b42f0da2eb668e8d33d24d2f4fdd98a8
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
float deltx;
float delty;
static char *mapLineType(char *);
int
{
int std=1;
while(argc-- > 1) {
case 'l':
break;
case 'w':
break;
}
else {
std = 0;
exit(1);
}
}
argv++;
}
if (std)
return (0);
}
static void
{
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();
}
/* get an integer stored in 2 ascii bytes. */
static int
{
int i;
return(EOF);
}
return( i );
}
static void
{
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 */
} ;
static char *
mapLineType(char *cp)
{
int i;
if ( i < 0 || i > sizeof(lineMap)/sizeof(char *) ) {
i = 1;
}
return( lineMap[i] );
}
else {
return( cp );
}
}