1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 12:40:56 -08:00

Fix minor problems found by static checking.

* coding.c (encode_inhibit_flag, inhibit_flag): New functions.
Redo the latter's body to sidestep GCC parenthesization warnings.
(setup_coding_system, detect_coding, detect_coding_system): Use them.
* coding.c (detect_coding, detect_coding_system):
* coding.h (struct undecided_spec):
Use bool for boolean.
* image.c (QCmax_width, QCmax_height): Now static.
* xdisp.c (Fmove_point_visually): Remove unused local.
This commit is contained in:
Paul Eggert 2013-06-29 08:52:20 -07:00
parent 7900732126
commit 9c90cc06dd
5 changed files with 53 additions and 36 deletions

View file

@ -382,9 +382,15 @@ struct ccl_spec;
struct undecided_spec
{
int inhibit_nbd; /* nbd: null byte detection */
int inhibit_ied; /* ied: iso escape detection */
int prefer_utf_8;
/* Inhibit null byte detection. 1 means always inhibit,
-1 means do not inhibit, 0 means rely on user variable. */
int inhibit_nbd;
/* Inhibit ISO escape detection. -1, 0, 1 as above. */
int inhibit_ied;
/* Prefer UTF-8 when the input could be other encodings. */
bool prefer_utf_8;
};
enum utf_bom_type