diff --git a/lang/icon/files/icon.1 b/lang/icon/files/icon.1 deleted file mode 100644 index c7274adf585..00000000000 --- a/lang/icon/files/icon.1 +++ /dev/null @@ -1,244 +0,0 @@ -.co \" IPD244d: Manual page for Version 9 icon(1) -.ds I \fHicont\fR and \fHiconc\fR -.TH ICON 1 "29 November 1996 IPD244d" -.SH NAME -icon \- interpret or compile Icon programs -.SH SYNOPSIS -\fHicont\fR [ option ... ] file ... [ \fH\-x\fR arg ... ] -.br -\fHiconc\fR [ option ... ] file ... [ \fH\-x\fR arg ... ] -.SH DESCRIPTION -\*I each convert an Icon source program into executable form. -\fHicont\fR translates quickly and provides interpretive execution. -\fHiconc\fR takes longer to compile but produces programs that -execute faster. -\fHicont\fR and \fHiconc\fR for the most part can be used interchangeably. -.PP -This manual page describes both \*I. Where there -there are differences in usage between \*I, these are noted. -.PP -\fBFile Names:\fR Files whose names end in \fH.icn\fR are assumed -to be Icon source files. The \fH.icn\fR suffix may be omitted; -if it is not present, it is supplied. The character \fH\-\fR can -be used to indicate an Icon source file given in standard input. -Several source files can be given on the same command line; if so, they -are combined to produce a single program. -.PP -The name of the executable file is the base name of the -first input file, -formed by deleting the suffix, if present. \fHstdin\fR is used for -source programs given in standard input. -.PP -\fBProcessing:\fR As noted in the synopsis above, \*I accept options followed -by file names, optionally followed by \fH\-x\fR and arguments. If \fH\-x\fR -is given, the program is executed automatically and any following -arguments are passed to it. -.PP -\fHicont\fR: The processing performed by \fHicont\fR consists of two phases: -\fItranslation\fR and \fIlinking\fR. During translation, -each Icon source file is translated into an intermediate language called -\fIucode\fR. Two ucode files are produced for each -source file, with base names from the -source file and suffixes \fH.u1\fR and \fH.u2\fR. -During linking, the one or more pairs of ucode files are combined to -produce a single -\fIicode\fR file. -The ucode files are deleted after the icode file is created. -.PP -Processing by \fHicont\fR can be terminated after translation by the -\fH\-c\fR option. In this case, the ucode files are not deleted. -The names of \fH.u1\fR files from previous translations can be given on the -\fHicont\fR command line. -These files and the corresponding \fH.u2\fR -files are included in the linking phase after the translation of any source -files. -The suffix \fH.u\fR can be used in place of \fH.u1\fR; in this case -the \fH1\fR is supplied automatically. -Ucode files that are explicitly named are not deleted. -.PP -\fHiconc\fR: The processing performed by \fHiconc\fR consists of two -phases: \fIcode generation\fR and \fIcompilation and linking\fR. The -code generation phase produces C code, consisting of a \fH.c\fR and a \fH.h\fR -file, with the base name of the first source file. These files are -then compiled and linked to produce an executable binary file. -The C files normally are deleted after compilation and linking. -.PP -Processing by \fHiconc\fR can be terminated after code generation by -the \fH\-c\fR option. In this case, the C files are not deleted. -.SH OPTIONS -The following options are recognized by \*I: -.TP 4 -\fH\-c\fR -Stop after producing intermediate files and do not delete them. -.TP 4 -\fH\-e\fR \fIfile\fR -Redirect standard error output to \fIfile\fR. -.TP -\fH\-f s\fR -Enable full string invocation. -.TP -\fH\-o \fIname\fR -Name the output file \fIname\fR. -.TP -\fH\-s\fR -Suppress informative messages. -Normally, both informative messages and error messages are sent -to standard error output. -.TP -\fH\-t\fR -Arrange for \fH&trace\fR to have an initial value of \-1 -when the program is executed and for \fHiconc\fR enable debugging features. -.TP -\fH\-u\fR -Issue warning messages for undeclared identifiers in the program. -.TP -\fH\-v \fIi\fR -Set verbosity level of informative messages to \fIi\fH -.TP -\fH\-E\fR -Direct the results of preprocessing to standard output and inhibit -further processing. -.PP -The following additional options are recognized by \fHiconc\fR: -.TP 4 -\fH\-f \fIstring\fR -Enable features as indicated by the letters in \fIstring\fR: -.TP 8 - \fHa\fR -all, equivalent to \fHdelns\fR -.TP 8 - \fHd\fR -enable debugging features: \fHdisplay()\fR, -\fHname()\fR, \fHvariable()\fR, error -trace back, and the effect of \fH\-f n\fR (see below) -.TP 8 - \fHe\fR -enable error conversion -.TP 8 - \fHl\fR -enable large-integer arithmetic -.TP 8 - \fHn\fR -produce code that keeps track of line numbers and file names in the source code -.TP 8 - \fHs\fR -enable full string invocation -.TP 4 -\fH\-n \fIstring\fR -Disable specific optimizations. These are indicated by the -letters in \fIstring\fR: -.TP 8 - \fHa\fR -all, equivalent to \fHcest\fR -.TP 8 - \fHc\fR -control flow optimizations other than switch statement optimizations -.TP 8 - \fHe\fR -expand operations in-line when reasonable -(keywords are always put in-line) -.TP 8 - \fHs\fR -optimize switch statements associated with operation invocations -.TP 8 - \fHt\fR -type inference -.TP 4 -\fH\-p \fIarg\fR -Pass \fIarg\fR on to the C compiler used by \fHiconc\fR -.TP 4 -\fH\-r \fIpath\fR -Use the run-time system at \fIpath\fR, which must end with a slash. -.TP 4 -.TP 4 -\fH\-C \fIprg\fR -Have \fHiconc\fR use the C compiler given by \fIprg\fH -.SH "ENVIRONMENT VARIABLES" -When an Icon program is executed, several environment variables -are examined to determine certain execution parameters. -Values in parentheses are the default values. -.TP 4 -\fHBLKSIZE\fR (500000) -The initial size of the allocated block region, in bytes. -.TP -\fHCOEXPSIZE\fR (2000) -The size, in words, of each co-expression block. -.TP -\fHDBLIST\fR -The location of data bases -for \fHiconc\fR to search before the standard one. -The value of \fHDBLIST\fR should be a blank-separated -string of the form \fIp1\0p2 ...\0 pn\fR where the \fIpi\fR name directories. -.TP -\fHICONCORE\fR -If set, a core dump is produced for error termination. -.TP 4 -\fHICONX\fR -The location of \fHiconx\fR, the executor for icode files, is -built into an icode file when it -is produced. This location can be overridden by setting the -environment variable \fHICONX\fR. -If \fHICONX\fR is set, its value is used in place of the location -built into the icode file. -.TP 4 -\fHIPATH\fR -The location of ucode files -specified in link declarations for \fHicont\fR. -\fHIPATH\fR is a blank-separated list of directories. -The current directory is always searched first, regardless of the value of -\fHIPATH\fR. -.TP 4 -\fHLPATH\fR -The location of source files -specified in preprocessor \fH$include\fR directives and in link -declarations for \fHiconc\fR. -\fHLPATH\fR is otherwise similar to \fHIPATH\fR. -.TP -\fHMSTKSIZE\fR (10000) -The size, in words, of the main interpreter stack for \fHicont\fR. -.TP -\fHNOERRBUF\fR -By default, \fH&errout\fR is buffered. If this variable is set, \fH&errout\fR -is not buffered. -.TP -\fHQLSIZE\fR (5000) -The size, in bytes, of the region used for pointers -to strings during garbage collection. -.TP -\fHSTRSIZE\fR (500000) -The initial size of the string space, in bytes. -.TP -\fHTRACE\fR -The initial value of \fH&trace\fR. -If this variable has a value, it overrides the translation-time -\fH\-t\fR -option. -.SH FILES -.ta \w'\fHicont\fR 'u -\fHicont\fR Icon translator -.br -\fHiconc\fR Icon compiler -.br -\fHiconx\fR Icon executor -.br -.SH SEE ALSO -\fIThe Icon Programming Language\fR, -Ralph E. Griswold and Madge T. Griswold, -Peer-to-Peer Communications, Inc., Third Edition, 1996. -.LP -\fIVersion 9.3 of Icon\fR, Ralph E. Griswold, Clinton L. Jeffery, -and Gregg M. Townsend, IPD278, -Department of Computer Science, The University of Arizona, 1996. -.LP -\fIVersion 9 of the Icon Compiler\fR, -Ralph E. Griswold, IPD237, Department of Computer Science, -The University of Arizona, 1995. -.LP -icon_vt(1) -.SH "LIMITATIONS AND BUGS" -.LP -The icode files for the -interpreter do not stand alone; the Icon run-time system (\fHiconx\fR) must be -present. -.LP -Stack overflow is checked using a heuristic that is not always effective. diff --git a/lang/icon/files/md5 b/lang/icon/files/md5 deleted file mode 100644 index ebbf0450deb..00000000000 --- a/lang/icon/files/md5 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (icon/unix.tgz) = 3147586808024239962390cfa78a00a8 -RMD160 (icon/unix.tgz) = 13fb301eae467ec1a69b55afce7b88c13a015147 -SHA1 (icon/unix.tgz) = 153c59210b6d2df17a6411ae6ba453210016f565 diff --git a/lang/icon/files/openbsd/common.hdr b/lang/icon/files/openbsd/common.hdr deleted file mode 100644 index a5216932637..00000000000 --- a/lang/icon/files/openbsd/common.hdr +++ /dev/null @@ -1,10 +0,0 @@ -# The -D$D option to CFLAGS makes it possible to specify a definition -# at the Make command level without revising the Makefile, as -# in -# -# make D=Debug -# -D=NOTHING -CFLAGS+= -D$D -I/usr/X11R6/include -SHELL=/bin/sh -RSWITCH=rswitch.c diff --git a/lang/icon/files/openbsd/copybin.c b/lang/icon/files/openbsd/copybin.c deleted file mode 100644 index 71add19f7ba..00000000000 --- a/lang/icon/files/openbsd/copybin.c +++ /dev/null @@ -1,3 +0,0 @@ -#include "../../../src/h/define.h" -#include "paths.h" -#include "../Generic/copybin.h" diff --git a/lang/icon/files/openbsd/define.h b/lang/icon/files/openbsd/define.h deleted file mode 100644 index c630c60d6ea..00000000000 --- a/lang/icon/files/openbsd/define.h +++ /dev/null @@ -1,29 +0,0 @@ -#define Standard -#define IconGcvt -#define IconEcvt -#define index strchr -#define rindex strrchr -#define GetHost -#define Hz 100 -#define MaxHdr 13400 -#define MaxStatSize 20480 - -/* to implement on some architectures yet ... */ -#if defined(__i386__) -#else -#define NoCoexpr -#endif - -#define GenericBSD -#define BSD_4_4_LITE 1 /* This is new, for 4.4Lite specific stuff */ -#define UNIX 1 -#define LoadFunc -/* #define ExecImages */ - -#define KeyboardFncs -#define HaveTioc -#define USE_OLD_TTY -#define AllowConst -#define SysOpt -#define CComp "gcc" -#define COpts "-O2 -I/usr/X11R6/include" diff --git a/lang/icon/files/openbsd/i386_rswitch.c b/lang/icon/files/openbsd/i386_rswitch.c deleted file mode 100644 index e65c5f5e127..00000000000 --- a/lang/icon/files/openbsd/i386_rswitch.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This is the co-expression context switch for the Intel 80386 - * under Microport Unix System V/386 - */ - -/* - * coswitch - */ - -coswitch(old_cs, new_cs, first) -int *old_cs, *new_cs; -int first; - { - asm(" movl 8(%ebp),%eax"); - asm(" movl %esp,0(%eax)"); - asm(" movl %ebp,4(%eax)"); - asm(" movl 12(%ebp),%eax"); - if (first == 0) { /* this is the first activation */ - asm(" movl 0(%eax),%esp"); - asm(" movl $0,%ebp"); - new_context(0, 0); - syserr("interp() returned in coswitch"); - } - else { - asm(" movl 0(%eax),%esp"); - asm(" movl 4(%eax),%ebp"); - } - } diff --git a/lang/icon/files/openbsd/icon_pi.c b/lang/icon/files/openbsd/icon_pi.c deleted file mode 100644 index 4a1eb779d65..00000000000 --- a/lang/icon/files/openbsd/icon_pi.c +++ /dev/null @@ -1,2 +0,0 @@ -#include "paths.h" -#include "../Generic/icon_pi.h" diff --git a/lang/icon/files/openbsd/iconc.hdr b/lang/icon/files/openbsd/iconc.hdr deleted file mode 100644 index a2f27513a84..00000000000 --- a/lang/icon/files/openbsd/iconc.hdr +++ /dev/null @@ -1,9 +0,0 @@ -# The -D$D option to CFLAGS makes it possible to specify a definition -# at the Make command level without revising the Makefile, as -# in -# -# make D=Debug -# -D=NOTHING -CFLAGS+= -D$D -I/usr/X11R6/include -SHELL=/bin/sh diff --git a/lang/icon/files/openbsd/icont.hdr b/lang/icon/files/openbsd/icont.hdr deleted file mode 100644 index 8834b6e3007..00000000000 --- a/lang/icon/files/openbsd/icont.hdr +++ /dev/null @@ -1,2 +0,0 @@ -SHELL=/bin/sh -CFLAGS+=-I/usr/X11R6/include diff --git a/lang/icon/files/openbsd/iconx.hdr b/lang/icon/files/openbsd/iconx.hdr deleted file mode 100644 index b39023e9fa8..00000000000 --- a/lang/icon/files/openbsd/iconx.hdr +++ /dev/null @@ -1,7 +0,0 @@ -SHELL=/bin/sh -# the seek stuff is defined in a header file that they don't -# include. This is the easiest. -Dconst= causes const to -# be ignored. This is needed because otherwise we get complaints -# due to stdio.h defining some functions with const when they -# are not defined that way in Icon's header files -RSWITCH=rswitch.c diff --git a/lang/icon/files/openbsd/paths.h b/lang/icon/files/openbsd/paths.h deleted file mode 100644 index 0872786c280..00000000000 --- a/lang/icon/files/openbsd/paths.h +++ /dev/null @@ -1,3 +0,0 @@ -#define RootPath "/usr/local" -#define IcontPath "/usr/local/lib/icon/icont" -#define IconxPath "/usr/local/lib/icon/iconx" diff --git a/lang/icon/files/openbsd/pi.hdr b/lang/icon/files/openbsd/pi.hdr deleted file mode 100644 index 35601708ee2..00000000000 --- a/lang/icon/files/openbsd/pi.hdr +++ /dev/null @@ -1,2 +0,0 @@ -SHELL=/bin/sh -CFLAGS+=-DPersInterp -I/usr/X11R6/include diff --git a/lang/icon/files/openbsd/preproc.hdr b/lang/icon/files/openbsd/preproc.hdr deleted file mode 100644 index 9c5b23a9832..00000000000 --- a/lang/icon/files/openbsd/preproc.hdr +++ /dev/null @@ -1,10 +0,0 @@ -# The -D$D option to CFLAGS makes it possible to specify a definition -# at the Make command level without revising the Makefile, as -# in -# -# make D=Debug -# -D=NOTHING -CC=cc -CFLAGS+= -O -D$D -SHELL=/bin/sh diff --git a/lang/icon/files/openbsd/rtt.hdr b/lang/icon/files/openbsd/rtt.hdr deleted file mode 100644 index af28d458b6f..00000000000 --- a/lang/icon/files/openbsd/rtt.hdr +++ /dev/null @@ -1,2 +0,0 @@ -CFLAGS+= -DTokDotH="\"../rtt/ltoken.h\"" -O2 -I/usr/X11R6/include -SHELL=/bin/sh diff --git a/lang/icon/files/openbsd/runtime.hdr b/lang/icon/files/openbsd/runtime.hdr deleted file mode 100644 index 5c245bfdf88..00000000000 --- a/lang/icon/files/openbsd/runtime.hdr +++ /dev/null @@ -1,3 +0,0 @@ -SHELL=/bin/sh -CFLAGS+=-I/usr/X11R6/include -LIBS=-lm diff --git a/lang/icon/files/openbsd/setpath.c b/lang/icon/files/openbsd/setpath.c deleted file mode 100644 index 3be6ee1b3b3..00000000000 --- a/lang/icon/files/openbsd/setpath.c +++ /dev/null @@ -1,2 +0,0 @@ -#include "paths.h" -#include "../Generic/setpath.h" diff --git a/lang/icon/files/openbsd/status b/lang/icon/files/openbsd/status deleted file mode 100644 index 8beb94ade06..00000000000 --- a/lang/icon/files/openbsd/status +++ /dev/null @@ -1,29 +0,0 @@ -System configuration: - - OpenBSD >= 2.4 - -Latest Icon version: - - Version 9.3.1 - -Installer: - - Marc Espie - - -Missing features: - - Executable images, coexpr (on some archs) - -Known bugs: - - None. - -Comments: - - Some things to check yet, like building dynamic libraries, and - jpeg/giff/png support - -Date: - - September 29, 1998 diff --git a/lang/icon/files/openbsd/vt.hdr b/lang/icon/files/openbsd/vt.hdr deleted file mode 100644 index a9934e5b6f3..00000000000 --- a/lang/icon/files/openbsd/vt.hdr +++ /dev/null @@ -1,2 +0,0 @@ -SHELL=/bin/sh -CFLAGS+= -DVarTran diff --git a/lang/icon/files/openbsd/xiconx.mak b/lang/icon/files/openbsd/xiconx.mak deleted file mode 100644 index bb7165d6eaf..00000000000 --- a/lang/icon/files/openbsd/xiconx.mak +++ /dev/null @@ -1,3 +0,0 @@ -# If you define EventMon, add the -lgmon below to get profil(2) under Linux -#XLIB= -lX11 -lgmon -XLIB= -L/usr/X11R6/lib -lX11 diff --git a/lang/icon/files/openbsd/xpm.hdr b/lang/icon/files/openbsd/xpm.hdr deleted file mode 100644 index 205541468d9..00000000000 --- a/lang/icon/files/openbsd/xpm.hdr +++ /dev/null @@ -1 +0,0 @@ -DEFINES= -DZPIPE diff --git a/lang/icon/patches/patch-aa b/lang/icon/patches/patch-aa deleted file mode 100644 index e3db01bc338..00000000000 --- a/lang/icon/patches/patch-aa +++ /dev/null @@ -1,13 +0,0 @@ ---- config/unix/Config/common.make.orig Fri Feb 13 15:13:56 1998 -+++ config/unix/Config/common.make Tue Sep 29 22:08:51 1998 -@@ -11,9 +11,7 @@ - cp patchstr ../../bin - - xpm: -- cd ../xpm; $(MAKE) libXpm.a -- cp ../xpm/libXpm.a ../../bin -- -(test -f ../../NoRanlib) || (ranlib ../../bin/libXpm.a) -+ touch xpm - - $(OBJS): ../h/define.h ../h/config.h ../h/cstructs.h ../h/mproto.h ../h/path.h\ - ../h/typedefs.h ../h/proto.h ../h/cpuconf.h diff --git a/lang/icon/patches/patch-ab b/lang/icon/patches/patch-ab deleted file mode 100644 index 7e0af6f1dfa..00000000000 --- a/lang/icon/patches/patch-ab +++ /dev/null @@ -1,13 +0,0 @@ ---- src/h/sys.h.orig Thu Jul 1 19:36:34 1999 -+++ src/h/sys.h Tue Jul 13 22:14:22 1999 -@@ -190,7 +190,9 @@ - #undef VMS - - #ifdef HaveXpmFormat -- #include "../xpm/xpm.h" -+ #undef AMIGA -+ #include -+ #define AMIGA 0 - #else /* HaveXpmFormat */ - #include - #endif /* HaveXpmFormat */ diff --git a/lang/icon/pkg/COMMENT b/lang/icon/pkg/COMMENT deleted file mode 100644 index aabbb0d5522..00000000000 --- a/lang/icon/pkg/COMMENT +++ /dev/null @@ -1 +0,0 @@ -programming language with generators, X11 graphics and more diff --git a/lang/icon/pkg/DESCR b/lang/icon/pkg/DESCR deleted file mode 100644 index 238ec272028..00000000000 --- a/lang/icon/pkg/DESCR +++ /dev/null @@ -1,19 +0,0 @@ -Icon is a program language that looks superficially like Pascal, -but which supports generators. It also include some very reasonable -X11 support. - -The port has not yet been tested on all architectures. In particular, -most will need coexpr support (see openbsd/${ARCH}_coexpr.c and -openbsd/define.h), but we can probably steal that from an existing -architecture. - -The graphics picture loader can also be improved to handle gifs, jpeg, png, -tiff, along with xpm. - -The icon compiler is actually no longer supported by the icon project, -though it is nice to have it along. - -The icon variant translators could be rather simply installed. - -There is a patch floating around for some unix functions support (sockets, -mainly) that is crying to be adapted... diff --git a/lang/icon/pkg/PLIST b/lang/icon/pkg/PLIST deleted file mode 100644 index f159e66ac7f..00000000000 --- a/lang/icon/pkg/PLIST +++ /dev/null @@ -1,7 +0,0 @@ -bin/icont -lib/icont -bin/iconx -man/man1/icont.1 -man/man1/iconx.1 -bin/rtt -include/rt.h diff --git a/lang/icon/scripts/configure b/lang/icon/scripts/configure deleted file mode 100644 index ae5341b5572..00000000000 --- a/lang/icon/scripts/configure +++ /dev/null @@ -1 +0,0 @@ -cd ${WRKSRC} && make X-Configure name=openbsd diff --git a/lang/icon/scripts/mk_icont b/lang/icon/scripts/mk_icont deleted file mode 100644 index 2c8e1cc5138..00000000000 --- a/lang/icon/scripts/mk_icont +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/perl - -$PREFIX=shift; -# This small script does build a suitable shell wrapper that calls -# icont, according to env variables. - -print <<"EOF"; -#!/bin/sh -IPATH="\${IPATH-} $PREFIX/share/ipl/ucode" -LPATH="\${LPATH-} $PREFIX/share/ipl/ginclude $PREFIX/share/ipl/include" -export IPATH LPATH -exec $PREFIX/lib/icont "\$@" -EOF