/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.3 */
/*LINTLIBRARY*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <plot.h>
#include "con.h"
static void
delay(void)
{
int i;
for (i = 0; i < 2; i++) {
}
}
int
{
/*
* x position input is -2047 to +2047,
* output must be 0 to PAGSIZ*HORZRES
*/
xp += 2048;
/* the computation is newx = xp*(PAGSIZ*HORZRES)/4096 */
}
int
{
/* see description of xconv */
yp += 2048;
}
void
inplot(void)
{
}
void
outplot(void)
{
}
void
{
}
void
tobotleft(void)
{
}
void
reset(void)
{
outplot();
_exit(0);
}
float
{
float t, v;
return (t * t + v * v);
}
void
{
int t;
t = *pa;
*pb = t;
}
void
{
return;
inplot();
if ((i = pts) > 0) {
if (xd > 0)
if (yd > 0)
spew(c);
delay();
while (i--) {
delay();
}
}
} else {
}
spew(c);
delay();
while (i--) {
delay();
}
}
i = 0;
if (remx > 7) {
i = 1;
remx -= 7;
}
if (remy > 7) {
i = 1;
remy -= 7;
}
while (i--) {
delay();
delay();
}
delay();
delay();
}
outplot();
}
int
{
int xa;
return (xa);
}
int
{
int ya;
return (ya);
}