aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorJoakim Verona2013-02-16 00:04:20 +0100
committerJoakim Verona2013-02-16 00:04:20 +0100
commit613fda6799a504feff2d5a930ef7998125498d10 (patch)
tree8c7bee1d673435d544d74477ecf20d657b7fa489 /src/xdisp.c
parent73b3f91cfcc9b42d2851ced24d7ba3d17e4c6d00 (diff)
parentf852f6d8c0db494ccb21b6020a5ebbeaa685a948 (diff)
downloademacs-613fda6799a504feff2d5a930ef7998125498d10.tar.gz
emacs-613fda6799a504feff2d5a930ef7998125498d10.zip
auto upstream
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index df0d55566e8..9da8679382e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -915,8 +915,8 @@ static int forward_to_next_line_start (struct it *, int *, struct bidi_it *);
915static struct text_pos string_pos_nchars_ahead (struct text_pos, 915static struct text_pos string_pos_nchars_ahead (struct text_pos,
916 Lisp_Object, ptrdiff_t); 916 Lisp_Object, ptrdiff_t);
917static struct text_pos string_pos (ptrdiff_t, Lisp_Object); 917static struct text_pos string_pos (ptrdiff_t, Lisp_Object);
918static struct text_pos c_string_pos (ptrdiff_t, const char *, int); 918static struct text_pos c_string_pos (ptrdiff_t, const char *, bool);
919static ptrdiff_t number_of_chars (const char *, int); 919static ptrdiff_t number_of_chars (const char *, bool);
920static void compute_stop_pos (struct it *); 920static void compute_stop_pos (struct it *);
921static void compute_string_pos (struct text_pos *, struct text_pos, 921static void compute_string_pos (struct text_pos *, struct text_pos,
922 Lisp_Object); 922 Lisp_Object);
@@ -1655,7 +1655,7 @@ string_pos (ptrdiff_t charpos, Lisp_Object string)
1655 means recognize multibyte characters. */ 1655 means recognize multibyte characters. */
1656 1656
1657static struct text_pos 1657static struct text_pos
1658c_string_pos (ptrdiff_t charpos, const char *s, int multibyte_p) 1658c_string_pos (ptrdiff_t charpos, const char *s, bool multibyte_p)
1659{ 1659{
1660 struct text_pos pos; 1660 struct text_pos pos;
1661 1661
@@ -1686,7 +1686,7 @@ c_string_pos (ptrdiff_t charpos, const char *s, int multibyte_p)
1686 non-zero means recognize multibyte characters. */ 1686 non-zero means recognize multibyte characters. */
1687 1687
1688static ptrdiff_t 1688static ptrdiff_t
1689number_of_chars (const char *s, int multibyte_p) 1689number_of_chars (const char *s, bool multibyte_p)
1690{ 1690{
1691 ptrdiff_t nchars; 1691 ptrdiff_t nchars;
1692 1692
@@ -9411,8 +9411,8 @@ message_log_maybe_newline (void)
9411 9411
9412 9412
9413/* Add a string M of length NBYTES to the message log, optionally 9413/* Add a string M of length NBYTES to the message log, optionally
9414 terminated with a newline when NLFLAG is non-zero. MULTIBYTE, if 9414 terminated with a newline when NLFLAG is true. MULTIBYTE, if
9415 nonzero, means interpret the contents of M as multibyte. This 9415 true, means interpret the contents of M as multibyte. This
9416 function calls low-level routines in order to bypass text property 9416 function calls low-level routines in order to bypass text property
9417 hooks, etc. which might not be safe to run. 9417 hooks, etc. which might not be safe to run.
9418 9418
@@ -9420,7 +9420,7 @@ message_log_maybe_newline (void)
9420 so the buffer M must NOT point to a Lisp string. */ 9420 so the buffer M must NOT point to a Lisp string. */
9421 9421
9422void 9422void
9423message_dolog (const char *m, ptrdiff_t nbytes, int nlflag, int multibyte) 9423message_dolog (const char *m, ptrdiff_t nbytes, bool nlflag, bool multibyte)
9424{ 9424{
9425 const unsigned char *msg = (const unsigned char *) m; 9425 const unsigned char *msg = (const unsigned char *) m;
9426 9426
@@ -9645,7 +9645,7 @@ message3 (Lisp_Object m)
9645 if (STRINGP (m)) 9645 if (STRINGP (m))
9646 { 9646 {
9647 ptrdiff_t nbytes = SBYTES (m); 9647 ptrdiff_t nbytes = SBYTES (m);
9648 int multibyte = STRING_MULTIBYTE (m); 9648 bool multibyte = STRING_MULTIBYTE (m);
9649 USE_SAFE_ALLOCA; 9649 USE_SAFE_ALLOCA;
9650 char *buffer = SAFE_ALLOCA (nbytes); 9650 char *buffer = SAFE_ALLOCA (nbytes);
9651 memcpy (buffer, SDATA (m), nbytes); 9651 memcpy (buffer, SDATA (m), nbytes);
@@ -18169,7 +18169,7 @@ get_overlay_arrow_glyph_row (struct window *w, Lisp_Object overlay_arrow_string)
18169 const unsigned char *arrow_end = arrow_string + arrow_len; 18169 const unsigned char *arrow_end = arrow_string + arrow_len;
18170 const unsigned char *p; 18170 const unsigned char *p;
18171 struct it it; 18171 struct it it;
18172 int multibyte_p; 18172 bool multibyte_p;
18173 int n_glyphs_before; 18173 int n_glyphs_before;
18174 18174
18175 set_buffer_temp (buffer); 18175 set_buffer_temp (buffer);
@@ -20600,7 +20600,7 @@ display_mode_element (struct it *it, int depth, int field_width, int precision,
20600 risky); 20600 risky);
20601 else if (c != 0) 20601 else if (c != 0)
20602 { 20602 {
20603 int multibyte; 20603 bool multibyte;
20604 ptrdiff_t bytepos, charpos; 20604 ptrdiff_t bytepos, charpos;
20605 const char *spec; 20605 const char *spec;
20606 Lisp_Object string; 20606 Lisp_Object string;
@@ -21205,7 +21205,7 @@ static char *
21205decode_mode_spec_coding (Lisp_Object coding_system, register char *buf, int eol_flag) 21205decode_mode_spec_coding (Lisp_Object coding_system, register char *buf, int eol_flag)
21206{ 21206{
21207 Lisp_Object val; 21207 Lisp_Object val;
21208 int multibyte = !NILP (BVAR (current_buffer, enable_multibyte_characters)); 21208 bool multibyte = !NILP (BVAR (current_buffer, enable_multibyte_characters));
21209 const unsigned char *eol_str; 21209 const unsigned char *eol_str;
21210 int eol_str_len; 21210 int eol_str_len;
21211 /* The EOL conversion we are using. */ 21211 /* The EOL conversion we are using. */