- 15 Mar, 2011 40 commits
-
-
Paul Eggert authored
gcc -Wbad-function-cast warning.
-
Paul Eggert authored
-
Paul Eggert authored
! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not needed otherwise. (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS. (GC_STRING_CHARS): Remove; not used.
-
Paul Eggert authored
they're used.
-
Paul Eggert authored
Rename locals to avoid shadowing.
-
Paul Eggert authored
* lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this avoids undefined behavior in theory.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
the race-condition problem the old DOWNCASE.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
(WORDCHAR_P): Likewise. This one is never needed, but is used only in a comment talking about a compiler bug, so put inside the #if 0 of that comment. (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK): (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING): Remove; unused.
-
Paul Eggert authored
-
Paul Eggert authored
which gcc can warn about.
-
Paul Eggert authored
-
Paul Eggert authored
Remove unused local vars.
-
Paul Eggert authored
Rename locals to avoid shadowing. (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
-
Paul Eggert authored
* character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
-
Paul Eggert authored
-
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.
-