Artifact 316cb2913fce3783097a90c79b180a0fb8141d94e448abdbaea7e4006d433e55:
- File
psl-1983/nmode/nmode-20.sl
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1516) [annotate] [blame] [check-ins using] [more...]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % NMODE-20.SL - DEC-20 NMODE Stuff (intended for DEC-20 Version Only) % % Author: Jeffrey Soreff % Hewlett-Packard/CRC % Date: 24 January 1983 % Revised: 25 January 1983 % % 25-Jan-83 Alan Snyder % Add version of actualize-file-name that ensures that transiently-created % file has delete access. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (de current-date-time () % Stolen directly from Nancy Kendzierski % Date/time in appropriate format for the network mail header (let ((date-time (MkString 80))) (jsys1 date-time -1 #.(bits 5 7 10 12 13) 0 (const jsODTIM)) (recopystringtonull date-time))) (de actualize-file-name (file-name) % If the specified file exists, return its "true" (and complete) name. % Otherwise, return the "true" name of the file that would be created if one % were to do so. (Unfortunately, we have no way to do this except by actually % creating the file and then deleting it!) Return NIL if the file cannot be % read or created. (let ((s (attempt-to-open-input file-name))) (cond ((not s) (setf s (attempt-to-open-output (string-concat file-name ";P777777") % so we can delete it! )) (when s (setf file-name (=> s file-name)) (=> s close) (file-delete-and-expunge file-name) file-name ) ) (t (setf file-name (=> s file-name)) (=> s close) file-name ))))