1. 20 Apr, 2011 2 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Make the Lisp reader and string-to-float more consistent. · 8b9587d7
      Paul Eggert authored
      * data.c (atof): Remove decl; no longer used or needed.
      (Fstring_to_number): Use new string_to_float function, to be
      consistent with how the Lisp reader treats infinities and NaNs.
      Do not assume that floating-point numbers represent EMACS_INT
      without losing information; this is not true on most 64-bit hosts.
      Avoid double-rounding errors, by insisting on integers when
      parsing non-base-10 numbers, as the documentation specifies.
      Report integer overflow instead of silently converting to
      * lisp.h (string_to_float): New decl, replacing ...
      (isfloat_string): Remove.
      * lread.c (read1): Do not accept +. and -. as integers; this
      appears to have been a coding error.  Similarly, do not accept
      strings like +-1e0 as floating point numbers.  Do not report
      overflow for some integer overflows and not others; instead,
      report them all.  Break out the floating-point parsing into a new
      function string_to_float, so that Fstring_to_number parses
      floating point numbers consistently with the Lisp reader.
      (string_to_float): New function, replacing isfloat_string.
      This function checks for valid syntax and produces the resulting
      Lisp float number too.
  2. 19 Apr, 2011 17 commits
    • Paul Eggert's avatar
      * alloc.c (SDATA_SIZE) [!GC_CHECK_STRING_BYTES]: Avoid runtime check · f2d3008d
      Paul Eggert authored
      in the common case where SDATA_DATA_OFFSET is a multiple of Emacs
      word size.
    • Stefan Monnier's avatar
      * lisp/progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p) · 602ea69d
      Stefan Monnier authored
      (octave-not-in-string-or-comment-p): Use syntax-ppss so it works with
      multi-line comments as well.
    • Paul Eggert's avatar
      Merge from mainline. · 0a20c80c
      Paul Eggert authored
    • Juanma Barranquero's avatar
      lisp/*.el: Lexical-binding cleanup. · 06b60517
      Juanma Barranquero authored
    • Eli Zaretskii's avatar
      Support buffers > 2GB on 64-bit hosts. · 04c56954
      Eli Zaretskii authored
       src/insdel.c (make_gap_larger): Remove limitation of buffer size
       to <= INT_MAX.
       src/syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix setting of
       gl_state.e_property when gl_state.object is Qt.
    • Paul Eggert's avatar
      * gnutls.c: Fix problems found by GCC 4.6.0 on Ubuntu 10.10. · ec8df744
      Paul Eggert authored
      (gnutls_make_error): Rename local to avoid shadowing.
      (gnutls_emacs_global_deinit): ifdef out; not used.
      (Fgnutls_boot): Use const for pointer to readonly storage.
      Comment out unused local.  Fix pointer signedness problems.
    • Paul Eggert's avatar
      * lread.c (openp): Don't stuff size_t into an 'int'. · 640ee02d
      Paul Eggert authored
      Use <= on length, not < on length + 1, to avoid GCC 4.6.0 warning
      about possible signed overflow.
    • Paul Eggert's avatar
      * gtkutil.c: Fix problems found by GCC 4.6.0 on Ubuntu 10.10. · 6048fb2a
      Paul Eggert authored
      (GDK_KEY_g): Don't define if already defined.
      (xg_prepare_tooltip): Avoid pointer signedness problem.
      (xg_set_toolkit_scroll_bar_thumb): Redo to avoid two casts.
    • Paul Eggert's avatar
      Avoid 0 flag with %p printf format. · 6f04d126
      Paul Eggert authored
    • Paul Eggert's avatar
      Merge from mainline. · 4ef23ecf
      Paul Eggert authored
    • Paul Eggert's avatar
      * process.c (Fnetwork_interface_info): Avoid left-shift undefined · fa3c87e1
      Paul Eggert authored
      behavior with 1 << 31.  GCC 4.6.0 warns about this on 32-bit hosts.
    • Paul Eggert's avatar
      * xfns.c (Fx_window_property): Simplify a bit, · 2172544b
      Paul Eggert authored
      to make a bit faster and to avoid GCC 4.6.0 warning.
      * xselect.c (x_get_window_property, x_handle_dnd_message): Likewise.
    • Glenn Morris's avatar
      calendar housekeeping prompted by lexical-binding. · bc4f7f3d
      Glenn Morris authored
      * lisp/calendar/appt.el (appt-make-list):
      * lisp/calendar/cal-china.el (calendar-chinese-date-string):
      * lisp/calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits)
      * lisp/calendar/cal-tex.el (cal-tex-last-blank-p, cal-tex-cursor-week2):
      * lisp/calendar/calendar.el (calendar-generate-window):
      * lisp/calendar/time-date.el (time-to-days):
      Remove unused local variables.
      * lisp/calendar/cal-dst.el (dst-adjust-time): Remove never-implemented
      optional argument `style'.
      * lisp/calendar/cal-tex.el (cal-tex-list-holidays, cal-tex-cursor-month)
      (cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso)
      (cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
      (cal-tex-cursor-filofax-daily, cal-tex-mini-calendar)
      * lisp/calendar/cal-html.el (cal-html-insert-minical):
      * lisp/calendar/diary-lib.el (diary-list-entries-1, diary-list-entries)
      Prefix "unused" locals.
    • Paul Eggert's avatar
      Remove blank line. · e50d64eb
      Paul Eggert authored
    • Paul Eggert's avatar
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Replace pEd with more-general pI, and fix some printf arg casts. · c2982e87
      Paul Eggert authored
      * lisp.h (pI): New macro, generalizing old pEd macro to other
      conversion specifiers.  For example, use "...%"pI"d..." rather
      than "...%"pEd"...".
      (pEd): Remove.  All uses replaced with similar uses of pI.
      * src/m/amdx86-64.h, src/m/ia64.h, src/m/ibms390x.h: Likewise.
      * alloc.c (check_pure_size): Don't overflow by converting size to int.
      * bidi.c (bidi_dump_cached_states): Use pI to avoid cast.
      * data.c (Fnumber_to_string): Use pI instead of if-then-else-abort.
      * dbusbind.c (xd_append_arg): Use pI to avoid cast.
      (Fdbus_method_return_internal, Fdbus_method_error_internal): Likewise.
      * font.c (font_unparse_xlfd): Avoid potential buffer overrun on
      64-bit hosts.
      (font_unparse_xlfd, font_unparse_fcname): Use pI to avoid casts.
      * keyboard.c (record_char, modify_event_symbol): Use pI to avoid casts.
      * print.c (safe_debug_print, print_object): Likewise.
      (print_object): Don't overflow by converting EMACS_INT or EMACS_UINT
      to int.
      Use pI instead of if-then-else-abort.  Use %p to avoid casts.
      * process.c (Fmake_network_process): Use pI to avoid cast.
      * region-cache.c (pp_cache): Likewise.
      * xdisp.c (decode_mode_spec): Likewise.
      * xrdb.c (x_load_resources) [USE_MOTIF]: Use pI to avoid undefined
      behavior on 64-bit hosts with printf arg.
      * xselect.c (x_queue_event): Use %p to avoid casts.
      (x_stop_queuing_selection_requests): Likewise.
      (x_get_window_property): Don't truncate byte count to an 'int'
      when tracing.
  3. 18 Apr, 2011 13 commits
  4. 17 Apr, 2011 3 commits
  5. 16 Apr, 2011 5 commits