1
0

Source code upload

This commit is contained in:
calmsacibis995
2022-09-29 17:59:04 +03:00
parent 72fa9da3d7
commit 8fc8fa8089
33399 changed files with 11964078 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!smake
#
# Makefile for libplot.
#
#ident "$Revision: 1.4 $"
OBJECT_STYLE=32
BASELIB=libplot.a
include $(ROOT)/usr/include/make/librootdefs
TARGETS=$(LIBS)
CFILES = arc.c box.c circle.c close.c cont.c dot.c erase.c label.c line.c \
linmod.c move.c open.c point.c putsi.c space.c
default: $(TARGETS)
exports install: default
$(INSTALL) -F /usr/lib -m 444 $(LIBS)
include $(LIBROOTRULES)

View File

@@ -0,0 +1,23 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
extern void putsi(int);
void
arc(int xi, int yi, int x0, int y0, int x1, int y1){
putc('a',stdout);
putsi(xi);
putsi(yi);
putsi(x0);
putsi(y0);
putsi(x1);
putsi(y1);
}

View File

@@ -0,0 +1,22 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
extern void cont(int, int);
extern void move(int, int);
void
box(int x0, int y0, int x1, int y1)
{
move(x0, y0);
cont(x0, y1);
cont(x1, y1);
cont(x1, y0);
cont(x0, y0);
move(x1, y1);
}

View File

@@ -0,0 +1,20 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
extern void putsi(int);
void
circle(int x, int y, int r){
putc('c',stdout);
putsi(x);
putsi(y);
putsi(r);
}

View File

@@ -0,0 +1,21 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
void
closevt(void)
{
fflush(stdout);
}
void
closepl(void){
fflush(stdout);
}

View File

@@ -0,0 +1,19 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
extern void putsi(int);
void
cont(int xi, int yi){
putc('n',stdout);
putsi(xi);
putsi(yi);
}

View File

@@ -0,0 +1,24 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
extern void putsi(int);
void
dot(int xi, int yi, int dx, int n, int pat[])
{
int i;
putc('d',stdout);
putsi(xi);
putsi(yi);
putsi(dx);
putsi(n);
for(i=0; i<n; i++)putsi(pat[i]);
}

View File

@@ -0,0 +1,16 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
void
erase(void)
{
putc('e',stdout);
}

View File

@@ -0,0 +1,19 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
void
label(char *s)
{
int i;
putc('t',stdout);
for(i=0;s[i];)putc(s[i++],stdout);
putc('\n',stdout);
}

View File

@@ -0,0 +1,4 @@
#
# Global library definitions
#
LIBRARY_COPTS= -fullwarn

View File

@@ -0,0 +1,22 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
extern void putsi(int);
void
line(int x0, int y0, int x1, int y1)
{
putc('l',stdout);
putsi(x0);
putsi(y0);
putsi(x1);
putsi(y1);
}

View File

@@ -0,0 +1,19 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
void
linemod(char *s)
{
int i;
putc('f',stdout);
for(i=0;s[i];)putc(s[i++],stdout);
putc('\n',stdout);
}

View File

@@ -0,0 +1,20 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
extern void putsi(int);
void
move(int xi, int yi)
{
putc('m',stdout);
putsi(xi);
putsi(yi);
}

View File

@@ -0,0 +1,18 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
void
openvt(void)
{
}
void
openpl(void)
{
}

View File

@@ -0,0 +1,20 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
extern void putsi(int);
void
point(int xi, int yi)
{
putc('p',stdout);
putsi(xi);
putsi(yi);
}

View File

@@ -0,0 +1,17 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
void
putsi(int a)
{
putc((char)a,stdout);
putc((char)(a>>8),stdout);
}

View File

@@ -0,0 +1,22 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
#include <stdio.h>
extern void putsi(int);
void
space(int x0, int y0, int x1, int y1)
{
putc('s',stdout);
putsi(x0);
putsi(y0);
putsi(x1);
putsi(y1);
}