Skip to content
Snippets Groups Projects
  1. Sep 09, 2009
  2. Aug 26, 2009
    • rtoy's avatar
      Add support for flushing out any state in an external format when · 1325c62e
      rtoy authored
      closing an output stream.  This causes things like
      
      (with-open-file (s "foo" :direction :output :external-format :utf-8)
        (write-char #\u+d800 s))
      
      to output the replacement character instead of creating an empty file.
      
      code/extfmts.lisp:
      o Add new slot to efx structure to hold the function to flush the
        state in an external format.
      o Add accessor for the flush-state slot.
      o Update DEFINE-EXTERNAL-FORMAT to allow specifying the flush
        function.
      o Add macro to call the flush-state function.
      o Added +EF-FLUSH+
      o Use vm::defenum to name the constants instead of the hand-written
        values.
      o Export +REPLACEMENT-CHARACTER-CODE+
      o Document the slots in an efx stucture.
      
      code/fd-stream.lisp:
      o Add ef-flush def-ef-macro to flush the state of an external format
        when closing an output file.  If ef-flush-state is NIL, we just call
        EF-COUT to send out the replacement character.  Otherwise, the
        flush-state function is called to handle it.
      o When closing an output character stream, call ef-flush to flush any
        state before flushing the buffers of the stream.
      o Document the unicode slots in an fd-stream.
      
      code/exports.lisp:
      o Export +REPLACEMENT-CHARACTER-CODE+
      1325c62e
    • rtoy's avatar
  3. Aug 19, 2009
  4. Aug 18, 2009
    • rtoy's avatar
      Add contrib directory to extra tarball. These were always part of the · e5bef4bf
      rtoy authored
      CMUCL source tree, but were never delivered in a distribution.
      
      code/module.lisp:
      o Define module "cmu-contribs" that loads defmodule definitions for
        the contrib code.
      
      code/save.lisp:
      o Add "library:contrib/" to the modules search-list so we can find the
        installed contribs.
      
      tools/make-extra-dist.sh:
      o Install all contrib files
      
      contrib/contrib.lisp:
      o New file that defines modules for the contrib packages.
      e5bef4bf
  5. Aug 17, 2009
  6. Aug 14, 2009
  7. Aug 13, 2009
    • rtoy's avatar
      Fix a couple of issues with · e48f9c3d
      rtoy authored
      (merge-pathnames (make-pathname
      		  :directory '(:relative :back :back
      			       :back :back :back :back))
      		 (pathname "./tmp/junk/core"))
      
      First, MERGE-DIRECTORIES would back up too far and remove :ABSOLUTE.
      Don't do that.
      
      Second, after fixing MERGE-DIRECTORIES, the resulting pathname
      directory is '(:ABSOLUTE :BACK :BACK ...) which is illegal.  Call
      MAKE-PATHNAME instead of %MAKE-PATHNAME-OBJECT so we check for illegal
      pathnames.
      e48f9c3d
    • rtoy's avatar
      Illegal surrogate sequences (leading surrogate without trailing · 8f0dc98a
      rtoy authored
      surrogate or a lone trailing surrogate) get replaced with the
      replacement character.
      8f0dc98a
  8. Aug 12, 2009
  9. Aug 11, 2009
    • rtoy's avatar
      Some symbol cleanups. · 36b8abb9
      rtoy authored
      code/exports.lisp:
      o Import STREAM:SET-SYSTEM-EXTERNAL-FORMAT into the EXT package.
      o Define and export %sin-quick, %cos-quick, and %tan-quick only for
        x87 builds.
      
      compiler/float-tran.lisp:
      o Only apply defknowns and deftransforms for %sin-quick, %cos-quick,
        and %tan-quick for x87 builds.
      36b8abb9
    • rtoy's avatar
      o Put some comments back in. · f81b5350
      rtoy authored
      o Put back some unicode/unicode-bootstrap conditionals.
      f81b5350
  10. Aug 10, 2009
  11. Aug 09, 2009
  12. Jul 23, 2009
    • rtoy's avatar
      code/extfmts.lisp: · 747efc31
      rtoy authored
      o Move the +ss-ef-foo+ constants to here from strategy.lisp, and
        update them so they don't overlap with existing +ef-foo+ constants.
      o Update +ef-max+ accordingly.
      
      pcl/simple-streams/impl.lisp:
      o Use +ss-ef-str+ instead of +ef-str+ in simple-stream-strlen.
      
      pcl/simple-streams/strategy.lisp:
      o Comment out +ss-ef-foo+ constants.
      o Use +ef-max+ instead of +ss-ef-max+, which is no longer defined.
      o Fix bugs in %dc-write-chars-fn:
        - Use ef variable
        - Need to call flush-out-buffer, not flush-buffer for dual-channel
          streams.
      747efc31
    • rtoy's avatar
      Remove *TRACE-PRINT-LEVEL* and *TRACE-PRINT-LENGTH*, which don't · 54ae6901
      rtoy authored
      appear to be used anywhere.
      54ae6901
    • rtoy's avatar
      Add pretty printer for stream::with-stream-class. · d627db75
      rtoy authored
      d627db75
  13. Jul 17, 2009
  14. Jul 13, 2009
  15. Jul 10, 2009
  16. Jul 06, 2009
  17. Jul 02, 2009
    • rtoy's avatar
      boot-2009-07.lisp: · 67fc4ac5
      rtoy authored
      o Bootstrap file needed to compile this change (because the current
        shrink-vector derive-type optimizer didn't handle union types).
      
      compiler/fndb.lisp:
      o Make the compiler warn if the result of lisp::shrink-vector is not
        used.  This is a problem because the compiler doesn't know that
        shrink-vector destructively modifies the length of a vector.  As a
        partial solution, warn the user if the result of shrink-vector is
        not.
      
      code/hash-new.lisp:
      code/seq.lisp:
      o Make sure the result of shrink-vector is used, to get rid of a new
        compiler warning.
      
      code/unidata.lisp:
      o Modify %unicode-full-case so that it doesn't use shrink-vector
        anymore.
      
      compiler/seqtran.lisp:
      o Fix shrink-vector derive-type optimizer to handle union types.
      
      tools/build-unidata.lisp:
      o Fix typo that someone got in.
      o Make sure the result of shrink-vector is used, to get rid of a new
        compiler warning.
      67fc4ac5
  18. Jun 25, 2009
  19. Jun 24, 2009
  20. Jun 21, 2009
  21. Jun 18, 2009
  22. Jun 16, 2009
    • rtoy's avatar
      Cleanups for non-unicode build. · 8f28c28f
      rtoy authored
      code/stream.lisp:
      o Only define (setf stream-external-format) for Unicode builds.
      o In stream-external-format, don't try to look up the external format
        from the fd-stream structure, which doesn't exist in non-unicode
        builds.
      
      code/strings.lisp:
      o Conditionalize out things that will only work if unicode is
        available.
      
      tools/worldcom.lisp:
      o Only compile fd-stream-extfmt for unicode builds.
      8f28c28f
    • rtoy's avatar
      code/string.lisp: · a826481f
      rtoy authored
      o Only define STRING-TO-NFD, STRING-TO-NFKD, and STRING-TO-NFKC for
        Unicode builds.  Conditionalize out their support functions too.
      o Update export list to be conditional on Unicode too.
      o Use new name for get-pairwise-composition.
      
      code/exports.lisp:
      o Update export list to be conditional on Unicode for above changes
        in string.lisp.
      
      code/unidata.lisp:
      o Change name from GET-PAIRWISE-COMPOSITION to
        UNICODE-PAIRWISE-COMPOSITION to match other Unicode function names.
      a826481f
  23. Jun 15, 2009
Loading