From: Ben Pfaff Date: Thu, 11 Dec 2003 07:37:23 +0000 (+0000) Subject: Wed Dec 10 23:32:47 2003 Ben Pfaff X-Git-Tag: v0.4.0~479 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55a63940956bc1fba3f113d59a4c26e549704de6;p=pspp-builds.git Wed Dec 10 23:32:47 2003 Ben Pfaff * sysdeps/: Removed, because everything was too old to be useful anymore. --- diff --git a/ChangeLog b/ChangeLog index 7ee9ca18..e45419e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Dec 10 23:32:47 2003 Ben Pfaff + + * sysdeps/: Removed, because everything was too old to be useful + anymore. + Sun Jan 2 21:24:32 2000 Ben Pfaff * Makefile.am: Require Automake 1.4 or later. It's been out for diff --git a/sysdeps/ChangeLog b/sysdeps/ChangeLog deleted file mode 100644 index 74e6766d..00000000 --- a/sysdeps/ChangeLog +++ /dev/null @@ -1,9 +0,0 @@ -Sun Aug 9 11:17:39 1998 Ben Pfaff - - * README: New file. - ----------------------------------------------------------------------- -Local Variables: -mode: change-log -version-control: never -End: diff --git a/sysdeps/README b/sysdeps/README deleted file mode 100644 index 5a4ede64..00000000 --- a/sysdeps/README +++ /dev/null @@ -1,8 +0,0 @@ --*- text -*- - -The files in this directory were at one time useful for compiling PSPP -under Borland C++ 5.0 for Windows. They may or may not be useful any -longer. They are provided without any assurance that they are up to -date. Use at your own risk. - --blp diff --git a/sysdeps/borlandc5.0/ChangeLog b/sysdeps/borlandc5.0/ChangeLog deleted file mode 100644 index 0beaf5b3..00000000 --- a/sysdeps/borlandc5.0/ChangeLog +++ /dev/null @@ -1,60 +0,0 @@ -Sun Aug 9 11:15:17 1998 Ben Pfaff - - * pspp.iwz.in: Update name of sm-gnu-head.bmp. - - * sm-gnu-head.bmp: Renamed sm-gnu-hd.bmp. - -Fri Dec 5 23:01:44 1997 Ben Pfaff - - * fiasco.ico: Renamed pspp.ico. - - * fiasco.ide: Renamed pspp.ide. - - * fiasco.iwz.in: Renamed pspp.iwz.in. - -Wed Aug 20 12:52:43 1997 Ben Pfaff - - * fiasco.iwz.in: Updated. - -Sat Aug 16 11:02:38 1997 Ben Pfaff - - * mk-bc5-dist: No longer run from toplevel Makefile. - - * unix2dos.pl: Moved here from the top level. - - * pref.h: Removed. - -Thu Aug 14 22:19:46 1997 Ben Pfaff - - * fiasco.iwz.in: Revised. - - * pref.h: Updated from pref.h.orig. - - * fiasco.ide: Updated. - -Sun Aug 3 11:50:23 1997 Ben Pfaff - - * fiasco.ico: New file, icon for Fiasco. - - * fiasco.iwz.in: New file, InstallShield template for Fiasco. - - * setup1.bmp: New file, Bitmap displayed during installation. - - * sm-gnu-head.bmp: New file, small GNU head from - www.gnu.org converted to BMP format. - -Thu Jul 17 02:20:09 1997 Ben Pfaff - - * New directory for Windows support via Borland C++ 5.0. - - * bc5-con32s.c: Combines _read.c and _write from the old - sysdeps/borlandc4.0 directory. - - * config.h, libintl.h, pref.h, version.c: Standard files adapted - to Borland C++ 5.0. - ----------------------------------------------------------------------- -Local Variables: -mode: change-log -version-control: never -End: diff --git a/sysdeps/borlandc5.0/bc5-con32s.c b/sysdeps/borlandc5.0/bc5-con32s.c deleted file mode 100644 index ec55ab84..00000000 --- a/sysdeps/borlandc5.0/bc5-con32s.c +++ /dev/null @@ -1,95 +0,0 @@ -/* con32s - emulates console under Windows. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. - Written by Ben Pfaff . - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ - -/* This replaces a few of the Borland C++ library functions. It does - not use any of the runtime library header files, so you do not need - the runtime library source in order to compile it. */ - -#include -#include -#include - -/* 1=It is necessary to emulate the console window. */ -int _emu_console; - -/* Exported by con32s.c. */ -extern int _blp_console_read (void *buf, unsigned len); - -/* Exported by Borland runtime library. */ -extern long _handles[]; -extern int __IOerror (int); -extern int __NTerror (void); - -/* Replaces Borland library function. */ -int -_rtl_read (int fd, void *buf, unsigned len) -{ - DWORD nread; - - if ((unsigned) fd >= _nfile) - return __IOerror (ERROR_INVALID_HANDLE); - - /* Redirect stdin to the faked console window. */ - if (_emu_console && fd < 3) - return _blp_console_read (buf, len); - - if (ReadFile ((HANDLE) _handles[fd], buf, (DWORD) len, &nread, NULL) != 1) - return __NTerror (); - else - return (int) nread; -} - -/* Replaces Borland library function. */ -int -_rtl_write (int fd, const void *buf, unsigned int len) -{ - DWORD written; - - if ((unsigned) fd >= _nfile) - return __IOerror (ERROR_INVALID_HANDLE); - - /* Redirect stdout, stderr to the faked console window. */ - if (_emu_console && fd < 3) - return _blp_console_write (buf, len); - - if (WriteFile ((HANDLE) _handles[fd], (PVOID) buf, (DWORD) len, &written, - NULL) != 1) - return __NTerror (); - else - return (int) written; -} - -void -determine_os (void) -{ -#pragma startup determine_os 64 - DWORD nButtons; - - /* Try out a random console function. If it fails then we must not - have a console. - - Believe it or not, this seems to be the only way to determine - reliably whether we're running under 3.1. If you know a better - way, let me know. */ - if (GetNumberOfConsoleMouseButtons (&nButtons)) - _emu_console = 0; - else - _emu_console = 1; -} - diff --git a/sysdeps/borlandc5.0/config.h b/sysdeps/borlandc5.0/config.h deleted file mode 100644 index a90e84ce..00000000 --- a/sysdeps/borlandc5.0/config.h +++ /dev/null @@ -1,303 +0,0 @@ -/* config.h.in. Generated automatically from configure.in by autoheader. */ -/* Special definitions, to process by autoheader. - Copyright (C) 1997 Free Software Foundation. */ - -/* Definitions for byte order, according to significance of bytes, from low - addresses to high addresses. The value is what you get by putting '4' - in the most significant byte, '3' in the second most significant byte, - '2' in the second least significant byte, and '1' in the least - significant byte. These definitions never need to be modified. */ -#define BIG 4321 /* 68k */ -#define LITTLE 1234 /* i[3456]86 */ -#define UNKNOWN 0000 /* Endianness must be determined at runtime. */ - -/* Definitions for floating-point representation. */ -#define FPREP_IEEE754 754 /* The usual IEEE-754 format. */ -#define FPREP_UNKNOWN 666 /* Triggers an error at compile time. */ - -/* We want prototypes for all the GNU extensions. */ -#define _GNU_SOURCE 1 - -/* The concatenation of the strings "GNU ", and PACKAGE. */ -#define GNU_PACKAGE "GNU PSPP" - -/* Define to the name of the distribution. */ -#define PACKAGE "PSPP" - -/* Define to 1 if ANSI function prototypes are usable. */ -#define PROTOTYPES 1 - -/* Define to the version of the distribution. */ -#define VERSION "0.1.0" - -/* Define if using alloca.c. */ -#undef C_ALLOCA - -/* Define to empty if the keyword does not work. */ -#undef const - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -#define CRAY_STACKSEG_END - -/* Define if you have alloca, as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define if you have and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Define if you don't have vprintf but do have _doprnt. */ -#undef HAVE_DOPRNT - -/* Define if you have a working `mmap' system call. */ -#undef HAVE_MMAP - -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF 1 - -/* Define as __inline if that's what the C compiler calls it. */ -#define inline - -/* Define to `long' if doesn't define. */ -#undef off_t - -/* Define if you need to in order for stat and other things to work. */ -#undef _POSIX_SOURCE - -/* Define to `unsigned' if doesn't define. */ -#undef size_t - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -#undef STACK_DIRECTION - -/* Define if the `S_IS*' macros in do not work properly. */ -#undef STAT_MACROS_BROKEN - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - -/* Define if your declares struct tm. */ -#undef TM_IN_SYS_TIME - -/* Define if sprintf() returns the number of characters written to - the destination string, excluding the null terminator. */ -#define HAVE_GOOD_SPRINTF 1 - -/* Define endianness of computer here as BIG or LITTLE, if known. - If not known, define as UNKNOWN. */ -#define ENDIAN LITTLE - -/* Define as floating-point representation of this computer. For - i386, m68k, and other common chips, this is FPREP_IEEE754. */ -#define FPREP FPREP_IEEE754 - -/* Number of digits in longest `long' value, including sign. This is - usually 11, for 32-bit `long's, or 19, for 64-bit `long's. */ -#define INT_DIGITS 11 - -/* Define if you have the history library (-lhistory). */ -#undef HAVE_LIBHISTORY - -/* Define if you have the termcap library (-ltermcap). */ -#undef HAVE_LIBTERMCAP - -/* Define if your locale.h file contains LC_MESSAGES. */ -#define HAVE_LC_MESSAGES 1 - -/* Define to 1 if NLS is requested. */ -#undef ENABLE_NLS - -/* Define as 1 if you have catgets and don't want to use GNU gettext. */ -#undef HAVE_CATGETS - -/* Define as 1 if you have gettext and don't want to use GNU gettext. */ -#undef HAVE_GETTEXT - -/* Define as 1 if you have the stpcpy function. */ -#define HAVE_STPCPY 1 - -/* The number of bytes in a double. */ -#define SIZEOF_DOUBLE 8 - -/* The number of bytes in a float. */ -#define SIZEOF_FLOAT 4 - -/* The number of bytes in a int. */ -#define SIZEOF_INT 4 - -/* The number of bytes in a long. */ -#define SIZEOF_LONG 4 - -/* The number of bytes in a long double. */ -#define SIZEOF_LONG_DOUBLE 12 - -/* The number of bytes in a long long. */ -#define SIZEOF_LONG_LONG - -/* The number of bytes in a short. */ -#define SIZEOF_SHORT 2 - -/* Define if you have the __argz_count function. */ -#undef HAVE___ARGZ_COUNT - -/* Define if you have the __argz_next function. */ -#undef HAVE___ARGZ_NEXT - -/* Define if you have the __argz_stringify function. */ -#undef HAVE___ARGZ_STRINGIFY - -/* Define if you have the __setfpucw function. */ -#undef HAVE___SETFPUCW - -/* Define if you have the dcgettext function. */ -#undef HAVE_DCGETTEXT - -/* Define if you have the finite function. */ -#undef HAVE_FINITE - -/* Define if you have the getcwd function. */ -#undef HAVE_GETCWD - -/* Define if you have the getdelim function. */ -#undef HAVE_GETDELIM - -/* Define if you have the gethostname function. */ -#undef HAVE_GETHOSTNAME - -/* Define if you have the getline function. */ -#undef HAVE_GETLINE - -/* Define if you have the getpagesize function. */ -#undef HAVE_GETPAGESIZE - -/* Define if you have the getpid function. */ -#define HAVE_GETPID 1 - -/* Define if you have the isinf function. */ -#undef HAVE_ISINF - -/* Define if you have the isnan function. */ -#undef HAVE_ISNAN - -/* Define if you have the memchr function. */ -#define HAVE_MEMCHR 1 - -/* Define if you have the memmem function. */ -#define HAVE_MEMMEM 0 - -/* Define if you have the memmove function. */ -#define HAVE_MEMMOVE 1 - -/* Define if you have the memset function. */ -#define HAVE_MEMSET 1 - -/* Define if you have the munmap function. */ -#undef HAVE_MUNMAP - -/* Define if you have the putenv function. */ -#define HAVE_PUTENV 1 - -/* Define if you have the setenv function. */ -#undef HAVE_SETENV - -/* Define if you have the setlocale function. */ -#define HAVE_SETLOCALE 1 - -/* Define if you have the stpcpy function. */ -#define HAVE_STPCPY 1 - -/* Define if you have the strcasecmp function. */ -#undef HAVE_STRCASECMP - -/* Define if you have the strchr function. */ -#undef HAVE_STRCHR - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR 1 - -/* Define if you have the strncasecmp function. */ -#undef HAVE_STRNCASECMP - -/* Define if you have the strpbrk function. */ -#define HAVE_STRPBRK 1 - -/* Define if you have the strstr function. */ -#define HAVE_STRSTR 1 - -/* Define if you have the strtod function. */ -#define HAVE_STRTOD 1 - -/* Define if you have the strtol function. */ -#define HAVE_STRTOL 1 - -/* Define if you have the strtoul function. */ -#define HAVE_STRTOUL 1 - -/* Define if you have the header file. */ -#undef HAVE_ARGZ_H - -/* Define if you have the header file. */ -#undef HAVE_FPU_CONTROL_H - -/* Define if you have the header file. */ -#define HAVE_LIMITS_H 1 - -/* Define if you have the header file. */ -#define HAVE_LOCALE_H 1 - -/* Define if you have the header file. */ -#define HAVE_MALLOC_H 1 - -/* Define if you have the header file. */ -#define HAVE_MEMORY_H 1 - -/* Define if you have the header file. */ -#undef HAVE_NL_TYPES_H - -/* Define if you have the header file. */ -#undef HAVE_READLINE_HISTORY_H - -/* Define if you have the header file. */ -#undef HAVE_READLINE_READLINE_H - -/* Define if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define if you have the header file. */ -#undef HAVE_SYS_TIME_H - -/* Define if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define if you have the header file. */ -#undef HAVE_TERMCAP_H - -/* Define if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define if you have the header file. */ -#define HAVE_VALUES_H 1 - -/* Define if you have the i library (-li). */ -#undef HAVE_LIBI - -/* Define if you have the m library (-lm). */ -#undef HAVE_LIBM - -/* Define if you have the readline library (-lreadline). */ -#undef HAVE_LIBREADLINE - -#include - -/* Local Variables: */ -/* mode:c */ -/* End: */ diff --git a/sysdeps/borlandc5.0/libintl.h b/sysdeps/borlandc5.0/libintl.h deleted file mode 100644 index 67dbe228..00000000 --- a/sysdeps/borlandc5.0/libintl.h +++ /dev/null @@ -1,20 +0,0 @@ -/* PSPP - computes sample statistics. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. - Written by Ben Pfaff . - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ - -/* Nothing needed here. */ diff --git a/sysdeps/borlandc5.0/mk-bc5-dist b/sysdeps/borlandc5.0/mk-bc5-dist deleted file mode 100755 index fc6e9012..00000000 --- a/sysdeps/borlandc5.0/mk-bc5-dist +++ /dev/null @@ -1,69 +0,0 @@ -#! /bin/sh -e - -# This script makes a source distribution for compilation under -# Borland C++ 5.0. It also produces a .iwz file for use with -# InstallShield Express. - -if test "$1" = ""; then - echo "usage: $0 \'DOS-path-to-PSPP-source\' \'DOS-path-to-Borland-C++-5.0-root\'" -fi - -test -f src/q2c.c || (echo "Not in PSPP source directory" && exit 1) - -make distdir - -DOSROOT="$1" -VERSION=`sed -ne 's/^.*\[//;s/].*$//;/^[0-9]*\.[0-9]*\.[0-9]*$/p' < configure.in` -BC5ROOT=`pwd`/pspp-$VERSION-bc5 -DISTROOT=`pwd` - -rm -rf $BC5ROOT -cp -r pspp-$VERSION $BC5ROOT -rm -f $DISTROOT/manualfiles.tmp -rm -f $DISTROOT/testsfiles.tmp - -cd $BC5ROOT/doc -texi2html -number -monolithic FAQ.texi - -mkdir $BC5ROOT/manual -cd $BC5ROOT/manual -texi2html -menu -number -split_node ../doc/pspp.texi -cp pspp_toc.html index.html - -n_manual=0 -for d in *; do - n_manual=`expr $n_manual + 1` - echo "Group5File$n_manual=${DOSROOT}\\MANUAL\\$d" >> $DISTROOT/manualfiles.tmp -done - -cd $BC5ROOT/tests -n_tests=0 -for d in *; do - n_tests=`expr $n_tests + 1` - echo "Group3File$n_tests=${DOSROOT}\\TESTS\\$d" >> $DISTROOT/testsfiles.tmp -done - -SEDDOSROOT=`echo "$1" | sed 's/\\\\/\\\\\\\\/'` -echo "s%@BASEDIR@%$SEDDOSROOT%g" > $DISTROOT/bc5.sed -SEDBC5BASEDIR=`echo "$2" | sed 's/\\\\/\\\\\\\\/'` -echo "s%@BC5BASEDIR@%$SEDBC5BASEDIR%g" >> $DISTROOT/bc5.sed -echo "s%@MANUALCOUNT@%$n_manual%g" >> $DISTROOT/bc5.sed -echo "s%@TESTSCOUNT@%$n_tests%g" >> $DISTROOT/bc5.sed - -IN=$BC5ROOT/sysdeps/borlandc5.0/pspp.iwz.in -OUT=$BC5ROOT/pspp.iwz -sed -n -f $DISTROOT/bc5.sed -e '1,/^Group3Dir/p' < $IN > $OUT -cat $DISTROOT/testsfiles.tmp >> $OUT -sed -n -f $DISTROOT/bc5.sed -e '/^Group4Size/,/^Group5Dir/p' < $IN >> $OUT -cat $DISTROOT/manualfiles.tmp < $IN >> $OUT -sed -n -f $DISTROOT/bc5.sed -e '/^Group5Size/,$p' < $IN >> $OUT - -cp $BC5ROOT/sysdeps/borlandc5.0/pspp.ide $BC5ROOT/pspp.ide -cp $BC5ROOT/pref.h.orig $BC5ROOT/sysdeps/borlandc5.0/pref.h - -rm $DISTROOT/manualfiles.tmp -rm $DISTROOT/testsfiles.tmp -rm $DISTROOT/bc5.sed - -find $BC5ROOT -type f | xargs perl $DISTROOT/sysdeps/borlandc5.0/unix2dos.pl -find $BC5ROOT -name \*.bak | xargs rm -f diff --git a/sysdeps/borlandc5.0/pspp.ico b/sysdeps/borlandc5.0/pspp.ico deleted file mode 100755 index 4157a06a..00000000 Binary files a/sysdeps/borlandc5.0/pspp.ico and /dev/null differ diff --git a/sysdeps/borlandc5.0/pspp.ide b/sysdeps/borlandc5.0/pspp.ide deleted file mode 100644 index be51720f..00000000 Binary files a/sysdeps/borlandc5.0/pspp.ide and /dev/null differ diff --git a/sysdeps/borlandc5.0/pspp.iwz.in b/sysdeps/borlandc5.0/pspp.iwz.in deleted file mode 100755 index 867f1edc..00000000 --- a/sysdeps/borlandc5.0/pspp.iwz.in +++ /dev/null @@ -1,383 +0,0 @@ -[InstallShield Wizard] -iDate=0 -iTime=0 -Flag=0 -ISX.EXE Size=668160 -ISX.EXE Date=12:49:10AM 12/18/1996 -ISX.EXE Ver=1.11.0.0 -SETUP.EXE Size=44928 -SETUP.EXE Date=1:04:12PM 11/4/1996 -SETUP.EXE Ver=3.0.107.0 -SETUP.INS Size=66760 -SETUP.INS Date=5:50:16PM 3/7/1997 -SETUP.INS Ver=Not available -_INST16.EX_ Size=66760 -_INST16.EX_ Date=5:50:16PM 3/7/1997 -_INST16.EX_ Ver=Not available -_INST32I.EX_ Size=320276 -_INST32I.EX_ Date=4:17:32PM 11/5/1996 -_INST32I.EX_ Ver=Not available -ISDEPEND.INI Size=5102 -ISDEPEND.INI Date=4:31:20PM 6/11/1996 -ISDEPEND.INI Ver=Not available -SWDEPEND.INI Size=4605 -SWDEPEND.INI Date=1:12:52AM 3/12/1997 -SWDEPEND.INI Ver=Not available -ICOMP.EXE Size=119808 -ICOMP.EXE Date=3:05:10PM 1/15/1996 -ICOMP.EXE Ver=3.00.062 -SPLIT.EXE Size=90624 -SPLIT.EXE Date=3:09:36PM 1/15/1996 -SPLIT.EXE Ver=3.00.060 -PACKLIST.EXE Size=87552 -PACKLIST.EXE Date=3:10:30PM 1/15/1996 -PACKLIST.EXE Ver=3.00.060 -Version=1.11a -DevTool=for Borland C++ 5.0 -Platform=Win32 -PtrBase=30100 -PtrPosY=227 -PtrPage=4 -DisksBuilt=1 -DisksDir=PSPP\144MB\ -TabsVisit=1111111110000111111 -LangNum=0 - -[VisualDesign] -AppName=PSPP -AppExe=[Program Files]\pspp.exe -Version=0.1.0 -Company=Free Software Foundation -Title=PSPP -TitleType=1 -BackgrndBmp=@BASEDIR@\sysdeps\borlandc5.0\sm-gnu-hd.bmp -BackgrndAlign=4 -Backgrnd=1 -BackgrndColor=0 -Uninstall=1 -Silent=1 -SmsMode=0 - -[RegEntries] -Reg1Path=HKEY_CLASSES_ROOT -Reg1Val1Type=0 -Reg1Val1Name=(Default) -Reg1Val1Data=(value not set) -Reg1Vals=1 -Reg2Path=HKEY_CURRENT_USER -Reg2Val1Type=0 -Reg2Val1Name=(Default) -Reg2Val1Data=(value not set) -Reg2Vals=1 -Reg3Path=HKEY_LOCAL_MACHINE -Reg3Val1Type=0 -Reg3Val1Name=(Default) -Reg3Val1Data=(value not set) -Reg3Vals=1 -Reg4Path=HKEY_USERS -Reg4Val1Type=0 -Reg4Val1Name=(Default) -Reg4Val1Data=(value not set) -Reg4Vals=1 -Reg5Path=HKEY_CURRENT_CONFIG -Reg5Val1Type=0 -Reg5Val1Name=(Default) -Reg5Val1Data=(value not set) -Reg5Vals=1 -Reg6Path=HKEY_DYN_DATA -Reg6Val1Type=0 -Reg6Val1Name=(Default) -Reg6Val1Data=(value not set) -Reg6Vals=1 -Reg7Path=HKEY_CLASSES_ROOT\PSPP.Script -Reg7PathUninstall=1 -Reg7Val1Type=0 -Reg7Val1Name=(Default) -Reg7Val1Data=PSPP Script -Reg7Vals=1 -Reg8Path=HKEY_CLASSES_ROOT\PSPP.Script\shell -Reg8PathUninstall=1 -Reg8Val1Type=0 -Reg8Val1Name=(Default) -Reg8Val1Data=(value not set) -Reg8Vals=1 -Reg9Path=HKEY_CLASSES_ROOT\PSPP.Script\shell\open -Reg9PathUninstall=1 -Reg9Val1Type=0 -Reg9Val1Name=(Default) -Reg9Val1Data=(value not set) -Reg9Vals=1 -Reg10Path=HKEY_CLASSES_ROOT\.stat -Reg10PathUninstall=1 -Reg10Val1Type=0 -Reg10Val1Name=(Default) -Reg10Val1Data=PSPP.Script -Reg10Vals=1 -Reg11Path=HKEY_CLASSES_ROOT\PSPP.Script\DefaultIcon -Reg11PathUninstall=1 -Reg11Val1Type=0 -Reg11Val1Name=(Default) -Reg11Val1Data=\PSPP.ICO -Reg11Vals=1 -Reg12Path=HKEY_CLASSES_ROOT\.sps -Reg12PathUninstall=1 -Reg12Val1Type=0 -Reg12Val1Name=(Default) -Reg12Val1Data=PSPP.Script -Reg12Vals=1 -Reg13Path=HKEY_CLASSES_ROOT\.spss -Reg13PathUninstall=1 -Reg13Val1Type=0 -Reg13Val1Name=(Default) -Reg13Val1Data=PSPP.Script -Reg13Vals=1 -Reg14Path=HKEY_CLASSES_ROOT\PSPP.Script\shell\open\command -Reg14PathUninstall=1 -Reg14Val1Type=0 -Reg14Val1Name=(Default) -Reg14Val1Data=\PSPP.EXE %1 -Reg14Vals=1 -Reg15Path=HKEY_CLASSES_ROOT\.lst -Reg15PathUninstall=1 -Reg15Val1Type=0 -Reg15Val1Name=(Default) -Reg15Val1Data=PSPP.Listing -Reg15Vals=1 -Reg16Path=HKEY_CLASSES_ROOT\.list -Reg16PathUninstall=1 -Reg16Val1Type=0 -Reg16Val1Name=(Default) -Reg16Val1Data=PSPP.Listing -Reg16Vals=1 -Reg17Path=HKEY_CLASSES_ROOT\PSPP.Listing -Reg17PathUninstall=1 -Reg17Val1Type=0 -Reg17Val1Name=(Default) -Reg17Val1Data=PSPP Listing Output -Reg17Vals=1 -Reg18Path=HKEY_CLASSES_ROOT\PSPP.Listing\shell -Reg18PathUninstall=1 -Reg18Val1Type=0 -Reg18Val1Name=(Default) -Reg18Val1Data=(value not set) -Reg18Vals=1 -Reg19Path=HKEY_CLASSES_ROOT\PSPP.Listing\shell\open -Reg19PathUninstall=1 -Reg19Val1Type=0 -Reg19Val1Name=(Default) -Reg19Val1Data=(value not set) -Reg19Vals=1 -Reg20Path=HKEY_CLASSES_ROOT\PSPP.Listing\shell\open\command -Reg20PathUninstall=1 -Reg20Val1Type=0 -Reg20Val1Name=(Default) -Reg20Val1Data=\NOTEPAD.EXE %1 -Reg20Vals=1 -Reg21Path=HKEY_CLASSES_ROOT\PSPP.Listing\DefaultIcon -Reg21PathUninstall=1 -Reg21Val1Type=0 -Reg21Val1Name=(Default) -Reg21Val1Data=\PSPP.ICO -Reg21Vals=1 -Regs=21 - -[Registry] -Reg1Path=HKEY_CLASSES_ROOT\PSPP.Script -Reg1PathUninstall=1 -Reg1ValName=(Default) -Reg1ValType=0 -Reg1ValData=PSPP Script -Reg2Path=HKEY_CLASSES_ROOT\PSPP.Script\shell -Reg2PathUninstall=1 -Reg3Path=HKEY_CLASSES_ROOT\PSPP.Script\shell\open -Reg3PathUninstall=1 -Reg4Path=HKEY_CLASSES_ROOT\.stat -Reg4PathUninstall=1 -Reg4ValName=(Default) -Reg4ValType=0 -Reg4ValData=PSPP.Script -Reg5Path=HKEY_CLASSES_ROOT\PSPP.Script\DefaultIcon -Reg5PathUninstall=1 -Reg5ValName=(Default) -Reg5ValType=0 -Reg5ValData=\PSPP.ICO -Reg6Path=HKEY_CLASSES_ROOT\.sps -Reg6PathUninstall=1 -Reg6ValName=(Default) -Reg6ValType=0 -Reg6ValData=PSPP.Script -Reg7Path=HKEY_CLASSES_ROOT\.spss -Reg7PathUninstall=1 -Reg7ValName=(Default) -Reg7ValType=0 -Reg7ValData=PSPP.Script -Reg8Path=HKEY_CLASSES_ROOT\PSPP.Script\shell\open\command -Reg8PathUninstall=1 -Reg8ValName=(Default) -Reg8ValType=0 -Reg8ValData=\PSPP.EXE %1 -Reg9Path=HKEY_CLASSES_ROOT\.lst -Reg9PathUninstall=1 -Reg9ValName=(Default) -Reg9ValType=0 -Reg9ValData=PSPP.Listing -Reg10Path=HKEY_CLASSES_ROOT\.list -Reg10PathUninstall=1 -Reg10ValName=(Default) -Reg10ValType=0 -Reg10ValData=PSPP.Listing -Reg11Path=HKEY_CLASSES_ROOT\PSPP.Listing -Reg11PathUninstall=1 -Reg11ValName=(Default) -Reg11ValType=0 -Reg11ValData=PSPP Listing Output -Reg12Path=HKEY_CLASSES_ROOT\PSPP.Listing\shell -Reg12PathUninstall=1 -Reg13Path=HKEY_CLASSES_ROOT\PSPP.Listing\shell\open -Reg13PathUninstall=1 -Reg14Path=HKEY_CLASSES_ROOT\PSPP.Listing\shell\open\command -Reg14PathUninstall=1 -Reg14ValName=(Default) -Reg14ValType=0 -Reg14ValData=\NOTEPAD.EXE %1 -Reg15Path=HKEY_CLASSES_ROOT\PSPP.Listing\DefaultIcon -Reg15PathUninstall=1 -Reg15ValName=(Default) -Reg15ValType=0 -Reg15ValData=\PSPP.ICO -Regs=15 - -[Groups] -Groups=6 -Group1Size=421589 -Group1Files=6 -Group1Name=Program Files -Group1Dir= -Group1File1=@BASEDIR@\pspp.exe -Group1File2=@BASEDIR@\config\devices -Group1File3=@BASEDIR@\config\papersize -Group1File4=@BASEDIR@\config\ps-prologue -Group1File5=@BASEDIR@\COPYING -Group1File6=@BASEDIR@\sysdeps\borlandc5.0\pspp.ICO -Group2Size=43097 -Group2Files=4 -Group2Name=Help Files - HTML -Group2Dir=\HELP -Group2File1=@BASEDIR@\doc\BUGS.html -Group2File2=@BASEDIR@\doc\LANGUAGE.html -Group2File3=@BASEDIR@\doc\README.html -Group2File4=@BASEDIR@\doc\THANKS.html -Group3Size=104388 -Group3Files=@TESTSCOUNT@ -Group3Name=Test Files -Group3Dir=\TESTS -Group4Size=63652 -Group4Files=7 -Group4Name=Help Files - ASCII -Group4Dir=\HELP\ASCII -Group4File1=@BASEDIR@\BUGS -Group4File2=@BASEDIR@\LANGUAGE -Group4File3=@BASEDIR@\NEWS -Group4File4=@BASEDIR@\README -Group4File5=@BASEDIR@\THANKS -Group4File6=@BASEDIR@\TODO -Group4File7=@BASEDIR@\AUTHORS -Group5Size=336614 -Group5Files=@MANUALCOUNT@ -Group5Name=Manual - HTML -Group5Dir=\HELP\MANUAL -Group6Size=229376 -Group6Files=1 -Group6Auto=108 -Group6ID=38308 -Group6Name=System Files -Group6Dir= -Group6File1=@BC5BASEDIR@\BIN\CW3220.DLL -Group6File1Auto=108 - -[Components] -Components=4 -Component1Groups=2 -Component1Name=Application Files -Component1Description=Application files needed to run the application -Component1GroupList=1 6 -Component2Groups=2 -Component2Name=Help and Tutorial Files -Component2Description=Help and tutorial needed for online help -Component2GroupList=2 4 -Component3Groups=1 -Component3Name=Sample Files -Component3Description=Sample data files -Component3GroupList=3 -Component4Groups=1 -Component4Name=Manual - HTML -Component4Description=On-line manual in World Wide Web HTML format. -Component4GroupList=5 - -[Types] -Types=3 -Type1Components=4 -Type1Name=Custom -Type1ComponentList=1 2 3 4 -Type2Components=4 -Type2Name=Typical -Type2ComponentList=1 2 3 4 -Type3Components=1 -Type3Name=Compact -Type3ComponentList=1 - -[Sequence] -DestinationLocationDir=\Free Software Foundation\PSPP -SelectProgramFolderName=PSPP -WelcomeMessage=1 -LicenseAgreement=1 -LicenseAgreementFile=@BASEDIR@\copying -DestinationLocation=1 -SetupType=1 -CustomSetup=1 -CustomSetupGroupSel=1 -SelectProgramFolder=1 -BeginFileTransfer=1 -ProgressBar=1 -Billboards=1 -BillboardsFile=@BASEDIR@\sysdeps\borlandc5.0\ -SetupComplete=1 - -[Icons] -Icons=5 -Icon1Cmd=[Program Files]\pspp.exe -Icon1Description=PSPP -Icon1WorkingDir=[Program Files] -Icon1IconFile=[Program Files]\pspp.ICO -Icon1RealFile=@BASEDIR@\sysdeps\borlandc5.0\pspp.ICO -Icon1WhichIcon=0 -Icon1KeyVirtual=0 -Icon1KeyFlags=0 -Icon2Cmd=[Help Files - HTML]\BUGS.html -Icon2Description=Bugs -Icon2WorkingDir=[Help Files - HTML] -Icon2RealFile=@BASEDIR@\doc\BUGS.html -Icon2WhichIcon=0 -Icon2KeyVirtual=0 -Icon2KeyFlags=0 -Icon3Cmd=[Help Files - HTML]\LANGUAGE.html -Icon3Description=Language Notes -Icon3WorkingDir=[Help Files - HTML] -Icon3RealFile=@BASEDIR@\doc\LANGUAGE.html -Icon3WhichIcon=0 -Icon3KeyVirtual=0 -Icon3KeyFlags=0 -Icon4Cmd=[Help Files - HTML]\README.html -Icon4Description=README -Icon4WorkingDir=[Help Files - HTML] -Icon4RealFile=@BASEDIR@\doc\README.html -Icon4WhichIcon=0 -Icon4KeyVirtual=0 -Icon4KeyFlags=0 -Icon5Cmd=[Manual - HTML]\pspp_toc.html -Icon5Description=Manual -Icon5WorkingDir=[Manual - HTML] -Icon5RealFile=@BASEDIR@\MANUAL\pspp_toc.html -Icon5WhichIcon=0 -Icon5KeyVirtual=0 -Icon5KeyFlags=0 diff --git a/sysdeps/borlandc5.0/setup1.bmp b/sysdeps/borlandc5.0/setup1.bmp deleted file mode 100755 index 620981e0..00000000 Binary files a/sysdeps/borlandc5.0/setup1.bmp and /dev/null differ diff --git a/sysdeps/borlandc5.0/sm-gnu-hd.bmp b/sysdeps/borlandc5.0/sm-gnu-hd.bmp deleted file mode 100755 index 6aaa8afc..00000000 Binary files a/sysdeps/borlandc5.0/sm-gnu-hd.bmp and /dev/null differ diff --git a/sysdeps/borlandc5.0/unix2dos.pl b/sysdeps/borlandc5.0/unix2dos.pl deleted file mode 100644 index 95ee10d9..00000000 --- a/sysdeps/borlandc5.0/unix2dos.pl +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/perl -while (<>) { - if ($ARGV ne $oldargv) { - $translate = -T $ARGV; - rename($ARGV, $ARGV . '.bak'); - open(ARGVOUT, ">$ARGV"); - select(ARGVOUT); - $oldargv = $ARGV; - } - if ($translate) { - chop; - $_ .= " -"; - } -} -continue { - print; # this prints to original filename -} -select(STDOUT); diff --git a/sysdeps/borlandc5.0/version.c b/sysdeps/borlandc5.0/version.c deleted file mode 100644 index e7284769..00000000 --- a/sysdeps/borlandc5.0/version.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -char bare_version[] = VERSION; -char version[] = GNU_PACKAGE " " VERSION; -char stat_version[] = GNU_PACKAGE " " VERSION - " (Fri Jul 11 12:33:09 GMT-5:00 1997)."; -char host_system[] = "i586-borlandc5.0"; -char build_system[] = "i586-borlandc5.0"; diff --git a/sysdeps/windows/README b/sysdeps/windows/README deleted file mode 100644 index 63258b4e..00000000 --- a/sysdeps/windows/README +++ /dev/null @@ -1,10 +0,0 @@ -PSPP currently runs only as a console-mode application under Windows -environments. Since Windows 3.1 does not provide a console, PSPP -needs special assistance to run under Windows 3.1. con32s is a small -library that I have developed to do this. This directory contains the -compiler-independent portion of con32s. There is also a small -compiler-dependent portion that need to be written for each compiler. -See the example for Borland C++ for more details. - - -blp - diff --git a/sysdeps/windows/con32s.c b/sysdeps/windows/con32s.c deleted file mode 100644 index f184f870..00000000 --- a/sysdeps/windows/con32s.c +++ /dev/null @@ -1,504 +0,0 @@ -/* con32s - emulates Windows console. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. - Written by Ben Pfaff . - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - This program 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 - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ - -#include -#include -#include -#include -#include -#include -#include - -typedef struct line_struct line; -struct line_struct - { - line *next, *prev; /* next and previous lines */ - char *text; /* text */ - int len; /* number of characters in text */ - int size; /* maximum allocated size for text */ - }; /* line */ - -/* Pointer to tail end of text lines. */ -static line *tail; - -/* Console window created. */ -static int inited = 0; - -/* Console window title. */ -static const char *title = _("Con32s Console Emulator by Ben Pfaff"); - -/* Important variables. */ -HINSTANCE _hInstance; -HINSTANCE _hPrev; -LPSTR _cmdline; -int _nCmdShow; - -/* Console window. */ -HWND wnd; - -/* Width, height of a single character in the console font. */ -int cw, ch; - -/* Width, height of console window in characters. */ -int nw, nh; - -/* Keyboard buffer. */ -#define MAX_KBD_BUF 80 /* Maximum number of characters to buffer. */ -char kbd[MAX_KBD_BUF]; -char *hp, *tp; /* Keyboard buffer head, tail. */ - -static void -outmsg (char *format,...) -{ - va_list args; - char s[128]; - - va_start (args, format); - vsprintf (s, format, args); - va_end (args); - MessageBox (_hInstance, s, "Con32s", - MB_OK | MB_ICONHAND | MB_SYSTEMMODAL); -} - -static void * -xmalloc (size_t size) -{ - void *vp; - if (size == 0) - return NULL; - vp = malloc (size); - if (!vp) - { - MessageBox (NULL, _("xmalloc(): out of memory"), NULL, MB_OK); - exit (EXIT_FAILURE); - } - return vp; -} - -static void * -xrealloc (void *ptr, size_t size) -{ - void *vp; - if (!size) - { - if (ptr) - free (ptr); - return NULL; - } - if (ptr) - vp = realloc (ptr, size); - else - vp = malloc (size); - if (!vp) - { - MessageBox (NULL, _("xrealloc(): out of memory"), NULL, MB_OK); - exit (EXIT_FAILURE); - } - return vp; -} - -void _blp_console_init (void); -void _blp_console_yield (void); -void _blp_console_paint (void); -void find_console_top (line ** top); -void find_console_bottom (int *x, int *y, line ** bottom); - -static void -writechar (int c) -{ - int x, y; - line *bottom; - - static HDC dc; - - if (c == 10000) - { - if (dc) - { - ReleaseDC (wnd, dc); - dc = 0; - } - return; - } - - if (!tail) - { - tail = xmalloc (sizeof (line)); - tail->next = tail->prev = NULL; - tail->text = NULL; - tail->len = tail->size = 0; - } - - switch (c) - { - case '\n': - { - tail->next = xmalloc (sizeof (line)); - tail->next->prev = tail; - tail = tail->next; - tail->next = NULL; - tail->text = NULL; - tail->len = tail->size = 0; - } - break; - case '\r': - break; - case '\b': - { - find_console_bottom (&x, &y, &bottom); - if (tail->len) - tail->len--; - else - { - tail = tail->prev; - free (tail->next); - tail->next = NULL; - } - - if (x > 1) - { - if (!dc) - { - dc = GetDC (wnd); - SelectObject (dc, GetStockObject (ANSI_FIXED_FONT)); - assert (dc); - } - TextOut (dc, x * cw, y * ch, " ", 1); - return; - } - } - break; - default: - { - if (tail->len + 1 > tail->size) - { - tail->size += 16; - tail->text = xrealloc (tail->text, tail->size); - } - - find_console_bottom (&x, &y, &bottom); - tail->text[tail->len++] = c; - if (y < nh) - { - if (!dc) - { - dc = GetDC (wnd); - SelectObject (dc, GetStockObject (ANSI_FIXED_FONT)); - assert (dc); - } - TextOut (dc, x * cw, y * ch, &tail->text[tail->len - 1], 1); - return; - } - } - break; - } - InvalidateRect (wnd, NULL, TRUE); -} - -/* Writes LEN bytes from BUF to the fake console window. */ -int -_blp_console_write (const void *buf, unsigned len) -{ - int i; - - if (!inited) - _blp_console_init (); - for (i = 0; i < len; i++) - writechar (((char *) buf)[i]); - writechar (10000); - return len; -} - -/* Reads one character from the fake console window. A whole line - is read at once, then spoon-fed to the runtime library. */ -#if __BORLANDC__ -#pragma argsused -#endif -int -_blp_console_read (const void *t1, unsigned t2) -{ - static char buf[1024]; - static int len; - static int n; - - MSG msg; - - int c; - - if (!inited) - _blp_console_init (); - if (n < len) - { - *(char *) t1 = buf[n]; - n++; - return 1; - } - - printf ("_"); - len = n = 0; - while (GetMessage ((LPMSG) & msg, NULL, 0, 0)) - { - TranslateMessage ((LPMSG) & msg); - DispatchMessage ((LPMSG) & msg); - - while (hp != tp) - { - c = *(unsigned char *) tp; - if (++tp >= &kbd[MAX_KBD_BUF]) - tp = kbd; - if ((c >= 32 && c < 128) || c == '\b' || c == '\r') - switch (c) - { - case '\b': - if (len <= 0) - break; - printf ("\b\b_"); - len--; - break; - default: - if (len >= 1022) - break; - if (c == '\r') - { - buf[len++] = '\n'; - printf ("\b\n"); - *(char *) t1 = buf[n]; - n++; - return 1; - } - buf[len++] = c; - printf ("\b%c_", c); - break; - } - } - } - len = 0; - return 0; -} - -LRESULT CALLBACK _export _blp_console_wndproc (HWND, UINT, WPARAM, LPARAM); - -void -_blp_console_init (void) -{ - WNDCLASS wc; - - if (inited) - return; - inited = 1; - wc.style = CS_HREDRAW | CS_VREDRAW; - wc.lpfnWndProc = _blp_console_wndproc; - wc.cbClsExtra = 0; - wc.cbWndExtra = 0; - wc.hInstance = (HINSTANCE) _hInstance; - wc.hIcon = LoadIcon (NULL, IDI_APPLICATION); - wc.hCursor = LoadCursor (NULL, IDC_ARROW); - wc.hbrBackground = CreateSolidBrush (RGB (255, 255, 255)); - wc.lpszMenuName = NULL; - wc.lpszClassName = "blp_console"; - if (!RegisterClass (&wc)) - { - MessageBox ((HWND) 0, _("RegisterClass(): returned 0."), - "_blp_console_init()", MB_APPLMODAL | MB_OK); - exit (EXIT_FAILURE); - } - - wnd = CreateWindow ("blp_console", title, WS_OVERLAPPEDWINDOW, - CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, - CW_USEDEFAULT, NULL, (HMENU) 0, (HINSTANCE) _hInstance, - NULL); - if (!wnd) - { - MessageBox ((HWND) 0, _("CreateWindow(): returned 0."), - "_blp_console_init()", MB_APPLMODAL | MB_OK); - exit (EXIT_FAILURE); - } - - ShowWindow (wnd, _nCmdShow); - - hp = tp = kbd; -} - -LRESULT CALLBACK _export -_blp_console_wndproc (HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) -{ - char s[80]; - - switch (msg) - { - case WM_CREATE: - { - HDC dc = GetDC (hwnd); - TEXTMETRIC tm; - int success; - - SelectObject (dc, GetStockObject (ANSI_FIXED_FONT)); - success = GetTextMetrics (dc, &tm); - assert (success); - cw = tm.tmMaxCharWidth; - ch = tm.tmHeight; - success = ReleaseDC (hwnd, dc); - assert (success); - return 0; - } - case WM_PAINT: - _blp_console_paint (); - return 0; - case WM_CHAR: - { - if (hp + 1 != tp && (hp != &kbd[MAX_KBD_BUF - 1] || tp != kbd)) - { - *hp++ = wp; - if (hp >= &kbd[MAX_KBD_BUF]) - hp = kbd; - } - } - break; - } - return DefWindowProc (hwnd, msg, wp, lp); -} - -static void -find_console_top (line ** top) -{ - int success; - - /* Line count. */ - int lc; - - /* Line iterator. */ - line *iter; - - /* Scratch line. */ - static line temp; - - /* Client rectangle. */ - RECT r; - - success = GetClientRect (wnd, &r); - assert (success); - nw = r.right / cw; - if (nw < 1) - nw = 1; - nh = r.bottom / ch; - if (nh < 1) - nh = 1; - - /* Find the beginning of the text to display. */ - for (lc = 0, iter = tail; iter; iter = iter->prev) - { - if (!iter->len) - lc++; - else - lc += (iter->len / nw) + (iter->len % nw > 0); - if (lc >= nh || !iter->prev) - break; - } - if (lc > nh) - { - temp = *iter; - temp.text += nw * (lc - nh); - temp.len -= nw * (lc - nh); - *top = &temp; - } - else - *top = iter; -} - -static void -find_console_bottom (int *x, int *y, line ** bottom) -{ - find_console_top (bottom); - *x = *y = 0; - if (!*bottom) - return; - while (1) - { - if ((*bottom)->len == 0) - (*y)++; - else - (*y) += ((*bottom)->len / nw) + ((*bottom)->len % nw > 0); - if (!(*bottom)->next) - break; - *bottom = (*bottom)->next; - } - *x = (*bottom)->len % nw; - (*y)--; -} - -void -_blp_console_paint (void) -{ - PAINTSTRUCT ps; - HDC dc; - - /* Current screen location. */ - int x, y; - - /* Current line. */ - line *iter; - - dc = BeginPaint (wnd, &ps); - assert (dc); - - find_console_top (&iter); - - /* Display the text. */ - SelectObject (dc, GetStockObject (ANSI_FIXED_FONT)); - SetTextColor (dc, RGB (0, 0, 0)); - for (y = 0; iter; iter = iter->next) - { - if (!iter->len) - { - y += ch; - continue; - } - for (x = 0; x < iter->len; x += nw) - { - TextOut (dc, 0, y, &iter->text[x], - iter->len - x > nw ? nw : iter->len - x); - y += ch; - } - } - - EndPaint (wnd, &ps); -} - -int main (int argc, char *argv[], char *env[]); - -#if __BORLANDC__ -#pragma argsused -#endif -int CALLBACK -WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int nCmdShow) -{ - int result; - MSG msg; - - char *pgmname = "PSPP"; - - _hInstance = inst; - _hPrev = prev; - _cmdline = cmdline; - _nCmdShow = nCmdShow; - - result = main (1, &pgmname, NULL); - - return result; -}