- 20 Jun, 2011 2 commits
-
-
Paul Eggert authored
(font_parse_xlfd, font_parse_fcname, font_unparse_fcname): Use ptrdiff_t, not int.
-
Paul Eggert authored
(get_boot_time): Don't assume that gzip command string fits in 100 bytes. Reformulate so as not to need the command string. Invoke gzip -cd rather than gunzip, as it's more portable. (lock_info_type, lock_file_1, lock_file): Don't assume pid_t and time_t fit in unsigned long. (LOCK_PID_MAX): Remove; we now use more-reliable bounds. (current_lock_owner): Prefer signed type for sizes. Use memcpy, not strncpy, where memcpy is what is really wanted. Don't assume (via atoi) that time_t and pid_t fit in int. Check for time_t and/or pid_t out of range, e.g., via a network share. Don't alloca where an auto var works fine.
-
- 19 Jun, 2011 14 commits
-
-
Paul Eggert authored
(file_name_as_directory, Fexpand_file_name, Fsubstitute_in_file_name): Don't assume string length fits in int. (directory_file_name): Don't assume string length fits in long. (make_temp_name): Don't assume pid fits in int, or that its print length is less than 20.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
We prefer signed integers, even for size calculations.
-
Paul Eggert authored
(DEFINE_DUMMY_FUNCTION, sort_args): Use ptrdiff_t, not int. (main): Don't invoke strlen when not needed.
-
Paul Eggert authored
(XD_DEBUG_MESSAGE): Don't waste a byte.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
All uses changed. This doesn't fix a bug, but it simplifies the code away from its former Hollerith-constant appearance, and it's one less 'int' to worry about when looking at integer-overflow issues.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
This didn't break anything, but it didn't help either. It's confusing to put a bogus integer in a place where the actual value does not matter.
-
- 18 Jun, 2011 21 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
-
Paul Eggert authored
-
Paul Eggert authored
Do not rely on integer wraparound.
-
Paul Eggert authored
-
- 17 Jun, 2011 3 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.
-