diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 746 |
1 files changed, 746 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0ea45aed1a3..1f8fd4f6b50 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,749 @@ | |||
| 1 | 2011-09-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): | ||
| 4 | (allocate_vectorlike, buffer_memory_full, struct sdata, SDATA_SIZE) | ||
| 5 | (string_bytes, check_sblock, allocate_string_data): | ||
| 6 | (compact_small_strings, Fmake_bool_vector, make_string) | ||
| 7 | (make_unibyte_string, make_multibyte_string) | ||
| 8 | (make_string_from_bytes, make_specified_string) | ||
| 9 | (allocate_vectorlike, Fmake_vector, find_string_data_in_pure) | ||
| 10 | (make_pure_string, make_pure_c_string, make_pure_vector, Fpurecopy) | ||
| 11 | (mark_vectorlike): | ||
| 12 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13 | (allocate_pseudovector): | ||
| 14 | Use int, not EMACS_INT, where int is wide enough. | ||
| 15 | (inhibit_garbage_collection, Fgarbage_collect): | ||
| 16 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 17 | * bidi.c (bidi_mirror_char): Use EMACS_INT, not int, where | ||
| 18 | int might not be wide enough. | ||
| 19 | (bidi_cache_search, bidi_cache_find, bidi_init_it) | ||
| 20 | (bidi_count_bytes, bidi_char_at_pos, bidi_fetch_char) | ||
| 21 | (bidi_at_paragraph_end, bidi_find_paragraph_start) | ||
| 22 | (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak) | ||
| 23 | (bidi_level_of_next_char, bidi_move_to_visually_next): | ||
| 24 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 25 | * buffer.c (copy_overlays, Fgenerate_new_buffer_name) | ||
| 26 | (Fkill_buffer, Fset_buffer_major_mode) | ||
| 27 | (advance_to_char_boundary, Fbuffer_swap_text) | ||
| 28 | (Fset_buffer_multibyte, overlays_at, overlays_in) | ||
| 29 | (overlay_touches_p, struct sortvec, record_overlay_string) | ||
| 30 | (overlay_strings, recenter_overlay_lists) | ||
| 31 | (adjust_overlays_for_insert, adjust_overlays_for_delete) | ||
| 32 | (fix_start_end_in_overlays, fix_overlays_before, modify_overlay) | ||
| 33 | (Fmove_overlay, Fnext_overlay_change, Fprevious_overlay_change) | ||
| 34 | (Foverlay_recenter, last_overlay_modification_hooks_used) | ||
| 35 | (report_overlay_modification, evaporate_overlays, enlarge_buffer_text): | ||
| 36 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 37 | (validate_region): Omit unnecessary test for b <= e, since | ||
| 38 | that's guaranteed by the previous test. | ||
| 39 | (adjust_overlays_for_delete): Avoid pos + length overflow. | ||
| 40 | (Fmove_overlay, Fdelete_overlay, add_overlay_mod_hooklist) | ||
| 41 | (report_overlay_modification): | ||
| 42 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 43 | (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): | ||
| 44 | Omit pointer cast, which isn't needed anyway, and doesn't work | ||
| 45 | after the EMACS_INT -> ptrdiff_t change. | ||
| 46 | * buffer.h: Adjust decls to match defn changes elsewhere. | ||
| 47 | (struct buffer_text, struct buffer): | ||
| 48 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 49 | Use EMACS_INT, not int, where int might not be wide enough. | ||
| 50 | * bytecode.c (exec_byte_code): Use ptrdiff_t, not int, to avoid | ||
| 51 | needless 32-bit limit on 64-bit hosts. Remove unnecessary | ||
| 52 | memory-full test. Use EMACS_INT, not ptrdiff_t or int, where | ||
| 53 | ptrdiff_t or int might not be wide enough. | ||
| 54 | * callint.c (Fcall_interactively): | ||
| 55 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 56 | * callproc.c (call_process_kill, Fcall_process): | ||
| 57 | Don't assume pid_t fits into an Emacs fixnum. | ||
| 58 | (call_process_cleanup, Fcall_process, child_setup): | ||
| 59 | Don't assume pid_t fits into int. | ||
| 60 | (call_process_cleanup, Fcall_process, delete_temp_file) | ||
| 61 | (Fcall_process_region): | ||
| 62 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 63 | (Fcall_process): Simplify handling of volatile integers. | ||
| 64 | Use int, not EMACS_INT, where int will do. | ||
| 65 | * casefiddle.c (casify_object, casify_region, operate_on_word) | ||
| 66 | (Fupcase_word, Fdowncase_word, Fcapitalize_word): | ||
| 67 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 68 | (casify_object): Avoid integer overflow when overallocating buffer. | ||
| 69 | * casetab.c (set_identity, shuffle): Prefer int to unsigned when | ||
| 70 | either works. | ||
| 71 | * category.c (Fchar_category_set): Don't assume fixnum fits in int. | ||
| 72 | * category.h (CATEGORYP): Don't assume arg is nonnegative. | ||
| 73 | * ccl.c (GET_CCL_INT): Remove; no longer needed, since the | ||
| 74 | integers are now checked earlier. All uses replaced with XINT. | ||
| 75 | (ccl_driver): | ||
| 76 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 77 | For CCL_MapSingle, check that content and value are in int range. | ||
| 78 | (resolve_symbol_ccl_program): Check that vector header is in range. | ||
| 79 | Always copy the vector, so that we can check its contents reliably | ||
| 80 | now rather than having to recheck each instruction as it's being | ||
| 81 | executed. Check that vector words fit in 'int'. | ||
| 82 | (ccl_get_compiled_code, Fregister_ccl_program) | ||
| 83 | (Fregister_code_conversion_map): Use ptrdiff_t, not int, for | ||
| 84 | program indexes, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 85 | (Fccl_execute, Fccl_execute_on_string): Check that initial reg | ||
| 86 | contents are in range. | ||
| 87 | (Fccl_execute_on_string): Check that status is in range. | ||
| 88 | * ccl.h (struct ccl_program.idx): Now ptrdiff_t, not int. | ||
| 89 | * character.c (char_resolve_modifier_mask, Fchar_resolve_modifiers): | ||
| 90 | Accept and return EMACS_INT, not int, because callers can pass values | ||
| 91 | out of 'int' range. | ||
| 92 | (c_string_width, strwidth, lisp_string_width, chars_in_text) | ||
| 93 | (multibyte_chars_in_text, parse_str_as_multibyte) | ||
| 94 | (str_as_multibyte, count_size_as_multibyte, str_to_multibyte) | ||
| 95 | (str_as_unibyte, str_to_unibyte, string_count_byte8) | ||
| 96 | (string_escape_byte8, Fget_byte): | ||
| 97 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 98 | (Funibyte_string): Use CHECK_CHARACTER, not CHECK_NATNUM, to | ||
| 99 | avoid mishandling large integers. | ||
| 100 | * character.h: Adjust decls to match defn changes elsewhere. | ||
| 101 | * charset.c (load_charset_map_from_file, find_charsets_in_text) | ||
| 102 | (Ffind_charset_region): | ||
| 103 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 104 | (load_charset_map_from_file): Redo idx calculation to avoid overflow. | ||
| 105 | (load_charset_map_from_vector, Fdefine_charset_internal): | ||
| 106 | Don't assume fixnum fits in int or unsigned int. | ||
| 107 | (load_charset_map_from_vector, Fmap_charset_chars): | ||
| 108 | Remove now-unnecessary CHECK_NATNUMs. | ||
| 109 | (Fdefine_charset_internal): Check ranges here, more carefully. | ||
| 110 | * chartab.c (Fmake_char_table, Fset_char_table_range) | ||
| 111 | (uniprop_get_decoder, uniprop_get_encoder): | ||
| 112 | Don't assume fixnum fits in int. | ||
| 113 | * cmds.c (move_point): New function, that does the gist of | ||
| 114 | Fforward_char and Fbackward_char, but does so while checking | ||
| 115 | for integer overflow more accurately. | ||
| 116 | (Fforward_char, Fbackward_char, internal_self_insert): Use it. | ||
| 117 | (Fforward_line, Fend_of_line, internal_self_insert) | ||
| 118 | (internal_self_insert): | ||
| 119 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 120 | Fix a FIXME, by checking for integer overflow when calculating | ||
| 121 | target_clm and actual_clm. | ||
| 122 | * coding.c (detect_coding_XXX, encode_coding_XXX, CODING_DECODE_CHAR) | ||
| 123 | (ASSURE_DESTINATION, coding_alloc_by_realloc) | ||
| 124 | (coding_alloc_by_making_gap, alloc_destination) | ||
| 125 | (detect_coding_utf_8, encode_coding_utf_8, decode_coding_utf_16) | ||
| 126 | (encode_coding_utf_16, detect_coding_emacs_mule) | ||
| 127 | (decode_coding_emacs_mule, encode_coding_emacs_mule) | ||
| 128 | (detect_coding_iso_2022, decode_coding_iso_2022) | ||
| 129 | (encode_invocation_designation, encode_designation_at_bol) | ||
| 130 | (encode_coding_iso_2022, detect_coding_sjis, detect_coding_big5) | ||
| 131 | (decode_coding_sjis, decode_coding_big5, encode_coding_sjis) | ||
| 132 | (encode_coding_big5, detect_coding_ccl, decode_coding_ccl) | ||
| 133 | (encode_coding_ccl, encode_coding_raw_text) | ||
| 134 | (detect_coding_charset, decode_coding_charset) | ||
| 135 | (encode_coding_charset, detect_eol, decode_eol, produce_chars) | ||
| 136 | (produce_composition, produce_charset, produce_annotation) | ||
| 137 | (decode_coding, handle_composition_annotation) | ||
| 138 | (handle_charset_annotation, consume_chars, decode_coding_gap) | ||
| 139 | (decode_coding_object, encode_coding_object, detect_coding_system) | ||
| 140 | (Ffind_coding_systems_region_internal, Fcheck_coding_systems_region) | ||
| 141 | (code_convert_region, code_convert_string) | ||
| 142 | (Fdefine_coding_system_internal): | ||
| 143 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 144 | (setup_iso_safe_charsets, consume_chars, Funencodable_char_position) | ||
| 145 | (Fdefine_coding_system_internal): | ||
| 146 | Don't assume fixnums fit in int. | ||
| 147 | (decode_coding_gap, decode_coding_object, encode_coding_object) | ||
| 148 | (Fread_coding_system, Fdetect_coding_region, Funencodable_char_position) | ||
| 149 | (Fcheck_coding_systems_region): | ||
| 150 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 151 | (Ffind_operation_coding_system): NATNUMP can eval its arg twice. | ||
| 152 | (Fdefine_coding_system_internal): Check for charset-id overflow. | ||
| 153 | * coding.h: Adjust decls to match defn changes elsewhere. | ||
| 154 | (struct coding_system): | ||
| 155 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 156 | * composite.c (get_composition_id, find_composition) | ||
| 157 | (run_composition_function, update_compositions) | ||
| 158 | (compose_text, composition_gstring_put_cache) | ||
| 159 | (composition_gstring_p, composition_gstring_width) | ||
| 160 | (fill_gstring_header, fill_gstring_body, autocmp_chars) | ||
| 161 | (composition_compute_stop_pos, composition_reseat_it) | ||
| 162 | (composition_update_it, struct position_record) | ||
| 163 | (find_automatic_composition, composition_adjust_point) | ||
| 164 | (Fcomposition_get_gstring, Ffind_composition_internal): | ||
| 165 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 166 | (update_compositions): | ||
| 167 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 168 | * composite.h: Adjust decls to match defn changes elsewhere. | ||
| 169 | (struct composition): | ||
| 170 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 171 | * data.c (let_shadows_buffer_binding_p, let_shadows_global_binding_p): | ||
| 172 | Do not attempt to compute the address of the object just before a | ||
| 173 | buffer; this is not portable. | ||
| 174 | (Faref, Faset): | ||
| 175 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 176 | (Faset): Use int, not EMACS_INT, where int is wide enough. | ||
| 177 | (Fstring_to_number): Don't assume fixnums fit in int. | ||
| 178 | (Frem): Don't assume arg is nonnegative. | ||
| 179 | * dbusbind.c (xd_append_arg): Check for integers out of range. | ||
| 180 | (Fdbus_call_method): Don't overflow the timeout int. | ||
| 181 | * dired.c (directory_files_internal, file_name_completion, scmp) | ||
| 182 | (file_name_completion_stat): | ||
| 183 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 184 | (file_name_completion): Don't overflow matchcount. | ||
| 185 | (file_name_completion_stat): Use SAFE_ALLOCA, not alloca. | ||
| 186 | * dispextern.h: Adjust decls to match defn changes elsewhere. | ||
| 187 | (struct text_pos, struct glyph, struct bidi_saved_info) | ||
| 188 | (struct bidi_string_data, struct bidi_it, struct composition_it) | ||
| 189 | (struct it): | ||
| 190 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 191 | (struct display_pos, struct composition_it, struct it): | ||
| 192 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 193 | * dispnew.c (increment_matrix_positions) | ||
| 194 | (increment_row_positions, mode_line_string) | ||
| 195 | (marginal_area_string): | ||
| 196 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 197 | (change_frame_size_1, Fredisplay): | ||
| 198 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 199 | (duration_to_sec_usec): New function, to check for overflow better. | ||
| 200 | (Fsleep_for, sit_for): Use it. | ||
| 201 | * doc.c (get_doc_string, store_function_docstring): | ||
| 202 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 203 | (get_doc_string, Fsnarf_documentation): | ||
| 204 | Use int, not EMACS_INT, where int is wide enough. | ||
| 205 | (get_doc_string): | ||
| 206 | Use SAFE_ALLOCA, not alloca. | ||
| 207 | Check for overflow when converting EMACS_INT to off_t. | ||
| 208 | * doprnt.c (doprnt): | ||
| 209 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 210 | * editfns.c (init_editfns, Fuser_uid, Fuser_real_uid): | ||
| 211 | Don't assume uid_t fits into fixnum. | ||
| 212 | (buildmark, Fgoto_char, overlays_around, find_field, Fdelete_field) | ||
| 213 | (Ffield_string, Ffield_string_no_properties, Ffield_beginning) | ||
| 214 | (Ffield_end, Fconstrain_to_field, Fline_beginning_position) | ||
| 215 | (Fline_end_position, Fprevious_char, Fchar_after, Fchar_before) | ||
| 216 | (general_insert_function) | ||
| 217 | (Finsert_char, make_buffer_string, make_buffer_string_both) | ||
| 218 | (update_buffer_properties, Fbuffer_substring) | ||
| 219 | (Fbuffer_substring_no_properties, Fcompare_buffer_substrings) | ||
| 220 | (Fsubst_char_in_region, check_translation) | ||
| 221 | (Ftranslate_region_internal, save_restriction_restore, Fformat) | ||
| 222 | (transpose_markers, Ftranspose_regions): | ||
| 223 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 224 | (clip_to_bounds): Move to lisp.h as an inline function). | ||
| 225 | (Fconstrain_to_field): Don't assume integers are nonnegative. | ||
| 226 | (Fline_beginning_position, Fsave_excursion, Fsave_current_buffer): | ||
| 227 | (Fsubst_char_in_region, Fsave_restriction): | ||
| 228 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 229 | (Femacs_pid): Don't assume pid_t fits into fixnum. | ||
| 230 | (lo_time): Use int, not EMACS_INT, when int suffices. | ||
| 231 | (lisp_time_argument): Check for usec out of range. | ||
| 232 | (Fencode_time): Don't assume fixnum fits in int. | ||
| 233 | * emacs.c (gdb_valbits, gdb_gctypebits): Now int, not EMACS_INT. | ||
| 234 | (gdb_data_seg_bits): Now uintptr_t, not EMACS_INT. | ||
| 235 | (PVEC_FLAG, gdb_array_mark_flag): Now ptrdiff_t, not EMACS_INT. | ||
| 236 | (init_cmdargs, Fdump_emacs): | ||
| 237 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 238 | (Fkill_emacs): Don't assume fixnum fits in int; instead, take just | ||
| 239 | the bottom (typically) 32 bits of the fixnum. | ||
| 240 | * eval.c (specpdl_size, call_debugger): | ||
| 241 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 242 | (when_entered_debugger, Fbacktrace_debug): | ||
| 243 | Don't assume fixnum can fit in int. | ||
| 244 | (Fdefvaralias, Fdefvar): Do not attempt to compute the address of | ||
| 245 | the object just before a buffer; this is not portable. | ||
| 246 | (FletX, Flet, Funwind_protect, do_autoload, Feval, funcall_lambda) | ||
| 247 | (grow_specpdl, unbind_to): | ||
| 248 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 249 | (Fapply, apply_lambda): Don't assume ptrdiff_t can hold fixnum. | ||
| 250 | (grow_specpdl): Simplify allocation by using xpalloc. | ||
| 251 | * fileio.c (Ffind_file_name_handler, Fcopy_file, Frename_file) | ||
| 252 | (Finsert_file_contents, Fwrite_region, Fdo_auto_save): | ||
| 253 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 254 | (Ffind_file_name_handler, non_regular_inserted, Finsert_file_contents) | ||
| 255 | (a_write, e_write): | ||
| 256 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 257 | (Fcopy_file, non_regular_nbytes, read_non_regular) | ||
| 258 | (Finsert_file_contents): | ||
| 259 | Use int, not EMACS_INT, where int is wide enough. | ||
| 260 | (READ_BUF_SIZE): Verify that it fits in int. | ||
| 261 | (Finsert_file_contents): Check that counts are in proper range, | ||
| 262 | rather than assuming fixnums fit into ptrdiff_t etc. | ||
| 263 | Don't assume fixnums fit into int. | ||
| 264 | (Fdo_auto_save, Fset_buffer_auto_saved) | ||
| 265 | (Fclear_buffer_auto_save_failure): | ||
| 266 | Don't assume time_t is signed, or that it fits in int. | ||
| 267 | * fns.c (Fcompare_strings, Fstring_lessp, struct textprop_rec) | ||
| 268 | (concat, string_char_byte_cache_charpos, string_char_byte_cache_bytepos) | ||
| 269 | (string_char_to_byte, string_byte_to_char) | ||
| 270 | (string_make_multibyte, string_to_multibyte) | ||
| 271 | (string_make_unibyte, Fstring_as_unibyte, Fstring_as_multibyte) | ||
| 272 | (Fstring_to_unibyte, Fsubstring, Fsubstring_no_properties) | ||
| 273 | (substring_both, Fdelete, internal_equal, Ffillarray) | ||
| 274 | (Fclear_string, mapcar1) | ||
| 275 | (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1) | ||
| 276 | (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1) | ||
| 277 | (larger_vector, make_hash_table, maybe_resize_hash_table) | ||
| 278 | (hash_lookup, hash_remove_from_table, hash_clear, sweep_weak_table) | ||
| 279 | (Fmaphash, secure_hash): | ||
| 280 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 281 | (concat): Check for string index and length overflow. | ||
| 282 | (Fmapconcat): Don't assume fixnums fit into ptrdiff_t. | ||
| 283 | (Frequire): | ||
| 284 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 285 | (larger_vector): New API (vec, incr_min, size_max) replaces old | ||
| 286 | one (vec, new_size, init). This catches size overflow. | ||
| 287 | INIT was removed because it was always Qnil. | ||
| 288 | All callers changed. | ||
| 289 | (INDEX_SIZE_BOUND): New macro, which calculates more precisely | ||
| 290 | the upper bound on a hash table index size. | ||
| 291 | (make_hash_table, maybe_resize_hash_table): Use it. | ||
| 292 | (secure_hash): Computer start_byte and end_byte only after | ||
| 293 | they're known to be in ptrdiff_t range. | ||
| 294 | * font.c (font_intern_prop, font_at, font_range, Ffont_shape_gstring) | ||
| 295 | (Ffont_get_glyphs, Ffont_at): | ||
| 296 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 297 | (font_style_to_value, font_prop_validate_style, font_expand_wildcards) | ||
| 298 | (Flist_fonts, Fopen_font): | ||
| 299 | Don't assume fixnum can fit in int. | ||
| 300 | (check_gstring): Don't assume index can fit in int. | ||
| 301 | (font_match_p): Check that fixnum is a character, not a nonnegative | ||
| 302 | fixnum, since the later code needs to stuff it into an int. | ||
| 303 | (font_find_for_lface): Use SAFE_ALLOCA_LISP, not alloca. | ||
| 304 | (font_fill_lglyph_metrics): Use unsigned, not EMACS_INT, to avoid | ||
| 305 | conversion overflow issues. | ||
| 306 | (Fopen_font): Check for integer out of range. | ||
| 307 | (Ffont_get_glyphs): Don't assume index can fit in int. | ||
| 308 | * font.h: Adjust decls to match defn changes elsewhere. | ||
| 309 | * fontset.c (reorder_font_vector): Redo score calculation to avoid | ||
| 310 | integer overflow. | ||
| 311 | (num_auto_fontsets, fontset_from_font): Use ptrdiff_t, not | ||
| 312 | printmax_t, where ptrdiff_t is wide enough. | ||
| 313 | (Finternal_char_font): | ||
| 314 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 315 | * frame.c (Fset_mouse_position, Fset_mouse_pixel_position) | ||
| 316 | (Fset_frame_height, Fset_frame_width, Fset_frame_size) | ||
| 317 | (Fset_frame_position, x_set_frame_parameters) | ||
| 318 | (x_set_line_spacing, x_set_border_width) | ||
| 319 | (x_set_internal_border_width, x_set_alpha, x_figure_window_size): | ||
| 320 | Check that fixnums are in proper range for system types. | ||
| 321 | (frame_name_fnn_p, Fframe_parameter, Fmodify_frame_parameters): | ||
| 322 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 323 | (Fmodify_frame_parameters): Don't assume fixnum fits in int. | ||
| 324 | Use SAFE_ALLOCA_LISP, not alloca. | ||
| 325 | * frame.h (struct frame): Use intptr_t, not EMACS_INT, where | ||
| 326 | intptr_t is wide enough. | ||
| 327 | * fringe.c (lookup_fringe_bitmap, get_logical_fringe_bitmap) | ||
| 328 | (Fdefine_fringe_bitmap): Don't assume fixnum fits in int. | ||
| 329 | (Ffringe_bitmaps_at_pos): Don't assume index fits in int. | ||
| 330 | Check for fixnum out of range. | ||
| 331 | * ftfont.c (ftfont_list): Don't assume index fits in int. | ||
| 332 | Check that fixnums are in proper range for system types. | ||
| 333 | (ftfont_shape_by_flt): | ||
| 334 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 335 | Remove no-longer-needed lint_assume. | ||
| 336 | * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): | ||
| 337 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 338 | (Fgnutls_error_fatalp, Fgnutls_error_string, Fgnutls_boot): | ||
| 339 | Check that fixnums are in proper range for system types. | ||
| 340 | * gnutls.h: Adjust decls to match defn changes elsewhere. | ||
| 341 | * gtkutil.c (xg_dialog_run): | ||
| 342 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 343 | (update_frame_tool_bar): | ||
| 344 | Check that fixnums are in proper range for system types. | ||
| 345 | * image.c (parse_image_spec): Redo count calculation to avoid overflow. | ||
| 346 | (lookup_image): Check that fixnums are in proper range for system types. | ||
| 347 | * indent.c (last_known_column, last_known_column_point): | ||
| 348 | (current_column_bol_cache): | ||
| 349 | (skip_invisible, current_column, check_display_width): | ||
| 350 | (check_display_width, scan_for_column, current_column_1) | ||
| 351 | (Findent_to, Fcurrent_indentation, position_indentation) | ||
| 352 | (indented_beyond_p, Fmove_to_column, compute_motion): | ||
| 353 | (Fcompute_motion, Fvertical_motion): | ||
| 354 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 355 | (last_known_column_modified): Use EMACS_INT, not int. | ||
| 356 | (check_display_width): | ||
| 357 | (Fcompute_motion): | ||
| 358 | Check that fixnums and floats are in proper range for system types. | ||
| 359 | (compute_motion): Don't assume index or fixnum fits in int. | ||
| 360 | (compute_motion, Fcompute_motion): | ||
| 361 | Use int, not EMACS_INT, when it is wide enough. | ||
| 362 | (vmotion): Omit local var start_hpos that is always 0; that way | ||
| 363 | we don't need to worry about overflow in expressions involving it. | ||
| 364 | * indent.h: Adjust decls to match defn changes elsewhere. | ||
| 365 | (struct position): | ||
| 366 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 367 | Use int, not EMACS_INT, where int is wide enough. | ||
| 368 | Remove unused members ovstring_chars_done and tab_offset; | ||
| 369 | all uses removed. | ||
| 370 | * insdel.c (move_gap, move_gap_both, gap_left, gap_right) | ||
| 371 | (adjust_markers_for_delete, adjust_markers_for_insert, adjust_point) | ||
| 372 | (adjust_markers_for_replace, make_gap_larger, make_gap_smaller) | ||
| 373 | (make_gap, copy_text, insert, insert_and_inherit) | ||
| 374 | (insert_before_markers, insert_before_markers_and_inherit) | ||
| 375 | (insert_1, count_combining_before, count_combining_after) | ||
| 376 | (insert_1_both, insert_from_string) | ||
| 377 | (insert_from_string_before_markers, insert_from_string_1) | ||
| 378 | (insert_from_gap, insert_from_buffer, insert_from_buffer_1) | ||
| 379 | (adjust_after_replace, adjust_after_insert, replace_range) | ||
| 380 | (replace_range_2, del_range, del_range_1, del_range_byte) | ||
| 381 | (del_range_both, del_range_2, modify_region) | ||
| 382 | (prepare_to_modify_buffer, signal_before_change) | ||
| 383 | (signal_after_change, Fcombine_after_change_execute): | ||
| 384 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 385 | * intervals.c (traverse_intervals, rotate_right, rotate_left) | ||
| 386 | (balance_an_interval, split_interval_right, split_interval_left) | ||
| 387 | (find_interval, next_interval, update_interval) | ||
| 388 | (adjust_intervals_for_insertion, delete_node, delete_interval) | ||
| 389 | (interval_deletion_adjustment, adjust_intervals_for_deletion) | ||
| 390 | (static_offset_intervals, offset_intervals) | ||
| 391 | (merge_interval_right, merge_interval_left, make_new_interval) | ||
| 392 | (graft_intervals_into_buffer, temp_set_point_both) | ||
| 393 | (temp_set_point, set_point, adjust_for_invis_intang) | ||
| 394 | (set_point_both, move_if_not_intangible, get_property_and_range) | ||
| 395 | (get_local_map, copy_intervals, copy_intervals_to_string) | ||
| 396 | (compare_string_intervals, set_intervals_multibyte_1): | ||
| 397 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 398 | * intervals.h: Adjust decls to match defn changes elsewhere. | ||
| 399 | (struct interval): | ||
| 400 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 401 | * keyboard.c (this_command_key_count, this_single_command_key_start) | ||
| 402 | (before_command_key_count, before_command_echo_length, echo_now) | ||
| 403 | (echo_length, recursive_edit_1, Frecursive_edit, Ftrack_mouse) | ||
| 404 | (command_loop_1, safe_run_hooks, read_char, timer_check_2) | ||
| 405 | (menu_item_eval_property, read_key_sequence, Fread_key_sequence) | ||
| 406 | (Fread_key_sequence_vector, Fexecute_extended_command, Fsuspend_emacs): | ||
| 407 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 408 | (last_non_minibuf_size, last_point_position, echo_truncate) | ||
| 409 | (command_loop_1, adjust_point_for_property, read_char, gen_help_event) | ||
| 410 | (make_lispy_position, make_lispy_event, parse_modifiers_uncached) | ||
| 411 | (parse_modifiers, modify_event_symbol, Fexecute_extended_command) | ||
| 412 | (stuff_buffered_input): | ||
| 413 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 414 | (last_auto_save, command_loop_1, read_char): | ||
| 415 | Use EMACS_INT, not int, to avoid integer overflow. | ||
| 416 | (record_char): Avoid overflow in total_keys computation. | ||
| 417 | (parse_modifiers_uncached): Redo index calculation to avoid overflow. | ||
| 418 | * keyboard.h: Adjust decls to match defn changes elsewhere. | ||
| 419 | * keymap.c (Fdefine_key, Fcurrent_active_maps, accessible_keymaps_1) | ||
| 420 | (Fkey_description, Fdescribe_vector, Flookup_key): | ||
| 421 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 422 | (click_position): New function, to check that positions are in range. | ||
| 423 | (Fcurrent_active_maps): | ||
| 424 | (describe_command): | ||
| 425 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 426 | (Faccessible_keymaps, Fkey_description): | ||
| 427 | (preferred_sequence_p): | ||
| 428 | Don't assume fixnum can fit into int. | ||
| 429 | (Fkey_description): Use SAFE_ALLOCA_LISP, not alloca. | ||
| 430 | Check for integer overflow in size calculations. | ||
| 431 | (Ftext_char_description): Use CHECK_CHARACTER, not CHECK_NUMBER, to | ||
| 432 | avoid mishandling large integers. | ||
| 433 | * lisp.h: Adjust decls to match defn changes elsewhere. | ||
| 434 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, struct Lisp_String) | ||
| 435 | (struct vectorlike_header, struct Lisp_Subr, struct Lisp_Hash_Table) | ||
| 436 | (struct Lisp_Marker): | ||
| 437 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 438 | (clip_to_bounds): Now an inline function, moved here from editfns.c. | ||
| 439 | (XSETSUBR): Use size of 0 since the actual size doesn't matter, | ||
| 440 | and using 0 avoids overflow. | ||
| 441 | (GLYPH_CODE_P): Check for overflow in system types, subsuming the | ||
| 442 | need for GLYPH_CODE_CHAR_VALID_P and doing proper checking ourselves. | ||
| 443 | All callers changed. | ||
| 444 | (GLYPH_CODE_CHAR, GLYPH_CODE_FACE): | ||
| 445 | Assume the arg has valid form, since it always does. | ||
| 446 | (TYPE_RANGED_INTEGERP): Avoid bug when checking against a wide | ||
| 447 | unsigned integer system type. | ||
| 448 | (CHECK_RANGED_INTEGER, CHECK_TYPE_RANGED_INTEGER): New macros. | ||
| 449 | (struct catchtag, specpdl_size, SPECPDL_INDEX, USE_SAFE_ALLOCA): | ||
| 450 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 451 | (struct catchtag): Use EMACS_INT, not int, since it may be a fixnum. | ||
| 452 | (duration_to_sec_usec): New decl. | ||
| 453 | * lread.c (read_from_string_index, read_from_string_index_byte) | ||
| 454 | (read_from_string_limit, readchar, unreadchar, openp) | ||
| 455 | (read_internal_start, read1, oblookup): | ||
| 456 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 457 | (Fload, readevalloop, Feval_buffer, Feval_region): | ||
| 458 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 459 | (openp): Check for out-of-range argument to 'access'. | ||
| 460 | (read1): Use int, not EMACS_INT, where int is wide enough. | ||
| 461 | Don't assume fixnum fits into int. | ||
| 462 | * macros.c (Fstart_kbd_macro): Use xpalloc to check for overflow | ||
| 463 | in size calculation. | ||
| 464 | (Fexecute_kbd_macro): | ||
| 465 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 466 | * marker.c (cached_charpos, cached_bytepos, CONSIDER) | ||
| 467 | (byte_char_debug_check, buf_charpos_to_bytepos, verify_bytepos) | ||
| 468 | (buf_bytepos_to_charpos, Fset_marker, set_marker_restricted) | ||
| 469 | (set_marker_both, set_marker_restricted_both, marker_position) | ||
| 470 | (marker_byte_position, Fbuffer_has_markers_at): | ||
| 471 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 472 | (Fset_marker, set_marker_restricted): Don't assume fixnum fits in int. | ||
| 473 | * menu.c (ensure_menu_items): Renamed from grow_menu_items. | ||
| 474 | It now merely ensures that the menu is large enough, without | ||
| 475 | necessarily growing it, as this avoids some integer overflow issues. | ||
| 476 | All callers changed. | ||
| 477 | (keymap_panes, parse_single_submenu, Fx_popup_menu): | ||
| 478 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 479 | (parse_single_submenu, Fx_popup_menu): Don't assume fixnum fits in int. | ||
| 480 | Use SAFE_ALLOCA_LISP, not alloca. | ||
| 481 | (find_and_return_menu_selection): Avoid unnecessary casts of pointers | ||
| 482 | to EMACS_INT. Check that fixnums are in proper range for system types. | ||
| 483 | * minibuf.c (minibuf_prompt_width, string_to_object) | ||
| 484 | (Fminibuffer_contents, Fminibuffer_contents_no_properties) | ||
| 485 | (Fminibuffer_completion_contents, Ftry_completion, Fall_completions): | ||
| 486 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 487 | (get_minibuffer, read_minibuf_unwind): | ||
| 488 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 489 | (read_minibuf): Omit unnecessary arg BACKUP_N, which is always nil; | ||
| 490 | this simplifies overflow checking. All callers changed. | ||
| 491 | (read_minibuf, Fread_buffer, Ftry_completion, Fall_completions) | ||
| 492 | (Ftest_completion): | ||
| 493 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 494 | * nsfns.m (check_ns_display_info): Don't assume fixnum fits in long. | ||
| 495 | (x_set_menu_bar_lines, x_set_tool_bar_lines, Fx_create_frame): | ||
| 496 | Check that fixnums are in proper range for system types. | ||
| 497 | (Fx_create_frame, Fx_show_tip): | ||
| 498 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 499 | * nsfont.m (ns_findfonts, nsfont_list_family): | ||
| 500 | Don't assume fixnum fits in long. | ||
| 501 | * nsmenu.m (ns_update_menubar, ns_menu_show, ns_popup_dialog): | ||
| 502 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 503 | (ns_update_menubar): Use intptr_t, not EMACS_INT, when intptr_t is | ||
| 504 | wide enough. | ||
| 505 | * nsselect.m (ns_get_local_selection): | ||
| 506 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 507 | * print.c (print_buffer_size, print_buffer_pos, print_buffer_pos_byte) | ||
| 508 | (PRINTDECLARE, PRINTPREPARE): | ||
| 509 | (strout, print_string): | ||
| 510 | (print, print_preprocess, print_check_string_charset_prop) | ||
| 511 | (print_object): | ||
| 512 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 513 | (PRINTDECLARE): | ||
| 514 | (temp_output_buffer_setup, Fprin1_to_string, print_object): | ||
| 515 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 516 | (PRINTPREPARE): Use int, not ptrdiff_t, where int is wide enough. | ||
| 517 | (PRINTFINISH): Use SAFE_ALLOCA, not alloca. | ||
| 518 | (printchar, strout): Use xpalloc to catch size calculation overflow. | ||
| 519 | (Fexternal_debugging_output): Use CHECK_CHARACTER, not CHECK_NUMBER, | ||
| 520 | to avoid mishandling large integers. | ||
| 521 | (print_error_message): Use SAFE_ALLOCA, not alloca. | ||
| 522 | (print_object): Use int, not EMACS_INT, where int is wide enough. | ||
| 523 | * process.c (Fdelete_process): Don't assume pid fits into EMACS_INT. | ||
| 524 | (Fset_process_window_size, Fformat_network_address) | ||
| 525 | (get_lisp_to_sockaddr_size, set_socket_option, Fmake_network_process) | ||
| 526 | (Fsignal_process, sigchld_handler): | ||
| 527 | Check that fixnums are in proper range for system types. | ||
| 528 | (Fformat_network_address, read_process_output, send_process) | ||
| 529 | (Fprocess_send_region, status_notify): | ||
| 530 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 531 | (Fformat_network_address, Fmake_serial_process, Fmake_network_process) | ||
| 532 | (wait_reading_process_output, read_process_output, exec_sentinel): | ||
| 533 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 534 | (conv_lisp_to_sockaddr): Don't assume fixnums fit into int. | ||
| 535 | (Faccept_process_output): Use duration_to_sec_usec to do proper | ||
| 536 | overflow checking on durations. | ||
| 537 | * scroll.c (calculate_scrolling, calculate_direct_scrolling) | ||
| 538 | (line_ins_del): Use int, not EMACS_INT, where int is wide enough. | ||
| 539 | * search.c (looking_at_1, string_match_1): | ||
| 540 | (fast_string_match, fast_c_string_match_ignore_case) | ||
| 541 | (fast_string_match_ignore_case, fast_looking_at, scan_buffer) | ||
| 542 | (scan_newline, find_before_next_newline, search_command) | ||
| 543 | (trivial_regexp_p, search_buffer, simple_search, boyer_moore) | ||
| 544 | (set_search_regs, wordify): | ||
| 545 | (Freplace_match): | ||
| 546 | (Fmatch_data): | ||
| 547 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 548 | (string_match_1, search_buffer, set_search_regs): | ||
| 549 | (Fmatch_data): | ||
| 550 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 551 | (wordify): Check for overflow in size calculation. | ||
| 552 | (Freplace_match): Avoid potential buffer overflow in search_regs.start. | ||
| 553 | (Fset_match_data): Don't assume fixnum fits in ptrdiff_t. | ||
| 554 | Check that fixnums are in proper range for system types. | ||
| 555 | * sound.c (struct sound_device) | ||
| 556 | (wav_play, au_play, vox_write, alsa_period_size, alsa_write): | ||
| 557 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 558 | (Fplay_sound_internal): | ||
| 559 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 560 | * syntax.c (ST_COMMENT_STYLE, ST_STRING_STYLE): | ||
| 561 | In definitions, make it clearer that these values must be out of range | ||
| 562 | for the respective integer ranges. This fixes a bug with ST_STRING_STYLE | ||
| 563 | and non-ASCII characters. | ||
| 564 | (struct lisp_parse_state, find_start_modiff) | ||
| 565 | (Finternal_describe_syntax_value, scan_lists, scan_sexps_forward): | ||
| 566 | (Fparse_partial_sexp): | ||
| 567 | Don't assume fixnums can fit in int. | ||
| 568 | (struct lisp_parse_state, find_start_pos, find_start_value) | ||
| 569 | (find_start_value_byte, find_start_begv) | ||
| 570 | (update_syntax_table, char_quoted, dec_bytepos) | ||
| 571 | (find_defun_start, prev_char_comend_first, back_comment): | ||
| 572 | (scan_words, skip_chars, skip_syntaxes, forw_comment, Fforward_comment) | ||
| 573 | (scan_lists, Fbackward_prefix_chars, scan_sexps_forward): | ||
| 574 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 575 | (Finternal_describe_syntax_value): Check that match_lisp is a | ||
| 576 | character, not an integer, since the code stuffs it into int. | ||
| 577 | (scan_words, scan_sexps_forward): | ||
| 578 | Check that fixnums are in proper range for system types. | ||
| 579 | (Fforward_word): | ||
| 580 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 581 | (scan_sexps_forward): | ||
| 582 | Use CHARACTERP, not INTEGERP, since the value must fit into int. | ||
| 583 | (Fparse_partial_sexp): Fix doc; element 8 is not ignored. | ||
| 584 | * syntax.h: Adjust decls to match defn changes elsewhere. | ||
| 585 | (struct gl_state_s): | ||
| 586 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 587 | * sysdep.c (wait_for_termination_1, wait_for_termination) | ||
| 588 | (interruptible_wait_for_termination, mkdir): | ||
| 589 | Don't assume pid_t fits in int; on 64-bit AIX pid_t is 64-bit. | ||
| 590 | (emacs_read, emacs_write): | ||
| 591 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 592 | (system_process_attributes): Don't assume uid_t, gid_t, and | ||
| 593 | double all fit in int or even EMACS_INT. | ||
| 594 | * term.c (set_tty_color_mode): | ||
| 595 | Check that fixnums are in proper range for system types. | ||
| 596 | * termhooks.h (struct input_event): | ||
| 597 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 598 | * textprop.c (validate_interval_range, interval_of) | ||
| 599 | (Fadd_text_properties, set_text_properties_1) | ||
| 600 | (Fremove_text_properties, Fremove_list_of_text_properties) | ||
| 601 | (Ftext_property_any, Ftext_property_not_all) | ||
| 602 | (copy_text_properties, text_property_list, extend_property_ranges) | ||
| 603 | (verify_interval_modification): | ||
| 604 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 605 | (Fnext_single_char_property_change) | ||
| 606 | (Fprevious_single_char_property_change): | ||
| 607 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 608 | (copy_text_properties): Check for integer overflow in index calculation. | ||
| 609 | * undo.c (last_boundary_position, record_point, record_insert) | ||
| 610 | (record_delete, record_marker_adjustment, record_change) | ||
| 611 | (record_property_change): | ||
| 612 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 613 | (truncate_undo_list, Fprimitive_undo): Don't assume fixnum fits in int. | ||
| 614 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 615 | * w32fns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip) | ||
| 616 | (Fx_hide_tip, Fx_file_dialog): | ||
| 617 | * w32menu.c (set_frame_menubar): | ||
| 618 | Use ptrdiff_t, not int, for consistency with rest of code. | ||
| 619 | * window.c (window_scroll_preserve_hpos, window_scroll_preserve_vpos) | ||
| 620 | (select_window, Fdelete_other_windows_internal) | ||
| 621 | (window_scroll_pixel_based, window_scroll_line_based) | ||
| 622 | (Frecenter, Fset_window_configuration): | ||
| 623 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 624 | (Fset_window_hscroll, run_window_configuration_change_hook) | ||
| 625 | (set_window_buffer, temp_output_buffer_show, scroll_command) | ||
| 626 | (Fscroll_other_window): | ||
| 627 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 628 | (Fwindow_line_height, window_scroll, Fscroll_left, Fscroll_right): | ||
| 629 | Don't assume fixnum fits in int. | ||
| 630 | (Fset_window_scroll_bars): | ||
| 631 | Check that fixnums are in proper range for system types. | ||
| 632 | * xdisp.c (help_echo_pos, pos_visible_p, string_pos_nchars_ahead) | ||
| 633 | (string_pos, c_string_pos, number_of_chars, init_iterator) | ||
| 634 | (in_ellipses_for_invisible_text_p, init_from_display_pos) | ||
| 635 | (compute_stop_pos, next_overlay_change, compute_display_string_pos) | ||
| 636 | (compute_display_string_end, handle_face_prop) | ||
| 637 | (face_before_or_after_it_pos, handle_invisible_prop, handle_display_prop) | ||
| 638 | (handle_display_spec, handle_single_display_spec) | ||
| 639 | (display_prop_intangible_p, string_buffer_position_lim) | ||
| 640 | (string_buffer_position, handle_composition_prop, load_overlay_strings) | ||
| 641 | (get_overlay_strings_1, get_overlay_strings) | ||
| 642 | (iterate_out_of_display_property, forward_to_next_line_start) | ||
| 643 | (back_to_previous_visible_line_start, reseat, reseat_to_string) | ||
| 644 | (get_next_display_element, set_iterator_to_next) | ||
| 645 | (get_visually_first_element, compute_stop_pos_backwards) | ||
| 646 | (handle_stop_backwards, next_element_from_buffer) | ||
| 647 | (move_it_in_display_line_to, move_it_in_display_line) | ||
| 648 | (move_it_to, move_it_vertically_backward, move_it_by_lines) | ||
| 649 | (add_to_log, message_dolog, message_log_check_duplicate) | ||
| 650 | (message2, message2_nolog, message3, message3_nolog | ||
| 651 | (with_echo_area_buffer, display_echo_area_1, resize_mini_window_1) | ||
| 652 | (current_message_1, truncate_echo_area, truncate_message_1) | ||
| 653 | (set_message, set_message_1, store_mode_line_noprop) | ||
| 654 | (hscroll_window_tree, debug_delta, debug_delta_bytes, debug_end_vpos) | ||
| 655 | (text_outside_line_unchanged_p, check_point_in_composition) | ||
| 656 | (reconsider_clip_changes) | ||
| 657 | (redisplay_internal, set_cursor_from_row, try_scrolling) | ||
| 658 | (try_cursor_movement, set_vertical_scroll_bar, redisplay_window) | ||
| 659 | (redisplay_window, find_last_unchanged_at_beg_row) | ||
| 660 | (find_first_unchanged_at_end_row, row_containing_pos, try_window_id) | ||
| 661 | (trailing_whitespace_p, find_row_edges, display_line) | ||
| 662 | (RECORD_MAX_MIN_POS, Fcurrent_bidi_paragraph_direction) | ||
| 663 | (display_mode_element, store_mode_line_string) | ||
| 664 | (pint2str, pint2hrstr, decode_mode_spec) | ||
| 665 | (display_count_lines, display_string, draw_glyphs) | ||
| 666 | (x_produce_glyphs, x_insert_glyphs) | ||
| 667 | (rows_from_pos_range, mouse_face_from_buffer_pos) | ||
| 668 | (fast_find_string_pos, mouse_face_from_string_pos) | ||
| 669 | (note_mode_line_or_margin_highlight, note_mouse_highlight): | ||
| 670 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 671 | (safe_call, init_from_display_pos, handle_fontified_prop) | ||
| 672 | (handle_single_display_spec, load_overlay_strings) | ||
| 673 | (with_echo_area_buffer, setup_echo_area_for_printing) | ||
| 674 | (display_echo_area, echo_area_display) | ||
| 675 | (x_consider_frame_title, prepare_menu_bars, update_menu_bar) | ||
| 676 | (update_tool_bar, hscroll_window_tree, redisplay_internal) | ||
| 677 | (redisplay_window, dump_glyph_row, display_mode_line, Fformat_mode_line) | ||
| 678 | (decode_mode_spec, on_hot_spot_p): | ||
| 679 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 680 | (handle_single_display_spec, build_desired_tool_bar_string) | ||
| 681 | (redisplay_tool_bar, scroll_window_tree, Fdump_glyph_matrix) | ||
| 682 | (get_specified_cursor_type): | ||
| 683 | Check that fixnums are in proper range for system types. | ||
| 684 | (struct overlay_entry, resize_mini_window, Fdump_glyph_row) | ||
| 685 | (Flookup_image_map): | ||
| 686 | Don't assume fixnums fit in int. | ||
| 687 | (compare_overlay_entries): | ||
| 688 | Avoid mishandling comparisons due to subtraction overflow. | ||
| 689 | (load_overlay_strings): Use SAFE_NALLOCA, not alloca. | ||
| 690 | (last_escape_glyph_face_id, last_glyphless_glyph_face_id): | ||
| 691 | (handle_tool_bar_click): | ||
| 692 | Use int, not unsigned, since we prefer signed and the signedness | ||
| 693 | doesn't matter here. | ||
| 694 | (get_next_display_element, next_element_from_display_vector): | ||
| 695 | Use int, not EMACS_INT, when int is wide enough. | ||
| 696 | (start_hourglass): Use duration_to_sec_usec to do proper | ||
| 697 | overflow checking on durations. | ||
| 698 | * xfaces.c (Fbitmap_spec_p): | ||
| 699 | Check that fixnums are in proper range for system types. | ||
| 700 | (compare_fonts_by_sort_order): | ||
| 701 | Avoid mishandling comparisons due to subtraction overflow. | ||
| 702 | (Fx_family_fonts, realize_basic_faces): | ||
| 703 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 704 | (Fx_family_fonts): | ||
| 705 | Don't assume fixnum fits in int. | ||
| 706 | Use SAFE_ALLOCA_LISP, not alloca. | ||
| 707 | (merge_face_heights): Remove unnecessary cast to EMACS_INT. | ||
| 708 | (Finternal_make_lisp_face): Don't allocate more than MAX_FACE_ID. | ||
| 709 | (face_at_buffer_position, face_for_overlay_string) | ||
| 710 | (face_at_string_position): | ||
| 711 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 712 | (merge_faces): Use int, not EMACS_INT, where int is wide enough. | ||
| 713 | * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines, x_icon_verify) | ||
| 714 | (Fx_show_tip): | ||
| 715 | Check that fixnums are in proper range for system types. | ||
| 716 | (Fx_create_frame, x_create_tip_frame, Fx_show_tip) | ||
| 717 | (Fx_hide_tip, Fx_file_dialog, Fx_select_font): | ||
| 718 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 719 | (Fx_change_window_property): Don't assume fixnums fit in int. | ||
| 720 | * xfont.c (xfont_chars_supported): | ||
| 721 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 722 | * xmenu.c (Fx_popup_dialog, set_frame_menubar) | ||
| 723 | (create_and_show_popup_menu, create_and_show_dialog, xmenu_show): | ||
| 724 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 725 | * xml.c (parse_region): | ||
| 726 | * xrdb.c (magic_file_p): | ||
| 727 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 728 | * xselect.c (TRACE1): Don't assume pid_t promotes to int. | ||
| 729 | (x_get_local_selection, x_reply_selection_request) | ||
| 730 | (x_handle_selection_request, wait_for_property_change): | ||
| 731 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 732 | (selection_data_to_lisp_data): Use short, not EMACS_INT, where | ||
| 733 | short is wide enough. | ||
| 734 | (x_send_client_event): Don't assume fixnum fits in int. | ||
| 735 | * xterm.c (x_x_to_emacs_modifiers): | ||
| 736 | Don't assume EMACS_INT overflows nicely into int. | ||
| 737 | (x_emacs_to_x_modifiers): Use EMACS_INT, not int, because values | ||
| 738 | may come from Lisp. | ||
| 739 | (handle_one_xevent): NATNUMP can eval its arg twice. | ||
| 740 | (x_connection_closed): | ||
| 741 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 742 | * xterm.h: Adjust decls to match defn changes elsewhere. | ||
| 743 | (struct scroll_bar): Use struct vectorlike_header | ||
| 744 | rather than rolling our own approximation. | ||
| 745 | (SCROLL_BAR_VEC_SIZE): Remove; not used. | ||
| 746 | |||
| 1 | 2011-09-16 Paul Eggert <eggert@cs.ucla.edu> | 747 | 2011-09-16 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 748 | ||
| 3 | * xselect.c: Relax test for outgoing X longs (Bug#9498). | 749 | * xselect.c: Relax test for outgoing X longs (Bug#9498). |