Skip to content
Snippets Groups Projects
  1. Jan 19, 2004
  2. Oct 24, 2003
    • toy's avatar
      READ-SEQUENCE was returning too soon: · 5b428a0a
      toy authored
      (defvar *s* (open "target:code/scavhook.lisp"))
      (defvar *buf* (make-array 5000 :element-type 'character))
      (read-sequence *buf* *s* :end 3000) => 3000
      (read-sequence *buf* *s* :end 3000) => 1096
      
      or 4096 bytes read, when we should have read 4139 (length of
      scavhook.lisp).
      
      Make READ-INTO-SIMPLE-STRING keep trying to READ-N-BYTES until we have
      enough bytes or until READ-N-BYTES returns 0 bytes read (in which
      case we return a short read because there's nothing left to read).
      5b428a0a
  3. Jul 30, 2003
  4. Jun 18, 2003
    • gerd's avatar
      Remove package nicknames USER from COMMON-LISP-USER. Add a new · b4f2c7c7
      gerd authored
      	package COMMON-LISP which LISP uses, so that COMMON-LISP no longer
      	has the non-ANSI nickname LISP.
      
      	To bootstrap, use boot13.lisp as target:bootstrap.lisp with pmai's
      	build scripts, and do a full compile.
      
      	* src/bootfiles/18e/boot13.lisp: Change for all the package
      	changes.
      
      	* src/code/exports.lisp: New package common-lisp,
      	which lisp uses.
      
      	* src/tools/worldload.lisp:
      	* src/tools/setup.lisp: Use cl-user instead of user.
      	Use lisp:: instead of cl::.
      
      	* src/tools/worldcom.lisp:
      	* src/tools/snapshot-update.lisp:
      	* src/tools/pclcom.lisp:
      	* src/tools/mk-lisp:
      	* src/tools/hemcom.lisp:
      	* src/tools/config.lisp:
      	* src/tools/comcom.lisp:
      	* src/tools/clxcom.lisp:
      	* src/tools/clmcom.lisp:
      	* src/pcl/defsys.lisp:
      	* src/motif/lisp/initial.lisp:
      	* src/interface/initial.lisp:
      	* src/hemlock/lispmode.lisp (setup-lisp-mode):
      	Use cl-user instead of user.
      
      	* src/code/save.lisp (assert-user-package):
      	* src/code/print.lisp (%with-standard-io-syntax): Find
      	cl-user package instead of user.
      
      	* src/code/package.lisp (package-locks-init): Add lisp.
      	(package-init): Don't add user nickname to cl-user.
      
      	* src/code/ntrace.lisp (*trace-encapsulate-package-names*):
      	Add common-lisp.
      
      	* src/code/hash.lisp (toplevel):
      	* src/code/hash-new.lisp (toplevel): Use in-package :lisp
      	instead of :common-lisp.
      
      	* src/code/float-trap.lisp (sigfpe-handler): Don't
      	qualify floating-point-inexact with ext:.
      
      	* src/pcl/simple-streams/strategy.lisp (sc):
      	* src/pcl/simple-streams/null.lisp (null-read-char):
      	* src/pcl/simple-streams/internal.lisp (allocate-buffer)
      	(free-buffer):
      	* src/pcl/simple-streams/impl.lisp (%check, %read-line)
      	(%peek-char, %read-byte):
      	* src/pcl/simple-streams/file.lisp (open-file-stream)
      	(device-close):
      	* src/pcl/simple-streams/classes.lisp (simple-stream)
      	(device-close):
      	* src/pcl/macros.lisp (toplevel):
      	* src/pcl/braid.lisp (lisp::sxhash-instance):
      	* src/pcl/env.lisp (toplevel):
      	* src/compiler/generic/objdef.lisp (symbol-hash):
      	* src/code/stream.lisp (read-sequence, write-sequence):
      	* src/code/macros.lisp (defmacro, deftype):
      	* src/code/eval.lisp (interpreted-function):
      	* src/code/defstruct.lisp (defstruct):
      	* src/code/debug.lisp (debug-eval-print): Use lisp:: instead
      	of cl::.
      b4f2c7c7
  5. Jun 07, 2003
    • toy's avatar
      More simple-streams updates from Paul Foley: · d03aa23c
      toy authored
      o An update to fix Gerd's complaint about :simple-streams being on
        *features*
      o Corrects a few bugs
      o Renames all the strategy functions
      o Gets rid of DEVICE-EXTEND (Duane Rettig tells me it's going away in
        the next ACL release)
      o A start on getting stream& composition working.
      d03aa23c
  6. Jun 06, 2003
  7. Mar 19, 2003
  8. Mar 17, 2003
  9. Dec 12, 2002
    • moore's avatar
      · 5fa826f9
      moore authored
      Remove cruft from last checkin.
      5fa826f9
    • moore's avatar
      · 1a766c11
      moore authored
      Fix a typo in apply-with-bindings.
      
      Add string-stream and file-stream, required by the ANSI spec, as
      structure classes.  Make the string streams and fd-stream,
      respectively, inherit from them.  Add bootstrap magic.
      1a766c11
  10. Nov 19, 2002
  11. Nov 13, 2002
  12. Oct 07, 2002
    • toy's avatar
      o Reinstate gray-streams support for read-sequence and write-sequence · 62c1a79b
      toy authored
        that was inadvertently deleted.  (Bug noted by Rudi Schlatte).
      o write-sequence was calling system:output-raw-bytes with the wrong
        args.  (Bug noted by Andras Simon)
      62c1a79b
    • toy's avatar
      o Correct some spelling mistakes · 4fb3490d
      toy authored
      o Fix a few typos in code.
      o Delete a few unused symbols from various places
      o Use something better than %%RWSEQ-EOF%% for the eof marker.
      o Add target-foreign-linkage vars for the PPC and HPPA ports to aid
        cross-compilation.  (The values are very likely wrong, but they're
        not used yet.)
      
      Based on a larger patch from Eric Marsden.
      4fb3490d
  13. Aug 12, 2002
    • toy's avatar
      o For the stream functions, declare the stream arg as a stream or · b7171465
      toy authored
        streamlike as appropriate to catch bad args instead of pretending
        they're gray-streams to be caught there.
      o For make-broadcast-stream, make-two-way-stream,
        make-concatenated-stream, and make-echo-stream, check that their
        args of input or output streams as appropriate.
      b7171465
  14. Aug 06, 2002
  15. Jun 10, 2002
    • toy's avatar
      Rudi Schlatte noted that · f303e1ec
      toy authored
          The Hyperspec says that the default for end is nil, but:
      
          * (write-string "bla" *standard-output* :start 0 :end nil)
      
          Type-error in KERNEL::OBJECT-NOT-FIXNUM-ERROR-HANDLER:
             NIL is not of type FIXNUM
      
      Fix this and make the default for :END be NIL.  (Hmm, I suppose we
      don't really have to default to NIL since NIL means the end of the
      string anyway, but we should at least accept NIL as a valid :END
      value.  I didn't do that.)
      f303e1ec
  16. Feb 04, 2002
  17. Sep 20, 2001
  18. Jul 08, 2001
    • pw's avatar
      From Paul Foley: · c9918062
      pw authored
      	Implements READ- and WRITE-SEQUENCE on Gray streams, via
      	STREAM-READ-SEQUENCE and STREAM-WRITE-SEQUENCE, and provides a :class
      	keyword to OPEN which lets it return Gray streams classes wrapped
      	around lisp-streams.
      
      	Load exports.lisp before compiling with this set of changes.
      c9918062
  19. Apr 07, 2001
    • pw's avatar
      From Pierre Mai: · f0b7b44b
      pw authored
      Implement n-bin method for concatenated-stream.  This fixes
      read-sequence for byte-vectors and strings for concatenated-streams.
      f0b7b44b
  20. Mar 04, 2001
  21. Aug 24, 2000
    • dtc's avatar
      o Based on suggestions from Martin Cracauer, flush commonly used output · 62104ee1
      dtc authored
        streams during the processing of command line switches and upon exit.
        This is a convenience for typical usage, and not all output streams
        are flushed, so important streams should still be flushed but user code.
      
      o Add a new function finish-standard-output-streams to finish output on
        the commonly used output streams. Called after the processing
        of each command line switch, and before the %end-of-the-world.
      
      o Extend the eval switch to process multiple forms, flushing the common
        output streams between each.
      62104ee1
  22. Jul 23, 2000
    • dtc's avatar
      When read-sequence is using the read-n-bin method, loop if the number · 645e50b8
      dtc authored
      of bytes returned is less than required, and until either done or zero
      bytes is returned indicating an EOF.
      645e50b8
    • dtc's avatar
      Fix the handling of :unread and :clear-input in the stream · 40f31f66
      dtc authored
      misc functions synonym-misc, two-way-misc, and concatenated-misc.
      These streams encapsulate other input streams which may have an input
      buffer so they need to call unread-char and clear-input on the
      encapsulated stream rather than directly calling the encapsulated
      streams misc method as the misc methods are below the layer of the
      input buffer.
      40f31f66
  23. Jun 17, 2000
  24. Apr 05, 2000
    • dtc's avatar
      Concatenated-stream-streams should be returning the remaining streams · 4b57a2e8
      dtc authored
      to read rather than all the streams; noted by Sam Steingold. The
      streams are now simply popped when the EOF is reached. The full list
      of streams is not maintained as presumably the closing of the streams
      will be handled separately from the concatenated-stream functionality.
      4b57a2e8
  25. Feb 11, 1999
  26. Feb 02, 1999
  27. Dec 20, 1998
  28. Dec 19, 1998
  29. Jul 24, 1998
  30. Jul 16, 1998
  31. May 15, 1998
  32. May 05, 1998
  33. May 04, 1998
    • dtc's avatar
      Gray streams support: · 6c21ff8a
      dtc authored
      * Rename the 'stream structure class to sys:lisp-stream.
      * Add a new none hierarchical 'stream built-in class which inherits
        from: instance, t.
      * Hack in the new stream class as a mixin for the structure base
        lisp-stream class which now inherits from: stream, structure-object,
        instance, t.
      * Add a new 'fundamental-stream standard-class which includes 'stream
        as a mixin, and add PCL hacks to allow this to be redefined after PCL is
        loaded to be (defclass fundamental-stream (standard-object stream) ...).
      * Add appropriate support to the base stream functions to dispatch to
        the Gray stream functions for the handling of fundamental-streams.
        Some of the lisp-streams encapsulating CLOS streams still need
        a little work.
      6c21ff8a
  34. Apr 27, 1998
    • pw's avatar
      · 9fa03c83
      pw authored
      Fix for read-stream; can only use read-n-bytes to read into
      simple-strings on fd-streams. Noted by Paul Dietz. Fix from Douglas.
      9fa03c83
  35. Mar 01, 1998
  36. Feb 03, 1998
Loading