home *** CD-ROM | disk | FTP | other *** search
- /*
- * This file is part of the portable Forth environment written in ANSI C.
- * Copyright (C) 1995 Dirk Uwe Zoller
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- * See the GNU Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * This file is version 0.9.13 of 17-July-95
- * Check for the latest version of this package via anonymous ftp at
- * roxi.rz.fht-mannheim.de:/pub/languages/forth/pfe-VERSION.tar.gz
- * or sunsite.unc.edu:/pub/languages/forth/pfe-VERSION.tar.gz
- * or ftp.cygnus.com:/pub/forth/pfe-VERSION.tar.gz
- *
- * Please direct any comments via internet to
- * duz@roxi.rz.fht-mannheim.de.
- * Thank You.
- */
- /*
- * version.c --- this file is touched everytime pfe is compiled.
- * (duz 19Feb94)
- */
-
- #include "support.h"
-
- char version_string [] =
- "A portable Forth environment written in C. "
- "Version "VERSION" of "DATE"";
-
- char copyright_string [] =
- "\nCopyright Dirk Uwe Zoller 1995.";
-
- char license_string [] =
- "\n"
- "\nThis program is free software; you can redistribute it and/or"
- "\nmodify it under the terms of the GNU Library General Public"
- "\nLicense as published by the Free Software Foundation; either"
- "\nversion 2 of the License, or (at your option) any later version. ";
-
- char warranty_string [] =
- "\n"
- "\nThis program is distributed in the hope that it will be useful,"
- "\nbut WITHOUT ANY WARRANTY; without even the implied warranty of"
- "\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU"
- "\nLibrary General Public License for more details."
- "\n"
- "\nYou should have received a copy of the GNU Library General Public"
- "\nLicense along with this program; if not, write to the Free Software"
- "\nFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ";
-
- char compile_date [] = __DATE__;
- char compile_time [] = __TIME__;
-
- uCell
- pfe_version_code (void)
- /* return a magic-number identifiing the exact version */
- {
- static char *str [] = { version_string, compile_date, compile_time };
- uCell n = 0;
- int i;
- char *p;
-
- for (i = 0; i < DIM (str); i++)
- for (p = str [i]; *p; p++)
- n = n * 7 + *p - '@';
- return n;
- }
-