- 15 Mar, 2011 26 commits
-
-
Paul Eggert authored
* lisp.h: ... to here, so that it can be checked. (struct re_registers): New forward decl.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
All uses changed. (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion): Rename locals to avoid shadowing.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
Rename locals to avoid shadowing.
-
Paul Eggert authored
An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in dired.c's scmp function, had undefined behavior. * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP): (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ... * buffer.h: ... to here, because these macros use current_buffer, and the new implementation with inline functions needs to have current_buffer in scope now, rather than later when the macros are used. (downcase, upcase1): New static inline functions. (DOWNCASE, UPCASE1): Reimplement using these functions. This avoids undefined behavior in expressions like DOWNCASE (x) == DOWNCASE (y), which previously suffered from race conditions in accessing the global variables case_temp1 and case_temp2. * casetab.c (case_temp1, case_temp2): Remove; no longer needed. * lisp.h (case_temp1, case_temp2): Remove their decls. * character.h (ASCII_CHAR_P): Move from here ... * lisp.h: ... to here, so that the inline functions mentioned above can use them.
-
Paul Eggert authored
-
Paul Eggert authored
Rename locals to avoid shadowing.
-
Paul Eggert authored
signedness issues.
-
Paul Eggert authored
-
Paul Eggert authored
(Fexpand_file_name): Likewise. In particular, newdir might point at constant storage, so make it a const pointer.
-
Paul Eggert authored
(barf_or_query_if_file_exists, auto_save_error, auto_save_1): Now static.
-
Paul Eggert authored
to avoid shadowing.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
so that gcc does not warn that these functions aren't declared.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
(reset_var_on_error, Fcombine_after_change_execute_1): Now static.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
(fix_start_end_in_overlays): Likewise. This function should be simplified by using pointers-to-pointers, but that's a different matter.
-
- 14 Mar, 2011 14 commits
-
-
Paul Eggert authored
(report_overlay_modification): Rename locals to avoid shadowing.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
to suppress a gcc -Wclobbered warning that does not seem to be right.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
* systty.h: ... to here, so that they can be checked.
-
Paul Eggert authored
* lisp.h: ... to here, so that they can be checked.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
(describe_map_tree): Rename locals to avoid shadowing.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
(copy_keymap_item, append_key, push_text_char_description): Now static.
-