emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/lread.c [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/lread.c [emacs-unicode-2]
Date: Mon, 28 Jun 2004 03:57:28 -0400

Index: emacs/src/lread.c
diff -c emacs/src/lread.c:1.317.2.2 emacs/src/lread.c:1.317.2.3
*** emacs/src/lread.c:1.317.2.2 Fri Apr 16 12:50:48 2004
--- emacs/src/lread.c   Mon Jun 28 07:29:21 2004
***************
*** 2122,2129 ****
          if (c == '"')
            {
              Lisp_Object tmp, val;
!             int size_in_chars = ((XFASTINT (length) + BITS_PER_CHAR - 1)
!                                  / BITS_PER_CHAR);
  
              UNREAD (c);
              tmp = read1 (readcharfun, pch, first_in_list);
--- 2122,2130 ----
          if (c == '"')
            {
              Lisp_Object tmp, val;
!             int size_in_chars
!               = ((XFASTINT (length) + BOOL_VECTOR_BITS_PER_CHAR - 1)
!                  / BOOL_VECTOR_BITS_PER_CHAR);
  
              UNREAD (c);
              tmp = read1 (readcharfun, pch, first_in_list);
***************
*** 2134,2140 ****
                         Accept such input in case it came from an old
                         version.  */
                      && ! (XFASTINT (length)
!                           == (SCHARS (tmp) - 1) * BITS_PER_CHAR)))
                Fsignal (Qinvalid_read_syntax,
                         Fcons (make_string ("#&...", 5), Qnil));
  
--- 2135,2141 ----
                         Accept such input in case it came from an old
                         version.  */
                      && ! (XFASTINT (length)
!                           == (SCHARS (tmp) - 1) * BOOL_VECTOR_BITS_PER_CHAR)))
                Fsignal (Qinvalid_read_syntax,
                         Fcons (make_string ("#&...", 5), Qnil));
  
***************
*** 2142,2150 ****
              bcopy (SDATA (tmp), XBOOL_VECTOR (val)->data,
                     size_in_chars);
              /* Clear the extraneous bits in the last byte.  */
!             if (XINT (length) != size_in_chars * BITS_PER_CHAR)
                XBOOL_VECTOR (val)->data[size_in_chars - 1]
!                 &= (1 << (XINT (length) % BITS_PER_CHAR)) - 1;
              return val;
            }
          Fsignal (Qinvalid_read_syntax, Fcons (make_string ("#&...", 5),
--- 2143,2151 ----
              bcopy (SDATA (tmp), XBOOL_VECTOR (val)->data,
                     size_in_chars);
              /* Clear the extraneous bits in the last byte.  */
!             if (XINT (length) != size_in_chars * BOOL_VECTOR_BITS_PER_CHAR)
                XBOOL_VECTOR (val)->data[size_in_chars - 1]
!                 &= (1 << (XINT (length) % BOOL_VECTOR_BITS_PER_CHAR)) - 1;
              return val;
            }
          Fsignal (Qinvalid_read_syntax, Fcons (make_string ("#&...", 5),
***************
*** 3814,3824 ****
      }
  #endif
  
! #ifndef WINDOWSNT
    /* When Emacs is invoked over network shares on NT, PATH_LOADSEARCH is
       almost never correct, thereby causing a warning to be printed out that
       confuses users.  Since PATH_LOADSEARCH is always overridden by the
!      EMACSLOADPATH environment variable below, disable the warning on NT.  */
  
    /* Warn if dirs in the *standard* path don't exist.  */
    if (!turn_off_warning)
--- 3815,3829 ----
      }
  #endif
  
! #if (!(defined(WINDOWSNT) || (defined(HAVE_CARBON))))
    /* When Emacs is invoked over network shares on NT, PATH_LOADSEARCH is
       almost never correct, thereby causing a warning to be printed out that
       confuses users.  Since PATH_LOADSEARCH is always overridden by the
!      EMACSLOADPATH environment variable below, disable the warning on NT.  
!      Also, when using the "self-contained" option for Carbon Emacs for MacOSX,
!      the "standard" paths may not exist and would be overridden by
!      EMACSLOADPATH as on NT.  Since this depends on how the executable
!      was build and packaged, turn off the warnings in general */
  
    /* Warn if dirs in the *standard* path don't exist.  */
    if (!turn_off_warning)
***************
*** 3840,3846 ****
            }
        }
      }
! #endif /* WINDOWSNT */
  
    /* If the EMACSLOADPATH environment variable is set, use its value.
       This doesn't apply if we're dumping.  */
--- 3845,3851 ----
            }
        }
      }
! #endif /* !(WINDOWSNT || HAVE_CARBON) */
  
    /* If the EMACSLOADPATH environment variable is set, use its value.
       This doesn't apply if we're dumping.  */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]