Stephen Adams [Tue, 2 Dec 1997 05:53:21 +0000 (05:53 +0000)]
Changed error report for duplicate names to explicitly mention the
duplicated names.
Chris Hanson [Sat, 29 Nov 1997 04:37:25 +0000 (04:37 +0000)]
Change font-name parsing code so that it will properly parse fonts
whose names begin with a digit.
Chris Hanson [Thu, 20 Nov 1997 05:51:58 +0000 (05:51 +0000)]
Add some missing packages to the Win32 implementation.
Chris Hanson [Thu, 20 Nov 1997 05:51:30 +0000 (05:51 +0000)]
Define process filter to strip carriage-returns from the output of a
process. Change COMINT-EXEC to start a buffer's process -before- the
buffer's major mode is set, so that process filters can be defined in
the mode hooks.
Chris Hanson [Thu, 20 Nov 1997 05:27:45 +0000 (05:27 +0000)]
Change interface to process-filter.
Chris Hanson [Wed, 19 Nov 1997 23:40:59 +0000 (23:40 +0000)]
Change interface to process-filter.
Chris Hanson [Wed, 19 Nov 1997 08:39:34 +0000 (08:39 +0000)]
Add compiler flag that specifies to compile the object files for use
in a DLL. Change optimization target from 486 to Pentium Pro.
Chris Hanson [Sun, 16 Nov 1997 23:12:44 +0000 (23:12 +0000)]
Fix instruction that causes an assembler error on newer assemblers.
Chris Hanson [Thu, 13 Nov 1997 08:01:59 +0000 (08:01 +0000)]
Fix bugs relating to handling of messages whose bodies have been
removed from the server.
Chris Hanson [Wed, 12 Nov 1997 22:58:59 +0000 (22:58 +0000)]
Fix think-o.
Chris Hanson [Wed, 12 Nov 1997 22:38:03 +0000 (22:38 +0000)]
Fix code that determines system directory. My memory as to the
relevant environment variable was faulty when I wrote this.
Chris Hanson [Wed, 12 Nov 1997 22:14:09 +0000 (22:14 +0000)]
Final changes to previous change, to eliminate compiler warnings and
other minor problems.
Chris Hanson [Wed, 12 Nov 1997 08:40:05 +0000 (08:40 +0000)]
Rewrite OS/2 and NT versions of CURRENT-USER-NAME,
CURRENT-HOME-DIRECTORY, and USER-HOME-DIRECTORY to use the same
heuristics in both systems. Improve the heuristics so that these
procedures will work with a minimum number of environment bindings.
Chris Hanson [Tue, 11 Nov 1997 13:20:29 +0000 (13:20 +0000)]
Signal error when unable to determine user name or home directory.
Chris Hanson [Tue, 11 Nov 1997 12:52:15 +0000 (12:52 +0000)]
Signal error when unable to determine user name or home directory.
Chris Hanson [Tue, 11 Nov 1997 12:47:40 +0000 (12:47 +0000)]
Reverse earlier decision: ignore errors that occur with "$" and "~"
syntax in pathnames.
Chris Hanson [Thu, 6 Nov 1997 07:43:46 +0000 (07:43 +0000)]
Fix typo.
Chris Hanson [Thu, 6 Nov 1997 07:41:56 +0000 (07:41 +0000)]
Eliminate compiler warnings.
Chris Hanson [Thu, 6 Nov 1997 06:57:42 +0000 (06:57 +0000)]
Place BCC field after any CC fields.
Chris Hanson [Tue, 4 Nov 1997 11:04:52 +0000 (11:04 +0000)]
Implement direct SMTP mail transmission. This is for Windows systems,
which don't have a sendmail daemon, but it can be used on any system
that supports sockets.
Chris Hanson [Tue, 4 Nov 1997 11:02:07 +0000 (11:02 +0000)]
Define SUBSTRING->NONNEGATIVE-INTEGER.
Chris Hanson [Tue, 4 Nov 1997 09:27:31 +0000 (09:27 +0000)]
Eliminate old and incompatible definition of READ-LINE.
Chris Hanson [Sat, 1 Nov 1997 19:33:58 +0000 (19:33 +0000)]
Use newly-extended OPEN-TCP-STREAM-SOCKET.
Chris Hanson [Sat, 1 Nov 1997 19:21:16 +0000 (19:21 +0000)]
Change OPEN-TCP-STREAM-SOCKET and OPEN-UNIX-STREAM-SOCKET to return
one port instead of two, and to allow optional arguments to specify
the buffer size and line translation. Increase the default buffer
size to 4096 bytes.
Chris Hanson [Sat, 1 Nov 1997 19:19:39 +0000 (19:19 +0000)]
Change OPEN-TCP-STREAM-SOCKET and OPEN-UNIX-STREAM-SOCKET to return
one port instead of two, and to allow optional arguments to specify
the buffer size and line translation. Increase the default buffer
size to 4096 bytes.
Chris Hanson [Sat, 1 Nov 1997 19:12:16 +0000 (19:12 +0000)]
Change default line translation for TCP stream sockets. These almost
always use CR/LF, regardless of the operating system.
Chris Hanson [Sat, 1 Nov 1997 19:09:16 +0000 (19:09 +0000)]
Fix to match change in "osio.h".
Chris Hanson [Sat, 1 Nov 1997 07:36:14 +0000 (07:36 +0000)]
Add new procedure OS/HOSTNAME.
Chris Hanson [Sat, 1 Nov 1997 07:33:44 +0000 (07:33 +0000)]
OS/HOSTNAME now defined in runtime system.
Chris Hanson [Sat, 1 Nov 1997 07:27:36 +0000 (07:27 +0000)]
Add new primitives GET-HOST-NAME and CANONICAL-HOST-NAME.
Chris Hanson [Sat, 1 Nov 1997 07:19:26 +0000 (07:19 +0000)]
Add new primitives GET-HOST-NAME and CANONICAL-HOST-NAME.
Chris Hanson [Sat, 1 Nov 1997 07:10:30 +0000 (07:10 +0000)]
Add new primitives GET-HOST-NAME and CANONICAL-HOST-NAME.
Chris Hanson [Fri, 31 Oct 1997 01:24:24 +0000 (01:24 +0000)]
Add generalized mechanism for formation of mail return address. The
new mechanism matches that of Emacs.
Chris Hanson [Sun, 26 Oct 1997 09:32:53 +0000 (09:32 +0000)]
Partially undo last change. Time-stamp problem is more complicated
than I originally thought.
Chris Hanson [Sun, 26 Oct 1997 09:15:18 +0000 (09:15 +0000)]
Change method used to get file information. It turns out that
GetFileInformationByHandle is returning incorrect time stamps for
files on a Samba filesystem, but FindFirstFile returns correct time
stamps in the same circumstance. This discrepancy becomes apparent
when switching between daylight-savings and standard time.
Chris Hanson [Sun, 26 Oct 1997 08:05:37 +0000 (08:05 +0000)]
Add socket and gdbm support for Win32.
Chris Hanson [Sun, 26 Oct 1997 08:05:01 +0000 (08:05 +0000)]
Add socket support for Win32.
Chris Hanson [Sun, 26 Oct 1997 08:03:37 +0000 (08:03 +0000)]
Initial revision
Chris Hanson [Sun, 26 Oct 1997 01:35:59 +0000 (01:35 +0000)]
Add support for compressed and encrypted files.
Chris Hanson [Sat, 25 Oct 1997 22:43:43 +0000 (22:43 +0000)]
Add support for Blowfish and MD5.
Chris Hanson [Sat, 25 Oct 1997 07:40:26 +0000 (07:40 +0000)]
Add ability to handle named pipes. This should be all that is
necessary to manage the client side of a named pipe.
Chris Hanson [Sat, 25 Oct 1997 07:38:45 +0000 (07:38 +0000)]
Fix problem with previous change. Must explicitly close the handle
copies that are passed to the subprocess. Otherwise the pipe won't be
deleted at the appropriate time, and PeekNamedPipe won't be able to
tell when the child closes its write handle.
Chris Hanson [Sat, 25 Oct 1997 00:15:13 +0000 (00:15 +0000)]
Fix method used to pass stdio handles to a subprocess. Method used by
Emacs, and recommended in (some parts of) the M$ documentation,
involves side-effects to Scheme's stdio handles. Better method is to
use the STARTUPINFO datastructure to tell CreateProcess what handles
to use -- no side-effects.
Chris Hanson [Fri, 24 Oct 1997 07:25:05 +0000 (07:25 +0000)]
* Change channel data structure. Now, instead of being tagged with a
"type", it is tagged with a "class". The "class" has associated
operations, so that basic channel operations such as reading and
writing are generic. This change allows the code to be modularized
a bit better, and will facilitate the introduction of sockets.
* Eliminate the procedure NT_pipe_channel_available, replacing it with
the generic procedure NT_channel_n_read.
* Eliminate references to long-obsolete "console" stuff.
* Change file-pointer positioning code to use SetFilePointer rather
than __llseek.
* Don't try to signal an error if MsgWaitForMultipleObjects returns an
unexpected answer -- only if it returns WAIT_FAILED. We are only
using it as a mechanism for blocking.
* Make cosmetic changes, eliminating unnecessary instances of "DEFUN"
and the like. These were introduced for unix, because there were
non-ANSI compilers at that time. On NT, all compilers are ANSI.
Chris Hanson [Fri, 24 Oct 1997 07:24:07 +0000 (07:24 +0000)]
In OS_process_wait, replace use of Sleep and WaitForSingleObject with
MsgWaitForMultipleObjects, so that the procedure responds immediately
whenever anything interesting happens.
Chris Hanson [Fri, 24 Oct 1997 06:55:43 +0000 (06:55 +0000)]
Fix bugs in code that terminates a subprocess. Make sure that
subprocess handles are closed at the appropriate times.
Chris Hanson [Fri, 24 Oct 1997 06:47:56 +0000 (06:47 +0000)]
When killing a subprocess on NT, close our end of the channels talking
to the subprocess. It turns out that some processes don't close
properly until this is done.
Chris Hanson [Wed, 22 Oct 1997 23:01:16 +0000 (23:01 +0000)]
Fix typo in previous change.
Chris Hanson [Wed, 22 Oct 1997 20:00:47 +0000 (20:00 +0000)]
Change OS/MAKE-SUBPROCESS to use new OS-specific primitive.
Chris Hanson [Wed, 22 Oct 1997 20:00:17 +0000 (20:00 +0000)]
Fix bugs from most recent changes.
Chris Hanson [Wed, 22 Oct 1997 07:26:34 +0000 (07:26 +0000)]
Use new unix-specific primitive to start subprocesses.
Stephen Adams [Wed, 22 Oct 1997 06:47:47 +0000 (06:47 +0000)]
Implemented a pattern based peephole optimizer.
Main improvements:
1. every CONS-[MULTI]CLOSURE saves one instruction
2. most funcalls save one stack access
3. fixnum arithmetic (plus and minus constants)
4. fixnum case of generic add/subtract constant
5. fixnum bitwise operations with constants (and/or/not)
1 and 2 give about 5% on closure/funcall heavy code.
3-5 are improvements made possible by the screwy fixnum tag.
`Natural' fixnum tags would make them obsolete (but some of the
rewrites are as good). 5 improves hash table operations up to 10% due
to how `flags' are implemented.
Chris Hanson [Wed, 22 Oct 1997 05:40:53 +0000 (05:40 +0000)]
Eliminate compiler warnings.
Chris Hanson [Wed, 22 Oct 1997 05:40:36 +0000 (05:40 +0000)]
Add missing include.
Chris Hanson [Wed, 22 Oct 1997 05:31:29 +0000 (05:31 +0000)]
Implement subprocess support under NT. Requires runtime 14.174 or
later.
Chris Hanson [Wed, 22 Oct 1997 05:27:26 +0000 (05:27 +0000)]
Extensive reworking of the "select" interface, so that it can work
with pipes. We no longer use the NT API calls, since they don't work
at all with pipes; instead we use simpler tests and depend on the
regular arrival of messages to get us out of the blocking state to
poll the other input channels. Regular message delivery is guaranteed
by the asynchronous timer thread.
Chris Hanson [Wed, 22 Oct 1997 05:26:45 +0000 (05:26 +0000)]
Initial revision
Chris Hanson [Wed, 22 Oct 1997 05:25:31 +0000 (05:25 +0000)]
Deprecate operating-system-independent interface OS_make_subprocess.
New interface is OS-specific, moving pecularities (e.g. converting
unix-style argument vector to OS/2-style command line) into the
runtime system. New OS-independent interface
OS_process_any_status_change.
Chris Hanson [Wed, 22 Oct 1997 05:23:25 +0000 (05:23 +0000)]
Add code to create anonymous pipes, to determine how many characters
are in the pipe given the read end of the pipe, and to implement
non-blocking mode when reading a pipe. Fix OS_channel_write to
generate correct error messages.
Chris Hanson [Wed, 22 Oct 1997 05:22:31 +0000 (05:22 +0000)]
Change PROCESS-ID primitive to assume that the ID is unsigned.
Chris Hanson [Wed, 22 Oct 1997 05:22:06 +0000 (05:22 +0000)]
Define reasonable (unsigned) type for pid_t under NT.
Chris Hanson [Wed, 22 Oct 1997 05:21:25 +0000 (05:21 +0000)]
Eliminate compiler warning.
Chris Hanson [Wed, 22 Oct 1997 05:18:12 +0000 (05:18 +0000)]
Changes to support subprocesses under NT. Requires microcode version
11.159 or later.
Chris Hanson [Wed, 22 Oct 1997 05:16:01 +0000 (05:16 +0000)]
Change MAKE-SUBPROCESS to define new interface to allow OS-specific
code to do the work of starting the subprocess.
Chris Hanson [Wed, 22 Oct 1997 05:11:11 +0000 (05:11 +0000)]
Use real subprocess support for NT.
Chris Hanson [Wed, 22 Oct 1997 05:10:03 +0000 (05:10 +0000)]
Use COMSPEC environment variable to determine shell file name if SHELL
is not defined.
Chris Hanson [Wed, 22 Oct 1997 01:21:11 +0000 (01:21 +0000)]
Change test used to decide whether an unreadable file exists. The
procedure FILE-EXISTS? gives the wrong answer when the file is a
symbolic link that points to a non-existent file.
Chris Hanson [Sat, 18 Oct 1997 03:51:24 +0000 (03:51 +0000)]
Add code to synchronize the shutdown of the asyncronous timer thread
with the deallocation of the associated state. Otherwise, the race
condition causes occasional GPFs when exiting Scheme.
Stephen Adams [Fri, 17 Oct 1997 20:24:18 +0000 (20:24 +0000)]
Changed consing code to compute the tagged pointer after storing the
elements. This reduces register pressure across the consing sequence.
Rearranged consing expression to share a common algorithm, eliminating
80 lines of code.
Stephen Adams [Fri, 17 Oct 1997 01:32:18 +0000 (01:32 +0000)]
Added some comments.
Stephen Adams [Fri, 17 Oct 1997 01:25:41 +0000 (01:25 +0000)]
Changed the instruction sequence for procedure return (and computed
jump). The code for clearing the type code from a continuation now
loads the value into a register instead of modifying it in-place on
the stack.
I have left the code using an indirect jump. An alternative is to
push the value back on the stack and do a RET. The indirect jump
seems faster, especially when returning to the same address as the
previous jump, but the branch prediction mechanisms for RET and JMP
seem quite different.
Speeds up the modified Gabriel Benchmark Suite (/scheme/8.0/src/bench)
by 10% overall! I guess this is because the Pentium Pro really
doesn't like the old read-modify-write instruction.
Test Old New Ratio
ctak 11.59 11.54 0.996
conform 0.62 0.50 0.806
traverse 1.57 0.92 0.586
takl 0.23 0.20 0.870
peval 0.40 0.35 0.875
browse 0.59 0.56 0.949
tak 0.28 0.25 0.893
wttree 1.61 1.49 0.925
deriv 0.34 0.29 0.853
boyer 0.47 0.42 0.894
div 0.42 0.39 0.929
dderiv 0.44 0.38 0.864
cpstak 0.42 0.41 0.976
matmul1 0.27 0.27 1.000
fib 0.68 0.55 0.809
fcomp 0.61 0.54 0.885
triangle 2.89 2.36 0.817
puzzle 0.47 0.47 1.000
matmul2 0.66 0.69 1.045
destruct 0.28 0.28 1.000
~a.mean - - 0.899
~g.mean - - 0.892
Stephen Adams [Wed, 15 Oct 1997 03:25:55 +0000 (03:25 +0000)]
Moved open-coding of VECTOR?, %RECORD? and CHAR? from SF to
open-coders in compiler.
Stephen Adams [Wed, 15 Oct 1997 01:22:00 +0000 (01:22 +0000)]
Fix typo.
Stephen Adams [Wed, 15 Oct 1997 01:17:07 +0000 (01:17 +0000)]
Added primitive CHAR?
Stephen Adams [Wed, 15 Oct 1997 00:52:15 +0000 (00:52 +0000)]
Added primitives VECTOR? and %RECORD?
Stephen Adams [Tue, 14 Oct 1997 14:20:05 +0000 (14:20 +0000)]
Added open-coding for MAKE-CELL.
Stephen Adams [Fri, 10 Oct 1997 21:06:19 +0000 (21:06 +0000)]
Improved disassembly output:
- New comments to the right of LAP code, mostly the address of @pco
branches so you can see where it is jumping.
- correctly decodes the word field after a
(call (entry short-primitive-apply))
rather than trying to disassemble the offset as instructions and
getting out of sync with the subsequent instructions.
Stephen Adams [Tue, 7 Oct 1997 19:35:48 +0000 (19:35 +0000)]
Use `cp -p' to preserve file times.
Stephen Adams [Tue, 7 Oct 1997 19:34:24 +0000 (19:34 +0000)]
use `cp -p' to preserve file times.
Stephen Adams [Tue, 7 Oct 1997 19:33:49 +0000 (19:33 +0000)]
Use `cp -p' to preserve file times.
Stephen Adams [Tue, 7 Oct 1997 19:29:13 +0000 (19:29 +0000)]
Typo in previous change.
Stephen Adams [Tue, 7 Oct 1997 04:19:46 +0000 (04:19 +0000)]
Fixed so that "1/pivot" is rejected as a number, rather than dividing
by zero. Change: divide only if there is at least one denominator
digit.
This is not a good fix, but I need it now for some existing code. The
parser ought to be restructured not to compute the real part until it
is known that the imaginary part is valid, e.g.
(string->number "1/2+3") => #F
(string->number "1/0+3") => error
(string->number "1/0-transition") => error
There is a similar problem with exponent calculation:
(string->number "
1e9999e1") => error
(string->number "
1e99999999e1") => `hangs' in bignum primitives
Of course, the difficulty with these non-numbers is probably the
reason behind R4RS's restriction on valid identifiers. That is pretty
feeble, since I don't recall R4RS saying that STRING->NUMBER is
allowed to signal an error. Note that the current code would work
fine in a lazy language, so a few DELAYs and FORCEs might be the most
elegant fix (and OK effciency since FORCE is now compiled.)
Stephen Adams [Sun, 5 Oct 1997 05:44:37 +0000 (05:44 +0000)]
Changed compuation of pc_in_C: with dynamically loaded libraries,
there is no guarantee that valid C addressed are bounded above by
_etext.
Stephen Adams [Fri, 3 Oct 1997 13:43:41 +0000 (13:43 +0000)]
Thinko in replacements for INTEGER-NEGATIVE? and INTEGER-POSITIVE?
(was doing fixnum replacement for known-to-be exact integer arguments
rather than known-to-be fixnum arguments.
Chris Hanson [Fri, 3 Oct 1997 07:26:54 +0000 (07:26 +0000)]
Fix typo.
Chris Hanson [Fri, 3 Oct 1997 06:00:26 +0000 (06:00 +0000)]
Fix typo in previous change.
Stephen Adams [Thu, 2 Oct 1997 20:10:10 +0000 (20:10 +0000)]
Fix typo in instructions.
Stephen Adams [Thu, 2 Oct 1997 19:52:53 +0000 (19:52 +0000)]
Added -export-dynamic to the LD switches so that SWAT (and other
dynamic libraries) can load.
Stephen Adams [Thu, 2 Oct 1997 19:19:44 +0000 (19:19 +0000)]
Changed %STRING-APPEND to (APPLY STRING-APPEND ...) because someone
removed %STRING-APPEND from the system.
Stephen Adams [Thu, 2 Oct 1997 19:16:40 +0000 (19:16 +0000)]
Fixed copyright date and Package: comment.
Chris Hanson [Thu, 2 Oct 1997 04:49:58 +0000 (04:49 +0000)]
Change M-A to work better with parameter lists containing uninterned
symbols.
Stephen Adams [Thu, 2 Oct 1997 00:11:42 +0000 (00:11 +0000)]
Tweak output for RTL and LAP files to include the pretty-printed
SCode. In LAP files, make RTL comments more terse by printing them
with ";;" rather than "(comment (rtl"
Chris Hanson [Tue, 30 Sep 1997 02:21:32 +0000 (02:21 +0000)]
Fix bug: marked messages that had been deleted from the server were
remaining marked after downloading of message bodies.
Stephen Adams [Fri, 26 Sep 1997 19:53:02 +0000 (19:53 +0000)]
The following change in how WIN32 graphics devices are flushed gives
non-flickering update almost like double-buffering for programs which
have to draw multiple frames from scratch.
If graphics buffering is enabled, then a GRAPHICS-FLUSH operation
comes from the user's program. The change is to synchronously redraw
the screen in this (i.e. buffered+flush) case. Subsequent operations
can clear and draw without an asynchronous redraw operation copying
the subsequent partial image to the screen.
This is not quite double-buffering since forced redisplay during the
buffered drawing (for example, uncovering part of the window) will
cause the partly draw backing bitmap to be copied to the screen.
User programs with buffering and frequent explicit flushes are likely
to be slower.
Stephen Adams [Tue, 26 Aug 1997 15:20:29 +0000 (15:20 +0000)]
Added hlsim documentation.
Chris Hanson [Sun, 24 Aug 1997 04:05:55 +0000 (04:05 +0000)]
Fix bug: low-level file reading code was occasionally signalling
errors for no apparent reason. The cause: the ReadFile API can return
an error indication when it is called at end-of-file. However, in
ONLY this case, the returned "bytesRead" value is zero.
Chris Hanson [Sun, 24 Aug 1997 04:03:53 +0000 (04:03 +0000)]
Trim any trailing end-of-line from system-call error strings.
Chris Hanson [Sat, 23 Aug 1997 06:30:37 +0000 (06:30 +0000)]
Clip ranges immediately after a group is constructed, in order to
eliminate old markings.
Chris Hanson [Sat, 23 Aug 1997 05:20:15 +0000 (05:20 +0000)]
Work around problem in NT: prompting for a directory with a wildcard
was causing an error. On unix, this works because FILE-DIRECTORY?
accepts such specifications as arguments -- but on NT, it doesn't.
Chris Hanson [Sat, 23 Aug 1997 02:52:23 +0000 (02:52 +0000)]
Initial revision