- 18 Jun, 2011 19 commits
-
-
Paul Eggert authored
not EMACS_UINT and EMACS_INT, when converting pointer to integer. This avoids a GCC warning when WIDE_EMACS_INT.
-
Paul Eggert authored
We prefer signed types, and the value cannot exceed the EMACS_INT range anyway (because otherwise the length would not be representable).
-
Paul Eggert authored
This is for consistency with the ordinary, non-USE_LISP_UNION_TYPE, implementation.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
(current_column, scan_for_column, Findent_to, position_indentation) (compute_motion): Use it. This is just for clarity.
-
Paul Eggert authored
-
Paul Eggert authored
* composite.c (composition_gstring_put_cache): * ftfont.c (ftfont_shape_by_flt): Use it to pacify GCC 4.6.0.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
Do not rely on integer wraparound.
-
Paul Eggert authored
-
- 17 Jun, 2011 11 commits
-
-
Paul Eggert authored
* xdisp.c (forward_to_next_line_start) (back_to_previous_visible_line_start) (reseat_at_next_visible_line_start, next_element_from_buffer): Don't arbitrarily truncate the value of 'selective' to int.
-
Paul Eggert authored
-
Paul Eggert authored
not EMACS_UINT, for indexes.
-
Paul Eggert authored
(composition_gstring_p, composition_reseat_it) (composition_adjust_point): Use EMACS_INT, not int.
-
Paul Eggert authored
-
Paul Eggert authored
(init_buffer_once): Check at compile-time, not run-time.
-
Paul Eggert authored
(struct sortstrlist.size, struct sortlist.used): Don't truncate size to int.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
- 16 Jun, 2011 7 commits
-
-
Paul Eggert authored
Without this, prin1 mishandles Lisp_Misc_Save_Value printing on hosts with pre-C99 libraries, because pD is wrongly defined to "t".
-
Paul Eggert authored
* fileio.c (Finsert_file_contents): * insdel.c (insert_from_buffer_1, replace_range, replace_range_2): Remove the old (too-loose) buffer overflow checks. They weren't needed, since make_gap checks for buffer overflow. * insdel.c (make_gap_larger): Catch buffer overflows that were missed. The old code merely checked for Emacs fixnum overflow, and relied on undefined (wraparound) behavior. The new code avoids undefined behavior, and also checks for ptrdiff_t and/or size_t overflow.
-
Paul Eggert authored
Use a bigger 'string' buffer. Rewrite to avoid 'n > 0' test.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
(insert_from_buffer_1, replace_range, replace_range_2): * insdel.c (make_gap_larger): * editfns.c (Finsert_char): * fileio.c (Finsert_file_contents): Use it, to normalize wording.
-
Paul Eggert authored
-
- 15 Jun, 2011 3 commits
-
-
Paul Eggert authored
(GET_CCL_RANGE, IN_INT_RANGE): Use it.
-
Stefan Monnier authored
-
Paul Eggert authored
(emacs_lseek): New static function. (Finsert_file_contents, Fwrite_region): Use it. Use SEEK_SET, SEEK_CUR, SEEK_END as appropriate.
-