Skip to content
Snippets Groups Projects
  1. Nov 16, 2014
    • Raymond Toy's avatar
      First cut at simplifying unix.lisp. · 9245bc06
      Raymond Toy authored
       * Moved original unix.lisp to src/contrib/unix/unix.lisp.
       * Copied just enough from unix.lisp to compile and load the first
         build. (Second build doesn't yet work.)
       * Trimmed exports.lisp to the current UNIX symbols.
      
      This is currently for Darwin/x86. Nothing else is supported yet.
      9245bc06
  2. Nov 06, 2014
    • Raymond Toy's avatar
      Add iterators and loop paths for codepoints and glyphs · 2b1925b6
      Raymond Toy authored
       * src/code/string.lisp:
         * Add WITH-STRING-CODEPOINT-ITERATOR to allow iterating over the
           codepoints in a string.
         * Add WITH-STRING-GLYPO-ITERATOR to allow iterating over the
           glpyhs in a string.
       * src/code/exports.lisp:
         * Export WITH-STRING-CODEPOINT-ITERATOR and
           WITH-STRING-GLYPH-ITERATOR. 
       * src/code/loop.lisp:
         * Support (loop for cp being the codepoint of string ...) which
           extracts the consecutive codepoints from the string. Allow
           codepoints, code-point, and code-points as aliases of codepoint.
         * Support (loop for g-string being the glyph of string ...) which
           extracts each glyph (as a string) from the string.  Allow glpyhs
           as an alias.
       * tests/extended-loop.lisp:
         * New file of tests for the new loop paths.
       * src/i18n/locale/cmucl.pot:
         * Update.
      2b1925b6
  3. Nov 02, 2014
  4. Aug 26, 2014
    • Raymond Toy's avatar
      Deprecate FLOAT-TRAPPING-NAN-P in favor of FLOAT-SIGNALING-NAN-P. · 9b6ad201
      Raymond Toy authored
      These numbers are called signaling, not trapping NaN in almost all
      usages.
      
       * code/exports.lisp:
         * Export FLOAT-SIGNALING-NAN-P.
       * code/float.lisp:
         * Implement FLOAT-SIGNALING-NAN-P.
         * Make FLOAT-TRAPPING-NAN-P an inline call to the
           FLOAT-SIGNALING-NAN-P and add a docstring to say it is
           deprecated. 
       * code/print.lisp:
         * Print "Signaling" instead of "Trapping".
       * i18n/locale/cmucl.pot:
         * Regenerated due to the changes in docstrings.
      9b6ad201
  5. Aug 09, 2014
    • Raymond Toy's avatar
      Fix ticket #100 by implementing STREAM-FILE-POSITION · 9e687a21
      Raymond Toy authored
      Implements STREAM-FILE-POSiTION and (SETF STREAM-FILE-POSITION).
      
       * code/stream.lisp:
         * Add support for Gray streams in FILE-POSITION.
       * pcl/gray-streams.lisp:
         * Define STREAM-FILE-POSITION and (SETF STREAM-FILE-POSITION).
         * Add methods on FUNDAMENTAL-STREAM, CHARACTER-INPUT-STREAM, and
           CHARACTER-OUTPUT-STREAM.
       * code/exports.lisp:
         * Export STREAM-FILE-POSITION.
      9e687a21
  6. Jul 26, 2014
    • Raymond Toy's avatar
      Some cleanup of the trig code. · 2ade088e
      Raymond Toy authored
       * code/exports.lisp:
         * Export %ieee754-rem-pi/2 and %sincos.
       * code/irrat.lisp:
         * Remove some conditionalization that is always true now.
       * compiler/float-tran.lisp:
         * %sincos is exported so we don't need the package qualifier.
      2ade088e
  7. Mar 08, 2014
  8. Mar 01, 2014
    • Raymond Toy's avatar
      Fix ticket 94. · 513c3b23
      Raymond Toy authored
       * Add least-positive-normalized-double-double-float,
         least-negative-normalized-double-double-float,
         least-positive-double-double-float,
         least-negative-double-double-float,
         most-positive-double-double-float,
         most-negative-double-double-float to the extensions package.
      513c3b23
  9. Aug 24, 2013
    • Raymond Toy's avatar
      Make CL:DISASSEMBLE conforming. Also update some of the · ddfb0372
      Raymond Toy authored
      implementation details of DISASSEM:DISASSEMBLE.
      
       code/exports.lisp::
       * Update packages so CL:DISASSEMBLE is not DISASSEM:DISASSEMBLE.
      
       code/misc.lisp::
       * Define CL:DISASSEMBLE.
      
       compiler/fndb.lisp::
       * Update defknow for disassemble.
      
       compiler/disassem.lisp::
       * Print of source codes uses standard I/O syntax instead of
         inheriting from the environment.
       * Add new keyword arguments to DISASSEM:DISASSEMBLE for the base,
         case, and radix.  These default to 16, :downcase, and
         *print-radix*, respectively.  This means disassembly now prints out
         all numbers in base 16 and is in lowercase.
       * When printing a note for an assembler routine, we don't need to
         print the (hex) address if *print-base* is 16.
      
       compiler/x86/insts.lisp::
       * Fix some issues when in print-mem-access.
         * Sometimes the absolute value of the value was printed instead of
           the value (displaying the wrong value).
         * Print out the value as an unsigned in some cases instead of
           signed value.
       * Fix print-label to print addresses as unsigned integers.  This
         fixes the issue where things like call #x-4xxxxxxx were printed.
      
       i18n/locale/cmucl.pot::
       * Update because of new or changed docstrings.
      ddfb0372
  10. May 26, 2013
  11. May 25, 2013
    • Raymond Toy's avatar
      Remove all the extensions to string-upcase and friends. The extended · 49f041ad
      Raymond Toy authored
      functions now live in the new UNICODE package.
      
       src/code/exports.lisp::
       * Export some unicode functions and constants.
      
       src/code/string.lisp::
       * Removed the extended versions of string-upcase and friends.
       * Export surrogates function.
       * Make sure with-one-string is defined so the unicode package can use
         it.
      
       src/code/unicode.lisp:;
       * New file with extended versions of string-upcase and friends.
      
       src/code/unidata.lisp::
       * Export some unicode functions and constants.
      
       src/compiler/fndb.lisp::
       * Update defknowns for string-upcase and friends.
      
       src/tools/worldbuild.lisp::
       * Build unicode.lisp
      
       src/tools/worldcom.lisp::
       * Load unicode.lisp
      49f041ad
  12. Mar 25, 2013
  13. Feb 24, 2013
    • Raymond Toy's avatar
      Fix ticket:73 · 00844093
      Raymond Toy authored
      error.lisp::
      * Create two new conditions, one for modifying the readtable and one
        for the pprint dispatch table.
      
      exports.lisp::
      * Export the two new conditions.
      
      pprint.lisp::
      * Add check to SET-PPRINT-DISPATCH to disallow modifying the standard
        pprint dispatch table.
      * Allow PPRINT-INIT to modify the standard pprint dispatch table.
      
      print.lisp::
      * In WITH-STANDARD-IO-SYNTAX, don't copy a new dispatch table; bind
        *print-pprint-dispatch* to the standard table.
      
      reader.lisp::
      * Add check to disallow modifying the standard readtable.
      * Allow INIT-STD-LISP-READTABLE to modify the standard readtable.
      00844093
  14. Feb 19, 2013
  15. Dec 23, 2012
  16. May 30, 2012
  17. May 26, 2012
  18. Jan 06, 2012
  19. Nov 04, 2011
  20. Oct 15, 2011
    • Raymond Toy's avatar
      Properly handle a denormal operand exception. This should get rid of · 7b6eb217
      Raymond Toy authored
      the occasional problem about SIGFPE's with no exceptions enabled.
      
      error.lisp:
      o Add floating-point-denormal-operand arithmetic error.
      
      exports.lisp:
      o Export the new arithmetic error type.
      
      float-trap.lisp:
      o Check the denormal trap bit and signal the appropriate error.
      
      release-20c.txt:
      o Update.
      7b6eb217
  21. Sep 25, 2011
  22. Jun 10, 2011
    • rtoy's avatar
      Add function to load all unicode data into memory. · 55d7f671
      rtoy authored
      This makes it easy to make an executable image that doesn't need
      unidata.bin around.  (Should we do this for normal cores?  It seems to
      add about 1 MB to the core size.)
      
      code/unidata.lisp:
      o Add LOAD-ALL-UNICODE-DATA to load all unicode data.
      o Add UNICODE-DATA-LOADED-P to check that unicode data has been
        loaded.
      
      code/print.lisp:
      o If unicode data is loaded, don't check for existence of
        *unidata-path*, because we don't need it.
      
      code/exports.lisp:
      o Export LOAD-ALL-UNICODE-DATA.
      
      general-info/release-20c.txt:
      o Update info
      55d7f671
  23. Feb 02, 2011
  24. Dec 09, 2010
  25. Nov 10, 2010
    • rtoy's avatar
      Add new slots to the backend to hold the foreign linkage space start · e4befc68
      rtoy authored
      and entry size.  Not yet used anywhere.
      
      This change needs a cross-compile; use boot-2010-11-1-cross.lisp as
      the cross-compile script.
      
      compiler/backend.lisp:
      o Add the two new slots to the backend.
      
      compiler/dump.lisp:
      o DUMP-DATA-MAYBE-BYTE-SWAPPING needs to handle (unicode) strings
      o DUMP-DATA-MAYBE-BYTE-SWAPPING should not swap bytes of a string.
        Genesis will make that happen.
      
      code/exports.lisp:
      o Export BACKEND-FOREIGN-LINKAGE-SPACE-START and
        BACKEND-FOREIGN-LINKAGE-ENTRY-SIZE.
      
      bootfiles/20b/boot-2010-11-1-cross.lisp:
      o Cross-compile script for this change.
      e4befc68
  26. Sep 17, 2010
    • rtoy's avatar
      exports.lisp: · 9563cc0b
      rtoy authored
      o Export STRING-TO-NFC, UNICODE-COMPLETE, and UNICODE-COMPLETE-NAME.
      
      unidata.lisp:
      o Add explicit exports.
      9563cc0b
  27. Aug 04, 2010
  28. Jul 13, 2010
    • rtoy's avatar
      Some docstrings in signal.lisp were conditionalized for different · bf0b283a
      rtoy authored
      features and causes the translated string to be included or removed
      from cmucl.pot.  To help make this consistent, we put the
      system-dependent strings in the system-dependent pot files.
      
      bootfiles/20a/boot-2010-07-1.lisp:
      o Add a fake definition for with-textdomain so we can bootstrap the
        changes.
      o Removed a defstruct that was already commented out.
      
      code/exports.lisp:
      o Export WITH-TEXTDOMAIN.
      
      code/intl.lisp:
      o Add macro WITH-TEXTDOMAIN to temporarily bind the textdomain to the
        desired domain for the body, and restoring the original domain
        afterwards.
      
      code/signal.lisp:
      o Wrap the system-specific items in WITH-TEXTDOMAIN so they are placed
        in the system-dependent text domain.
      bf0b283a
  29. Jul 12, 2010
    • rtoy's avatar
      Add a documentation slot to external formats so that we can give a · 7421caf2
      rtoy authored
      little information about the format.  Provide a means to get a list of
      external formats and to display the documentation.
      
      bootfiles/20a/boot-2010-07-1.lisp:
      o Use this bootstrap file when doing a normal build.
      
      code/exports.lisp:
      o New functions:
        - Add LIST-ALL-EXTERNAL-FORMATS to list all available external formats
          and their corresponding aliases.
        - Add DESCRIBE-EXTERNAL-FORMAT to print some information about the
          given format.
      o Add docuemntation slot to defstruct EXTERNAL-FORMAT.
      o Change DEFINE-EXTERNAL-FORMAT macro.  Adds :DOCUMENTATION keyword to
        specify the documentation.  Add :BASE keyword indicate that the
        external format is based on another format.  (Previously, this
        wasn't needed, but is somewhat incompatible with adding a
        documentation string.)
      o Change DEFINE-COMPOSING-EXTERNAL-FORMAT to include :documentation
        keyword to specify the documentation for the format.
      o Minor reindentation of some docstrings.
      o Make sure documentation strings for external format are marked for
        translation; wrap other strings with intl:gettext to explicitly mark
        them for translations.
      o Add docstring for VOID and ISO8859-1 external formats.
      
      code/exports.lisp:
      o Export the new symbols LIST-ALL-EXTERNAL-FORMATS and
        DESCRIBE-EXTERNAL-FORMAT.  Import into EXTENSIONS package.
      
      docs/cmu-user/unicode.tex:
      o Update docs to include LIST-ALL-EXTERNAL-FORMATS and
        DESCRIBE-EXTERNAL-FORMAT.
      o Update docs for DEFINE-EXTERNAL-FORMAT and
        DEFINE-COMPOSING-EXTERNAL-FORMAT to match implementation.
      
      general-info/release-20b.txt:
      o Update
      
      external-formats/*.lisp:
      o Update with docstrings.
      o Add :BASE keyword where needed.
      7421caf2
  30. Jul 10, 2010
    • rtoy's avatar
      extfmts.lisp: · 7acf0a1a
      rtoy authored
      o Add a simple function it list all external formats.
      o Add some docstrings.
      o Correctly indent some s-exps.
      
      exports.lisp:
      o Update package definitions to export new LIST-ALL-EXTERNAL-FORMATS.
      7acf0a1a
  31. Apr 18, 2010
    • rtoy's avatar
      From Paul Foley. Translatable strings are recorded only if · 6a1850a3
      rtoy authored
      *TRANSLATIONS* is non-NIL.
      
      Use boot-2010-04-1 to bootstrap this.
      
      code/intl.lisp:
      o Change default for *TRANSLATIONS* to NIL to disable translations.
      o Add TRANSLATION-ENABLE and TRANSLATION-DISABLE.
      
      code/exports.lisp:
      o Update exports list for new functions in INTL.
      o Remove *TRANSLATABLE-DUMP-STREAM* which no longer exists.
      
      bootfiles/20a/boot-2010-04-1.lisp:
      o New bootstrap file.
      6a1850a3
  32. Apr 14, 2010
    • rtoy's avatar
      code/intl.lisp: · a735122e
      rtoy authored
      o When saving the file name, use *compile-file-truename* instead of
        *compile-file-pathname*.  Also use enough-namestring to make a
        shorter name.  The file names that were placed in the pot file
        included search-lists which aren't understood by anything besides
        CMUCL.
      o Don't install the reader macros by default anymore.
      o Change INSTALL to accept an optional readtable that is modified with
        the reader macros and such.
      
      code/exports.lisp:
      o Export INTL::INSTALL.
      
      tools/build-world.sh:
      tools/build-utils.sh:
      o Need to install the reader macros when building so we can get
        generate the pot files.
      o Set *default-pathname-defaults* to be the (full) current build
        directory so that the pathnames in the pot file are relative to the
        build directory.
      
      These changes fix the main part of Ticket #39.
      a735122e
  33. Mar 19, 2010
  34. Feb 07, 2010
  35. Dec 17, 2009
    • rtoy's avatar
      code/unix.lisp: · e70c9348
      rtoy authored
      o Add UNIX-GETRLIMIT and appropriate constants (for solaris and
        darwin/x86)
      
      code/exports.lisp:
      o Export them.
      e70c9348
  36. Oct 14, 2009
    • agoncharov's avatar
      · 173e967f
      agoncharov authored
      As suggested by Madhu <madhu@cs.unm.edu>, removed the ext:getenv
      function that I had introduced a few days ago.  Instead, four foreign
      function definitions are introduced, following Madhu's proposal.
      
      The four functions:
      
         unix-getenv unix-setenv unix-putenv unix-unsetenv
      
      are defined both in unix.lisp and unix-glibc2.lisp.
      173e967f
  37. 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
  38. 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
Loading