plottoa.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"
/*
* Convert the standard plot input into a readable form for debugging.
*/
#include <stdio.h>
float deltx;
float delty;
static void arc(int, int, int, int, int, int);
static void circle(int, int, int);
static void closepl(void);
static void cont(int, int);
static void dot(int, int, int, int, char *);
static void erase(void);
static void label(char *);
static void line(int, int, int, int);
static void linemod(char *);
static void move(int, int);
static void openpl(void);
static void point(int, int);
static void space(int, int, int, int);
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(s);
break;
case 'd':
break;
}
}
closepl();
}
/* get an integer stored in 2 ascii bytes. */
static int
{
short a, b;
return(EOF);
return(EOF);
a = a<<8;
return(a|b);
}
static void
{
if(*s == '\n')
break;
*s = '\0';
}
/* Print out the arguments to plot routines. */
static void
{
}
static void
openpl(void)
{
}
static void
closepl(void)
{
}
static void
erase(void)
{
printf( "e\n" );
}
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
label(char *s)
{
printf( "t%s\n\n", s );
}
static void
{
}
static void
{
}
static void
{
}
/* don't know what this should do */
static void
{
}