diff options
| author | mycroft <mycroft@NetBSD.org> | 1993-07-14 09:35:27 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1993-07-14 09:35:27 +0000 |
| commit | 5a92aad43b49dae8b8bb996bc91ce1321459958b (patch) | |
| tree | 3af8bb3cfd0335cc6bab2ab7b169bfceffdcc3a5 /gnu/lib/libg++ | |
| parent | 70c7bffc16f41c5c2623544c70fd345ca1da838f (diff) | |
Clean up deleted files.
Diffstat (limited to 'gnu/lib/libg++')
| -rw-r--r-- | gnu/lib/libg++/libg++/EH.cc | 43 | ||||
| -rw-r--r-- | gnu/lib/libg++/libg++/EH2.c | 20 | ||||
| -rw-r--r-- | gnu/lib/libg++/libg++/File.cc | 481 | ||||
| -rw-r--r-- | gnu/lib/libg++/libg++/Filebuf.cc | 25 | ||||
| -rw-r--r-- | gnu/lib/libg++/libg++/Makefile.gnu | 463 | ||||
| -rw-r--r-- | gnu/lib/libg++/libg++/PlotFile.cc | 183 |
6 files changed, 0 insertions, 1215 deletions
diff --git a/gnu/lib/libg++/libg++/EH.cc b/gnu/lib/libg++/libg++/EH.cc deleted file mode 100644 index 9440bd3b445..00000000000 --- a/gnu/lib/libg++/libg++/EH.cc +++ /dev/null @@ -1,43 +0,0 @@ -/* Library code for programs which use -fhandle-exceptions. - Note: do *not* compile this with -fhandle-exceptions. */ - - -#ifdef __GNUG__ -#pragma implementation -#endif -#include <setjmp.h> -#include <stream.h> - -struct -ExceptionHandler -{ - ExceptionHandler *prev; - jmp_buf handler; - void *name; - void *parameters; - ExceptionHandler (); - ~ExceptionHandler (); -} EHS, *exceptionHandlerStack = &EHS; - -ExceptionHandler::ExceptionHandler () -{ - if (this == &EHS) - { - if (setjmp (EHS.handler)) - { - cerr << ("unhandled exception, aborting...\n"); - abort (); - } - } - else - { - this->prev = exceptionHandlerStack; - exceptionHandlerStack = this; - } -} - -ExceptionHandler::~ExceptionHandler () -{ - exceptionHandlerStack = this->prev; -} - diff --git a/gnu/lib/libg++/libg++/EH2.c b/gnu/lib/libg++/libg++/EH2.c deleted file mode 100644 index 52c91f408de..00000000000 --- a/gnu/lib/libg++/libg++/EH2.c +++ /dev/null @@ -1,20 +0,0 @@ -/* -Unhandled exceptions cause the program to abort. -Argument FILENAME is the name of the file that caught the exception. -Argument LINENO is the line number at which the exception was -caught. -*/ - -extern volatile void abort(); - -void -__unhandled_exception (char *filename, int lineno) -{ - abort (); -} - -void -__raise_exception (void **addr, void *id) -{ - *addr = id; -} diff --git a/gnu/lib/libg++/libg++/File.cc b/gnu/lib/libg++/libg++/File.cc deleted file mode 100644 index 30ad65057d5..00000000000 --- a/gnu/lib/libg++/libg++/File.cc +++ /dev/null @@ -1,481 +0,0 @@ -/* -Copyright (C) 1988 Free Software Foundation - written by Doug Lea (dl@rocky.oswego.edu) - -This file is part of GNU CC. - -GNU CC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY. No author or distributor -accepts responsibility to anyone for the consequences of using it -or for whether it serves any particular purpose or works at all, -unless he says so in writing. Refer to the GNU CC General Public -License for full details. - -Everyone is granted permission to copy, modify and redistribute -GNU CC, but only under the conditions described in the -GNU CC General Public License. A copy of this license is -supposed to have been given to you along with GNU CC so you -can know your rights and responsibilities. It should be in a -file named COPYING. Among other things, the copyright notice -and this notice must be preserved on all copies. -*/ - -#ifdef __GNUG__ -#pragma implementation -#endif -#include <File.h> -#include <std.h> -#include <stdarg.h> -#include <values.h> -#include <sys/file.h> // needed to determine values of O_RDONLY... -#include <open.h> - -#ifdef VMS -#include <errno.h> // needed to get the psect magic loaded -#define FP (*fp) -#else -#define FP fp -#endif - - -// error handlers - -void verbose_File_error_handler(const char* msg) -{ - perror(msg); - errno = 0; -} - -void quiet_File_error_handler(const char*) -{ - errno = 0; -} - -void fatal_File_error_handler(const char* msg) -{ - perror(msg); - exit(1); -} - -one_arg_error_handler_t File_error_handler = verbose_File_error_handler; - - -one_arg_error_handler_t set_File_error_handler(one_arg_error_handler_t f) -{ - one_arg_error_handler_t old = File_error_handler; - File_error_handler = f; - return old; -} - - - -void File::initialize() -{ - fp = 0; nm = 0; stat = 0; state = _bad; rw = 0; -} - -// reset class vars after open -// fp->_flag inspection is isolated here - -void File::reinitialize(const char* filename) -{ - if (filename != 0) setname(filename); - else if (fp == stdin) setname("(stdin)"); - else if (fp == stdout) setname("(stdout)"); - else if (fp == stderr) setname("(stderr)"); - else if (rw & 4) setname("(string)"); - else setname(0); - - if (fp != 0) - { - state = _good; -#if 1 /* bsd 4.4 */ - if (FP->_flags & (__SRD|__SRW)) - rw |= 01; - if (FP->_flags & (__SWR|__SRW|__SAPP)) - rw |= 02; -#else - if (FP->_flag & (_IOREAD|_IORW)) - rw |= 01; - if (FP->_flag & (_IOWRT|_IORW|_IOAPPEND)) - rw |= 02; -#endif - check_state(); - } - else - { - set(_fail); set(_bad); - error(); - } -} - - -File& File::open(const char* filename, io_mode m, access_mode a) -{ - close(); - int open_arg = open_cmd_arg(m, a); - if (open_arg != -1) - { - int fd = ::open(filename, open_arg, 0666); - if (fd >= 0) - fp = fdopen(fd, fopen_cmd_arg(m)); - } - reinitialize(filename); - return *this; -} - -File& File::open(const char* filename, const char* m) -{ - close(); - fp = fopen(filename, m); - reinitialize(filename); - return *this; -} - -File& File::open(FILE* fileptr) -{ - close(); - fp = fileptr; - reinitialize(0); - return *this; -} - -File& File::open(int filedesc, io_mode m) -{ - close(); - fp = fdopen(filedesc, fopen_cmd_arg(m)); - reinitialize(0); - return *this; -} - -File& File::close() -{ - if (fp != 0) - { -#ifdef VMS - if (rw & 4) // we own the iobuf, kill it - delete(*fp); // kill the _iobuf -#endif - if (rw & 4) // we own the iobuf, kill it - delete fp; - else if (fp == stdin || fp == stdout || fp == stderr) - flush(); - else - fclose(fp); - } - fp = 0; - rw = 0; - set(_bad); - return *this; -} - -File& File::remove() -{ - close(); - return failif (nm == 0 || unlink(nm) != 0); -} - - -File::File() -{ - initialize(); -} - -File::File(const char* filename, io_mode m, access_mode a) -{ - initialize(); - open(filename, m, a); -} - -File::File(const char* filename, const char* m) -{ - initialize(); - open(filename, m); -} - -File::File(int filedesc, io_mode m) -{ - initialize(); - open(filedesc, m); -} - -File::File(FILE* fileptr) -{ - initialize(); - open(fileptr); -} - - -File::~File() -{ - delete(nm); - close(); -} - -void File::setname(const char* newname) -{ - if (nm == newname) return; - - if (nm != 0) - delete(nm); - if (newname != 0) - { - nm = new char[strlen(newname) + 1]; - strcpy(nm, newname); - } - else - nm = 0; -} - - -File& File::setbuf(int buffer_kind) -{ - if (!is_open()) - { - set(_fail); - return *this; - } - switch(buffer_kind) - { - case _IOFBF: -#ifdef HAVE_SETVBUF - setvbuf(fp, 0, _IOFBF, 0); -#endif - break; - case _IONBF: - ::setbuf(fp, 0); - break; - case _IOLBF: -#ifdef HAVE_SETLINEBUF - setlinebuf(fp); -#else -#ifdef HAVE_SETVBUF - setvbuf(fp, 0, _IOLBF, 0); -#endif -#endif - break; - default: - break; - } - return *this; -} - -File& File::setbuf(int size, char* buf) -{ - if (!is_open()) - { - set(_fail); - return *this; - } -#ifdef HAVE_SETVBUF - setvbuf(fp, buf, _IOFBF, size); -#else - setbuffer(fp, buf, size); -#endif - return *this; -} - -void File::error() -{ - check_state(); - set(_fail); - if (errno != 0) - { - char error_string[400]; - strcpy(error_string, "\nerror in File "); - if (nm != 0) - strcat(error_string, nm); - (*File_error_handler)(error_string); - } -} - - -//------------------------------------------------------------------ - -void File::check_state() // ensure fp & state agree about eof -{ - if (fp != 0) - { - if (feof(fp)) - set(_eof); - else - unset(_eof); - if (ferror(fp)) - set(_bad); - } -} - -File& File::put(const char* s) -{ - return failif(!writable() || fputs(s, fp) == EOF); -} - -File& File::get(char* s, int n, char terminator) -{ - if (!readable()) - { - set(_fail); - return *this; - } - - char ch; - stat = --n; - - if (n > 0 && (get(ch))) - { - if (ch == terminator) { - unget(ch); - stat= 0; // This is not an error condition ! - } - else - { - *s++ = ch; --n; - while (n > 0 && (get(ch))) - { - if (ch == terminator) - { - unget(ch); - break; - } - else - { - *s++ = ch; --n; - } - } - } - } - - *s = 0; - return failif((stat != 0) && ((stat -= n) == 0)); -} - -File& File::getline(char* s, int n, char terminator) -{ - if (!readable()) - { - set(_fail); - return *this; - } - - char ch; - stat = --n; - - while (n > 0 && (get(ch))) - { - --n; - if ((*s++ = ch) == terminator) - break; - } - - *s = 0; - return failif((stat != 0) && ((stat -= n) == 0)); -} - -// from Doug Schmidt - -// This should probably be a page size.... -#define CHUNK_SIZE 512 - -/* Reads an arbitrarily long input line terminated by a user-specified - TERMINATOR. Super-nifty trick using recursion avoids unnecessary calls - to NEW! */ - -char *File::readline (int chunk_number, char terminator) -{ - char buf[CHUNK_SIZE]; - register char *bufptr = buf; - register char *ptr; - char ch; - int continu; - - while ((continu = !!get(ch)) && ch != terminator) /* fill the current buffer */ - { - *bufptr++ = ch; - if (bufptr - buf >= CHUNK_SIZE) /* prepend remainder to ptr buffer */ - { - if (ptr = readline (chunk_number + 1, terminator)) - - for (; bufptr != buf; *--ptr = *--bufptr); - - return ptr; - } - } - if (!continu && bufptr == buf) - return NULL; - - int size = (chunk_number * CHUNK_SIZE + bufptr - buf) + 1; - - if (ptr = new char[stat = size]) - { - - for (*(ptr += (size - 1)) = '\0'; bufptr != buf; *--ptr = *--bufptr) - ; - - return ptr; - } - else - return NULL; -} - -/* Reads an arbitrarily long input line terminated by TERMINATOR. - This routine allocates its own memory, so the user should - only supply the address of a (char *). */ - -File& File::gets(char **s, char terminator) -{ - if (!readable()) - { - set(_fail); - return *this; - } - - return failif(!(*s = readline (0, terminator))); -} - -#ifndef VMS -File& File::scan(const char* fmt ...) -{ - if (readable()) - { - va_list args; - va_start(args, fmt); -#ifndef HAVE_VSCANF - stat = _doscan(fp, fmt, args); -#else - stat = vfscanf(fp, fmt, args); -#endif - va_end(args); - failif(stat <= 0); - } - return *this; -} -#endif - -File& File::form(const char* fmt ...) -{ - va_list args; - va_start(args, fmt); -#ifndef HAVE_VPRINTF - stat = _doprnt(fmt, args, fp); -#ifdef HAVE_VOID_DOPRNT - stat = ferror(fp) ? -1 : 0; -#endif -#else - stat = vfprintf(fp, fmt, args); -#endif - va_end(args); - failif(stat < 0); - return *this; -} - -#ifdef VMS -extern "C" { - unlink(const char *s) - { - int remove(const char *); - - return remove(s); - } -} -#endif - diff --git a/gnu/lib/libg++/libg++/Filebuf.cc b/gnu/lib/libg++/libg++/Filebuf.cc deleted file mode 100644 index e8f331c226f..00000000000 --- a/gnu/lib/libg++/libg++/Filebuf.cc +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright (C) 1990 Free Software Foundation - written by Doug Lea (dl@rocky.oswego.edu) - -This file is part of GNU CC. - -GNU CC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY. No author or distributor -accepts responsibility to anyone for the consequences of using it -or for whether it serves any particular purpose or works at all, -unless he says so in writing. Refer to the GNU CC General Public -License for full details. - -Everyone is granted permission to copy, modify and redistribute -GNU CC, but only under the conditions described in the -GNU CC General Public License. A copy of this license is -supposed to have been given to you along with GNU CC so you -can know your rights and responsibilities. It should be in a -file named COPYING. Among other things, the copyright notice -and this notice must be preserved on all copies. -*/ - -#ifdef __GNUG__ -#pragma implementation -#endif diff --git a/gnu/lib/libg++/libg++/Makefile.gnu b/gnu/lib/libg++/libg++/Makefile.gnu deleted file mode 100644 index 212dc9cdfe8..00000000000 --- a/gnu/lib/libg++/libg++/Makefile.gnu +++ /dev/null @@ -1,463 +0,0 @@ -# Makefile for libg++.a - -# Copyright (C) 1988 Free Software Foundation -# written by Doug Lea (dl@rocky.oswego.edu) - -# This file is part of GNU CC. - -# GNU CC is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY. No author or distributor -# accepts responsibility to anyone for the consequences of using it -# or for whether it serves any particular purpose or works at all, -# unless he says so in writing. Refer to the GNU CC General Public -# License for full details. - -# Everyone is granted permission to copy, modify and redistribute -# GNU CC, but only under the conditions described in the -# GNU CC General Public License. A copy of this license is -# supposed to have been given to you along with GNU CC so you -# can know your rights and responsibilities. It should be in a -# file named COPYING. Among other things, the copyright notice -# and this notice must be preserved on all copies. - -# make parameters -- these should normally be inherited from parent make - -# ------ source locations - -# source directory for libg++.a -SRCDIR = ../src - -# source include directory -SRCIDIR= ../g++-include - -# ------ installation destinations -# ------ You will require write-permission on the destination directories -# ------ in order to `make install' - - -prefix =/usr/gnu - -# libg++.a destination -LIBDIR = $(prefix)/lib - -# executables directory: location to install the genclass class generator -BINDIR = $(prefix)/bin - -# location to install include file directory -IDIR = $(prefix)/lib/g++-include - - -# ------- System-dependent defines -# ------- use the second form of each for SystemV (USG) - -# g++ flags -OSFLAG= -#OSFLAG = -DUSG -# use this only if you have a strange stdio implementation -#OSFLAG = -DDEFAULT_filebuf - -# ld or ld++ flags -OSLDFLAG = -#OSLDFLAG= -lPW - -# how to install -INSTALL=install -c -#INSTALL=cp - -# ranlib if necessary -RANLIB=ranlib -#RANLIB=echo - -# which make? -MAKE=make - -#which ar? -AR=ar - -# not used, but convenient for those who preprocess things while compiling -SHELL=/bin/sh - - -# ------ compiler names - -# GNU C++ compiler name -GXX = g++ -#GXX=gcc - -# GNU CC compiler name (needed for some .c files in libg++.a) -CC = gcc - -# GNU loader -LDXX = $(LIBDIR)/gcc-ld++ - -# crt0+.o location (for dynamic loading tests) -GXXCRT1=$(LIBDIR)/crt1+.o - -# ------ Other compilation flags -# ------ modify as you like -- the ones here are sheer overkill - -GXX_OPTIMIZATION_FLAGS= -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized - -GCC_OPTIMIZATION_FLAGS= -O -fstrength-reduce -fdelayed-branch - -DEBUG_FLAGS= -g - -#use this only if you like to look at lots of useless messages -VERBOSITY_FLAGS= -Wall -v - -GXX_INCLUDE_DIRS= -I$(SRCIDIR) - -GCC_INCLUDE_DIRS= -I$(prefix)/lib/gcc-include -I/usr/include -I$(SRCIDIR) - -PIPE_AS= -pipe - -# Flags for all C++ compiles -GXXFLAGS = $(OSFLAG) $(GXX_INCLUDE_DIRS) $(DEBUG_FLAGS) $(GXX_OPTIMIZATION_FLAGS) $(VERBOSITY_FLAGS) $(PIPE_AS) - -# Flags for all C compiles -CFLAGS= $(OSFLAG) $(GCC_INCLUDE_DIRS) $(DEBUG_FLAGS) $(GCC_OPTIMIZATION_FLAGS) $(VERBOSITY_FLAGS) $(PIPE_AS) - -# g++ load time flags -GXXLDFLAGS = -L$(SRCDIR) -lg++ -lm $(OSLDFLAG) - -# these flags tell test0 where ld++ and crt1+.o are -TFLAGS = -DLDXX=\"$(LDXX)\" -DCRT1X=\"$(GXXCRT1)\" - -# g++ files should have extension .cc -.SUFFIXES: .cc -.cc.o: - $(GXX) $(GXXFLAGS) -c $< - -########################################################################### -# -# declarations from here on should not normally need to be changed -# in order to compile libg++.a -# - -# library sources - -OBJS = AllocRing.o Obstack.o File.o ostream.o istream.o \ - streambuf.o filebuf.o Filebuf.o \ - PlotFile.o SFile.o builtin.o \ - regex.o Regex.o String.o Integer.o Rational.o Complex.o Random.o \ - BitSet.o BitString.o LogNorm.o SmplHist.o SmplStat.o \ - Normal.o NegExp.o Weibull.o Erlang.o DiscUnif.o \ - Uniform.o Poisson.o HypGeom.o Geom.o Binomial.o \ - RNG.o ACG.o MLCG.o RndInt.o \ - Fix.o Fix16.o Fix24.o CursesW.o GetOpt.o EH.o EH2.o\ - xyzzy.o gnulib3.o new.o delete.o malloc.o chr.o dtoa.o error.o form.o gcd.o \ - hash.o itoa.o \ - lg.o fmtq.o ioob.o pow.o sqrt.o str.o timer.o bcopy.o \ - std.o ctype.o curses.o math.o compare.o - -########################################################################### -# -# compilation actions -# - -all: libg++.a - -libg++.a: $(OBJS) - rm -f libg++.a - $(AR) r libg++.a $(OBJS) - $(RANLIB) libg++.a - -install: - $(INSTALL) libg++.a $(LIBDIR)/libg++.a - -if [ -x /usr/bin/$(RANLIB) -o -x /bin/ranlib ] ; then \ - $(RANLIB) $(LIBDIR)/libg++.a; \ - fi - -clean: - rm -f *.o core - -realclean: clean - rm -f libg++.a - - -########################################################################### -# -# dependencies -# - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -ACG.o : ACG.cc $(SRCIDIR)/ACG.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h -AllocRing.o : AllocRing.cc $(SRCIDIR)/std.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/AllocRing.h $(SRCIDIR)/new.h -Binomial.o : Binomial.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/Binomial.h -BitSet.o : BitSet.cc $(SRCIDIR)/BitSet.h \ - $(SRCIDIR)/stream.h $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/streambuf.h $(SRCIDIR)/Obstack.h \ - $(SRCIDIR)/AllocRing.h $(SRCIDIR)/new.h -BitString.o : BitString.cc $(SRCIDIR)/BitString.h \ - $(SRCIDIR)/stream.h $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/streambuf.h $(SRCIDIR)/Obstack.h \ - $(SRCIDIR)/AllocRing.h $(SRCIDIR)/new.h -Complex.o : Complex.cc $(SRCIDIR)/Complex.h \ - $(SRCIDIR)/stream.h $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/streambuf.h -CursesW.o : CursesW.cc $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/stdarg.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/CursesW.h $(SRCIDIR)/curses.h -DiscUnif.o : DiscUnif.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/DiscUnif.h -EH.o : EH.cc $(SRCIDIR)/setjmp.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/streambuf.h -EH2.o : EH2.c -Erlang.o : Erlang.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/Erlang.h -File.o : File.cc $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/stdarg.h $(SRCIDIR)/sys/file.h \ - $(SRCIDIR)/sys/types.h -Filebuf.o : Filebuf.cc $(SRCIDIR)/streambuf.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/sys/file.h \ - $(SRCIDIR)/sys/types.h -Fix.o : Fix.cc $(SRCIDIR)/Fix.h \ - $(SRCIDIR)/stream.h $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/streambuf.h $(SRCIDIR)/Integer.h \ - $(SRCIDIR)/Obstack.h $(SRCIDIR)/AllocRing.h -Fix16.o : Fix16.cc $(SRCIDIR)/Fix16.h \ - $(SRCIDIR)/stream.h $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/streambuf.h -Fix24.o : Fix24.cc $(SRCIDIR)/Fix24.h \ - $(SRCIDIR)/stream.h $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/streambuf.h -Geom.o : Geom.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/Geom.h -GetOpt.o : GetOpt.cc $(SRCIDIR)/GetOpt.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/stdio.h -HypGeom.o : HypGeom.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/HypGeom.h -Integer.o : Integer.cc $(SRCIDIR)/Integer.h \ - $(SRCIDIR)/stream.h $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/streambuf.h $(SRCIDIR)/ctype.h \ - $(SRCIDIR)/Obstack.h $(SRCIDIR)/AllocRing.h \ - $(SRCIDIR)/new.h -MLCG.o : MLCG.cc $(SRCIDIR)/MLCG.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h -Normal.o : Normal.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h -NegExp.o : NegExp.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/NegExp.h -Obstack.o : Obstack.cc $(SRCIDIR)/values.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/Obstack.h -PlotFile.o : PlotFile.cc $(SRCIDIR)/PlotFile.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h -Poisson.o : Poisson.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/Poisson.h -RNG.o : RNG.cc $(SRCIDIR)/values.h \ - $(SRCIDIR)/assert.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/RNG.h -Rational.o : Rational.cc $(SRCIDIR)/Rational.h \ - $(SRCIDIR)/Integer.h $(SRCIDIR)/stream.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/streambuf.h -SFile.o : SFile.cc $(SRCIDIR)/SFile.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h -SmplHist.o : SmplHist.cc $(SRCIDIR)/stream.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/streambuf.h \ - $(SRCIDIR)/SmplHist.h \ - $(SRCIDIR)/SmplStat.h -SmplStat.o : SmplStat.cc $(SRCIDIR)/stream.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/streambuf.h \ - $(SRCIDIR)/SmplStat.h -String.o : String.cc $(SRCIDIR)/String.h \ - $(SRCIDIR)/stream.h $(SRCIDIR)/File.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/streambuf.h $(SRCIDIR)/ctype.h \ - $(SRCIDIR)/new.h $(SRCIDIR)/regex.h -Uniform.o : Uniform.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/Uniform.h -Weibell.o : Weibell.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/Random.h \ - $(SRCIDIR)/RNG.h $(SRCIDIR)/assert.h \ - $(SRCIDIR)/Weibull.h -chr.o : chr.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/AllocRing.h -dtoa.o : dtoa.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/AllocRing.h -error.o : error.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h -filebuf.o : filebuf.cc $(SRCIDIR)/streambuf.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/sys/file.h \ - $(SRCIDIR)/sys/types.h -form.o : form.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/stdarg.h \ - $(SRCIDIR)/AllocRing.h -gcd.o : gcd.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h -hash.o : hash.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h -istream.o : istream.cc $(SRCIDIR)/stream.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/streambuf.h \ - $(SRCIDIR)/stdarg.h $(SRCIDIR)/ctype.h \ - $(SRCIDIR)/Obstack.h -itoa.o : itoa.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/AllocRing.h -lg.o : lg.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h -fmtq.o : fmtq.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/AllocRing.h -ioob.o : ioob.cc $(SRCIDIR)/Obstack.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/stdio.h -new.o : new.cc $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/malloc.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h -ostream.o : ostream.cc $(SRCIDIR)/stream.h \ - $(SRCIDIR)/File.h $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/streambuf.h \ - $(SRCIDIR)/stdarg.h $(SRCIDIR)/ctype.h \ - $(SRCIDIR)/Obstack.h -pow.o : pow.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h -regex.o : regex.cc $(SRCIDIR)/std.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/malloc.h $(SRCIDIR)/regex.h -sqrt.o : sqrt.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h -str.o : str.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/AllocRing.h -streambuf.o : streambuf.cc $(SRCIDIR)/streambuf.h \ - $(SRCIDIR)/builtin.h $(SRCIDIR)/stddef.h \ - $(SRCIDIR)/std.h $(SRCIDIR)/stdio.h \ - $(SRCIDIR)/math.h $(SRCIDIR)/values.h \ - $(SRCIDIR)/File.h -timer.o : timer.cc $(SRCIDIR)/builtin.h \ - $(SRCIDIR)/stddef.h $(SRCIDIR)/std.h \ - $(SRCIDIR)/stdio.h $(SRCIDIR)/math.h \ - $(SRCIDIR)/values.h $(SRCIDIR)/osfcn.h \ - $(SRCIDIR)/time.h $(SRCIDIR)/sys/types.h \ - $(SRCIDIR)/sys/socket.h $(SRCIDIR)/sys/resource.h -xyzzy.o : xyzzy.cc - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/gnu/lib/libg++/libg++/PlotFile.cc b/gnu/lib/libg++/libg++/PlotFile.cc deleted file mode 100644 index 485c984b08a..00000000000 --- a/gnu/lib/libg++/libg++/PlotFile.cc +++ /dev/null @@ -1,183 +0,0 @@ -// This may look like C code, but it is really -*- C++ -*- -/* -Copyright (C) 1988 Free Software Foundation - written by Doug Lea (dl@rocky.oswego.edu) - -This file is part of GNU CC. - -GNU CC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY. No author or distributor -accepts responsibility to anyone for the consequences of using it -or for whether it serves any particular purpose or works at all, -unless he says so in writing. Refer to the GNU CC General Public -License for full details. - -Everyone is granted permission to copy, modify and redistribute -GNU CC, but only under the conditions described in the -GNU CC General Public License. A copy of this license is -supposed to have been given to you along with GNU CC so you -can know your rights and responsibilities. It should be in a -file named COPYING. Among other things, the copyright notice -and this notice must be preserved on all copies. -*/ - -#ifdef __GNUG__ -#pragma implementation -#endif -#include <PlotFile.h> - -/* - PlotFile implementation module -*/ - - -PlotFile:: PlotFile() {} -PlotFile::~PlotFile() {} - - -PlotFile::PlotFile(const char* filename, io_mode m, access_mode a) -:(filename, m, a) {} - -PlotFile::PlotFile(const char* filename, const char* m) -:(filename, m) {} - -PlotFile::PlotFile(int filedesc, const io_mode m) -:(filedesc, m) {} - -PlotFile::PlotFile(FILE* fileptr) -:(fileptr) {} - -PlotFile::operator void*() -{ - return (state & (_bad|_fail))? 0 : this ; -} - - -PlotFile& PlotFile::open(const char* filename, - io_mode m, access_mode a) -{ - File::open(filename, m, a); return *this; -} - -PlotFile& PlotFile::open(const char* filename, const char* m) -{ - File::open(filename, m); return *this; -} - -PlotFile& PlotFile::open(int filedesc, io_mode m) -{ - File::open(filedesc, m); return *this; -} - -PlotFile& PlotFile::open(FILE* fileptr) -{ - File::open(fileptr); return *this; -} - -PlotFile& PlotFile::setbuf(const int buffer_kind) -{ - File::setbuf(buffer_kind); return *this; -} - -PlotFile& PlotFile::setbuf(const int size, char* buf) -{ - File::setbuf(size, buf); return *this; -} - - -PlotFile& PlotFile:: cmd(char c) -{ - File::put(c); - return *this; -} - -PlotFile& PlotFile:: operator<<(const int x) -{ -#if defined(convex) - File::put((char)(x>>8)); - File::put((char)(x&0377)); -#else - File::put((char)(x&0377)); - File::put((char)(x>>8)); -#endif - return *this; -} - -PlotFile& PlotFile:: operator<<(const char *s) -{ - File::put(s); - return *this; -} - - -PlotFile& PlotFile:: arc(const int xi, const int yi, - const int x0, const int y0, - const int x1, const int y1) -{ - return cmd('a') << xi << yi << x0 << y0 << x1 << y1; -} - - -PlotFile& PlotFile:: box(const int x0, const int y0, - const int x1, const int y1) -{ - line(x0, y0, x0, y1); - line(x0, y1, x1, y1); - line(x1, y1, x1, y0); - return line(x1, y0, x0, y0); -} - -PlotFile& PlotFile:: circle(const int x, const int y, const int r) -{ - return cmd('c') << x << y << r; -} - -PlotFile& PlotFile:: cont(const int xi, const int yi) -{ - return cmd('n') << xi << yi; -} - -PlotFile& PlotFile:: dot(const int xi, const int yi, const int dx, - int n, const int* pat) -{ - cmd('d') << xi << yi << dx << n; - while (n-- > 0) *this << *pat++; - return *this; -} - -PlotFile& PlotFile:: erase() -{ - return cmd('e'); -} - -PlotFile& PlotFile:: label(const char* s) -{ - return cmd('t') << s << "\n"; -} - -PlotFile& PlotFile:: line(const int x0, const int y0, - const int x1, const int y1) -{ - return cmd('l') << x0 << y0 << x1 << y1; -} - -PlotFile& PlotFile:: linemod(const char* s) -{ - return cmd('f') << s << "\n"; -} - -PlotFile& PlotFile:: move(const int xi, const int yi) -{ - return cmd('m') << xi << yi; -} - -PlotFile& PlotFile:: point(const int xi, const int yi) -{ - return cmd('p') << xi << yi; -} - -PlotFile& PlotFile:: space(const int x0, const int y0, - const int x1, const int y1) -{ - return cmd('s') << x0 << y0 << x1 << y1; -} |
