Skip to content
Snippets Groups Projects
  1. Nov 03, 2014
  2. Nov 02, 2014
  3. Nov 01, 2014
  4. Oct 30, 2014
  5. Oct 29, 2014
  6. Oct 27, 2014
    • Raymond Toy's avatar
      Minor tweaks for solaris. · 0bb2950b
      Raymond Toy authored
      0bb2950b
    • Raymond Toy's avatar
      Fix issue in sending a boolean created from a pointer in · 7fa26f32
      Raymond Toy authored
      RXmStringEtLtoR.
      
      Fix from Richard Kreuter.  This makes his clm-young::chooseone demo
      work reliably.  Richard writes:
      
          The detail that this patch affects is non-deterministic:
      
          RXmStringGetLtoR in xmstring.c calls message_write_boolean on a
          pointer, message_write_boolean in datatrans.c calls
          combine_type_and_data with the pointer and the boolean type tag,
          and combine_type_and_data in datatrans.h IORs the boolean type tag
          with the bits 25 to 32 from the start of the pointer.
      
          This gave a decoding error on the Lisp side in TOOLKIT-READ-VALUE,
          because the high 8 bits of the 32 bits being decoded indexed past
          the end of *TYPE-TABLE*. (But other incorrect outcomes are
          possible, e.g., the result of combine_type_and_data could index a
          valid, but wrong, type code, etc.)
      7fa26f32
  7. Oct 25, 2014
    • Raymond Toy's avatar
      Support 64-bit time-t on NetBSD. · 088e156b
      Raymond Toy authored
      Fixes from Robert Swindells.
      088e156b
    • Raymond Toy's avatar
      Fix motifd text callback. · 9829658f
      Raymond Toy authored
      Merge fix from Richard Kreuter's clm-text-callback branch. This fixes an
      issue where text callbacks get nil. The test case is clm-young::numeric
      from Richard Kreuter.  Without this patch, running (clm-young::numeric)
      and entering digits and characters causes errors[1].  With this patch,
      digits can be entered, and non-digits are correctly rejected.
      
      [1] On linux. For whatever reason, this works on darwin/x86 even without
          this patch.
      9829658f
    • Raymond Toy's avatar
      Fix #84: motifd is 64-bit app. · 2dd94c9b
      Raymond Toy authored
      Merge Richard Kreuter's clm-oids branch to master.  This allows
      motifd to work even if motifd is a 64-bit app.  From Richard:
      
      ...the server passes out 32-bits of a pointer as external IDs for
      instances of a handful of types [1]. On a 64-bit machine, the instances'
      addresses might not fit in a 32-bit address, though.
      
      (In fact, on my FreeBSD/amd64 machine, when I run the example from the
      documentation, the first shell widget always gets created at
      create the second widget with the shell as parent crashes the server.)
      
      Seems like there are two options:
      
      A. Change the wire protocol to accomodate 64-bit integers.
      
      B. Synthesize 32-bit identifiers for instances of the offending types.
      
      Option B seems simpler....
      
      [It] suffices to run the example in the doc and the programs in
      INTERFACE.... Obvious problems in the current code:
      
      1. It's a doubly linked alist associating pointers with 32-bit integers.
      
      2. It looks like nothing ever gets removed from the alist....
      
      3. I'm not certain that I've caught all the places where motifd hands
         out pointers to Lisp.
      
      [1] I think the complete list is AcceleratorTable, Atom, FontList,
      TranslationTable, Widget, and sometimes XmString.
      2dd94c9b
  8. Oct 19, 2014
  9. Oct 16, 2014
  10. Oct 14, 2014
  11. Oct 11, 2014
  12. Oct 10, 2014
    • Raymond Toy's avatar
    • Raymond Toy's avatar
      a1946b35
    • Raymond Toy's avatar
      Unify extern-alien-name for darwin x86 and ppc. · 571dd490
      Raymond Toy authored
      Initial attempt to unify extern-alien-name, primarily for darwin (x86
      and ppc). Thus, systems using elf do not prepend an underscore, but
      other systems are assumed to prepend an underscore.
      
      This is currently only for darwin/x86.  A cross-compile on darwin x86
      is needed.
      
       * code/x86-vm.lisp:
         * For elf systems, don't prepend an underscore.  For other systems,
           do prepend.
       * compiler/generic/new-genesis.lisp:
         * Fix long-standing bug where we should call EXTERN-ALIEN-NAME to
           get the right name for "resolve_linkage_tramp".
       * lisp/Darwin-os.c:
         * Update os_dlsym to assume the external name is always preceded by
           an underscore.  The lookup for dlysm is done by stripping off the
           leading underscore.
       * lisp/os-common.c:
         * Add EXTERN_ALIEN_NAME macro to create the correct alien name for
           elf and non-elf systems.
         * Use it to generate the correct name to be used for comparison in
           the sanity checks of the linkage table entries.
      571dd490
  13. Oct 09, 2014
    • Raymond Toy's avatar
      First cut at removing ppc-darwin-dlshim.c. Not needed anymore because · 57711cc2
      Raymond Toy authored
      dlsym works on OSX/ppc like on other ports.
      
      A cross-compile was used with cross-ppc-ppc-darwin.lisp.  I'm not sure
      a cross-compile is required, though.
      
       * code/ppc-vm.lisp:
         * EXTERN-ALIEN-NAME doesn't need to prepend an underscore anymore. 
       * lisp/Config.ppc_darwin:
         * Don't compile/link ppc-darwin-dlshim.c.
       * lisp/os-common.c:
         * Don't prepend underscore for call_into_lisp.
       * tools/cross-scripts/cross-ppc-ppc-darwin.lisp:
         * EXTERN-ALIEN-NAME doesn't need to prepend an underscore anymore.
      57711cc2
    • Raymond Toy's avatar
      Fix issue with negative value for lisp::cycles-per-tick. · 2c1badef
      Raymond Toy authored
      This causes negative cpu cyles with TIME. Basic issue is that a cpu
      frequency of 2.3 GHZ won't fit in an int. Use an unsigned int.
      
      We also take this opportunity to use a rounded value for
      clocks-per-tick instead of truncating.  For this particular case the
      ratio is actual 68.99 which would truncated to 68. We should probably
      use 69 instead.
      2c1badef
  14. Oct 07, 2014
  15. Oct 04, 2014
  16. Oct 02, 2014
    • Raymond Toy's avatar
      Micro-optimize SCALE-FLOAT to use multiplication when possible. · 8f5f6abc
      Raymond Toy authored
      If the exponent (second arg of SCALE-FLOAT) is such that 2^exponent
      can be represented as a float (single or double), we can implement
      SCALE-FLOAT using a multiplication by 2^exponent, since multiplication
      by 2^exponent is exact.
      
       * src/compiler/float-tran.lisp:
         * Update deftransforms for SCALE-FLOAT to do a multiply when
           possible. 
       * tests/float-tran.lisp:
         * Add tests to make sure the deftransforms for SCALE-FLOAT are
           applied appropriately.
      8f5f6abc
Loading