aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-09-21 16:22:29 -0700
committerPaul Eggert2011-09-21 16:22:29 -0700
commit7c85f529fd12a8cb12eb85944877d0a52b6380a7 (patch)
tree03c5c25e70d8de6a2ad4ccfcbb634738fdf6e3a3 /src
parent2972b14b555f5738db202e930e5ecba6497e49e0 (diff)
downloademacs-7c85f529fd12a8cb12eb85944877d0a52b6380a7.tar.gz
emacs-7c85f529fd12a8cb12eb85944877d0a52b6380a7.zip
Fix ptrdiff_t/EMACS_INT confusion.
Diffstat (limited to 'src')
-rw-r--r--src/bidi.c2
-rw-r--r--src/fns.c2
-rw-r--r--src/indent.h12
-rw-r--r--src/intervals.c2
-rw-r--r--src/keyboard.c2
-rw-r--r--src/print.c8
-rw-r--r--src/syntax.c4
-rw-r--r--src/xdisp.c6
8 files changed, 19 insertions, 19 deletions
diff --git a/src/bidi.c b/src/bidi.c
index cac12854f33..fc42a0f6bdb 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -2411,6 +2411,6 @@ bidi_dump_cached_states (void)
2411 fputs ("\n", stderr); 2411 fputs ("\n", stderr);
2412 fputs ("pos ", stderr); 2412 fputs ("pos ", stderr);
2413 for (i = 0; i < bidi_cache_idx; i++) 2413 for (i = 0; i < bidi_cache_idx; i++)
2414 fprintf (stderr, "%*"pI"d", ndigits, bidi_cache[i].charpos); 2414 fprintf (stderr, "%*"pD"d", ndigits, bidi_cache[i].charpos);
2415 fputs ("\n", stderr); 2415 fputs ("\n", stderr);
2416} 2416}
diff --git a/src/fns.c b/src/fns.c
index 5d75c42aea0..3d4de6ae691 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -1108,7 +1108,7 @@ an error is signaled. */)
1108 ptrdiff_t converted = str_to_unibyte (SDATA (string), str, chars, 0); 1108 ptrdiff_t converted = str_to_unibyte (SDATA (string), str, chars, 0);
1109 1109
1110 if (converted < chars) 1110 if (converted < chars)
1111 error ("Can't convert the %"pI"dth character to unibyte", converted); 1111 error ("Can't convert the %"pD"dth character to unibyte", converted);
1112 string = make_unibyte_string ((char *) str, chars); 1112 string = make_unibyte_string ((char *) str, chars);
1113 xfree (str); 1113 xfree (str);
1114 } 1114 }
diff --git a/src/indent.h b/src/indent.h
index 4731bf0994b..fe5f60b0df5 100644
--- a/src/indent.h
+++ b/src/indent.h
@@ -26,13 +26,13 @@ struct position
26 int contin; 26 int contin;
27 }; 27 };
28 28
29struct position *compute_motion (ptrdiff_t from, ptrdiff_t fromvpos, 29struct position *compute_motion (ptrdiff_t from, EMACS_INT fromvpos,
30 ptrdiff_t fromhpos, int did_motion, 30 EMACS_INT fromhpos, int did_motion,
31 ptrdiff_t to, ptrdiff_t tovpos, 31 ptrdiff_t to, EMACS_INT tovpos,
32 ptrdiff_t tohpos, 32 EMACS_INT tohpos,
33 ptrdiff_t width, ptrdiff_t hscroll, 33 EMACS_INT width, ptrdiff_t hscroll,
34 int tab_offset, struct window *); 34 int tab_offset, struct window *);
35struct position *vmotion (ptrdiff_t from, ptrdiff_t vtarget, 35struct position *vmotion (ptrdiff_t from, EMACS_INT vtarget,
36 struct window *); 36 struct window *);
37ptrdiff_t skip_invisible (ptrdiff_t pos, ptrdiff_t *next_boundary_p, 37ptrdiff_t skip_invisible (ptrdiff_t pos, ptrdiff_t *next_boundary_p,
38 ptrdiff_t to, Lisp_Object window); 38 ptrdiff_t to, Lisp_Object window);
diff --git a/src/intervals.c b/src/intervals.c
index 54b98804d3c..dd511252b28 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -774,7 +774,7 @@ update_interval (register INTERVAL i, ptrdiff_t pos)
774 i = i->right; /* Move to the right child */ 774 i = i->right; /* Move to the right child */
775 } 775 }
776 else if (NULL_PARENT (i)) 776 else if (NULL_PARENT (i))
777 error ("Point %"pI"d after end of properties", pos); 777 error ("Point %"pD"d after end of properties", pos);
778 else 778 else
779 i = INTERVAL_PARENT (i); 779 i = INTERVAL_PARENT (i);
780 continue; 780 continue;
diff --git a/src/keyboard.c b/src/keyboard.c
index 318ada35eb3..a771c9c4187 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6493,7 +6493,7 @@ modify_event_symbol (ptrdiff_t symbol_num, int modifiers, Lisp_Object symbol_kin
6493 if (NILP (value)) 6493 if (NILP (value))
6494 { 6494 {
6495 char buf[sizeof "key-" + INT_STRLEN_BOUND (EMACS_INT)]; 6495 char buf[sizeof "key-" + INT_STRLEN_BOUND (EMACS_INT)];
6496 sprintf (buf, "key-%"pI"d", symbol_num); 6496 sprintf (buf, "key-%"pD"d", symbol_num);
6497 value = intern (buf); 6497 value = intern (buf);
6498 } 6498 }
6499 6499
diff --git a/src/print.c b/src/print.c
index 28b3dd7cba5..b91e8d7cf20 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1807,7 +1807,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
1807 /* Implement a readable output, e.g.: 1807 /* Implement a readable output, e.g.:
1808 #s(hash-table size 2 test equal data (k1 v1 k2 v2)) */ 1808 #s(hash-table size 2 test equal data (k1 v1 k2 v2)) */
1809 /* Always print the size. */ 1809 /* Always print the size. */
1810 sprintf (buf, "#s(hash-table size %"pI"d", ASIZE (h->next)); 1810 sprintf (buf, "#s(hash-table size %"pD"d", ASIZE (h->next));
1811 strout (buf, -1, -1, printcharfun); 1811 strout (buf, -1, -1, printcharfun);
1812 1812
1813 if (!NILP (h->test)) 1813 if (!NILP (h->test))
@@ -1982,7 +1982,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
1982 strout ("in no buffer", -1, -1, printcharfun); 1982 strout ("in no buffer", -1, -1, printcharfun);
1983 else 1983 else
1984 { 1984 {
1985 sprintf (buf, "at %"pI"d", marker_position (obj)); 1985 sprintf (buf, "at %"pD"d", marker_position (obj));
1986 strout (buf, -1, -1, printcharfun); 1986 strout (buf, -1, -1, printcharfun);
1987 strout (" in ", -1, -1, printcharfun); 1987 strout (" in ", -1, -1, printcharfun);
1988 print_string (BVAR (XMARKER (obj)->buffer, name), printcharfun); 1988 print_string (BVAR (XMARKER (obj)->buffer, name), printcharfun);
@@ -1996,7 +1996,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
1996 strout ("in no buffer", -1, -1, printcharfun); 1996 strout ("in no buffer", -1, -1, printcharfun);
1997 else 1997 else
1998 { 1998 {
1999 sprintf (buf, "from %"pI"d to %"pI"d in ", 1999 sprintf (buf, "from %"pD"d to %"pD"d in ",
2000 marker_position (OVERLAY_START (obj)), 2000 marker_position (OVERLAY_START (obj)),
2001 marker_position (OVERLAY_END (obj))); 2001 marker_position (OVERLAY_END (obj)));
2002 strout (buf, -1, -1, printcharfun); 2002 strout (buf, -1, -1, printcharfun);
@@ -2035,7 +2035,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
2035 if (MISCP (obj)) 2035 if (MISCP (obj))
2036 sprintf (buf, "(MISC 0x%04x)", (int) XMISCTYPE (obj)); 2036 sprintf (buf, "(MISC 0x%04x)", (int) XMISCTYPE (obj));
2037 else if (VECTORLIKEP (obj)) 2037 else if (VECTORLIKEP (obj))
2038 sprintf (buf, "(PVEC 0x%08"pI"x)", ASIZE (obj)); 2038 sprintf (buf, "(PVEC 0x%08"pD"x)", ASIZE (obj));
2039 else 2039 else
2040 sprintf (buf, "(0x%02x)", (int) XTYPE (obj)); 2040 sprintf (buf, "(0x%02x)", (int) XTYPE (obj));
2041 strout (buf, -1, -1, printcharfun); 2041 strout (buf, -1, -1, printcharfun);
diff --git a/src/syntax.c b/src/syntax.c
index 2556a04498e..c76ffd95bf3 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2251,7 +2251,7 @@ between them, return t; otherwise return nil. */)
2251 int found; 2251 int found;
2252 EMACS_INT count1; 2252 EMACS_INT count1;
2253 ptrdiff_t out_charpos, out_bytepos; 2253 ptrdiff_t out_charpos, out_bytepos;
2254 ptrdiff_t dummy; 2254 EMACS_INT dummy;
2255 2255
2256 CHECK_NUMBER (count); 2256 CHECK_NUMBER (count);
2257 count1 = XINT (count); 2257 count1 = XINT (count);
@@ -2473,7 +2473,7 @@ scan_lists (register EMACS_INT from, EMACS_INT count, EMACS_INT depth, int sexpf
2473 ptrdiff_t from_byte; 2473 ptrdiff_t from_byte;
2474 ptrdiff_t out_bytepos, out_charpos; 2474 ptrdiff_t out_bytepos, out_charpos;
2475 int temp; 2475 int temp;
2476 ptrdiff_t dummy; 2476 EMACS_INT dummy;
2477 int multibyte_symbol_p = sexpflag && multibyte_syntax_as_symbol; 2477 int multibyte_symbol_p = sexpflag && multibyte_syntax_as_symbol;
2478 2478
2479 if (depth > 0) min_depth = 0; 2479 if (depth > 0) min_depth = 0;
diff --git a/src/xdisp.c b/src/xdisp.c
index 49c4b74c828..7b174ff987b 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -20793,7 +20793,7 @@ decode_mode_spec (struct window *w, register int c, int field_width,
20793 so get us a 2-digit number that is close. */ 20793 so get us a 2-digit number that is close. */
20794 if (total == 100) 20794 if (total == 100)
20795 total = 99; 20795 total = 99;
20796 sprintf (decode_mode_spec_buf, "%2"pI"d%%", total); 20796 sprintf (decode_mode_spec_buf, "%2"pD"d%%", total);
20797 return decode_mode_spec_buf; 20797 return decode_mode_spec_buf;
20798 } 20798 }
20799 } 20799 }
@@ -20824,9 +20824,9 @@ decode_mode_spec (struct window *w, register int c, int field_width,
20824 if (total == 100) 20824 if (total == 100)
20825 total = 99; 20825 total = 99;
20826 if (toppos <= BUF_BEGV (b)) 20826 if (toppos <= BUF_BEGV (b))
20827 sprintf (decode_mode_spec_buf, "Top%2"pI"d%%", total); 20827 sprintf (decode_mode_spec_buf, "Top%2"pD"d%%", total);
20828 else 20828 else
20829 sprintf (decode_mode_spec_buf, "%2"pI"d%%", total); 20829 sprintf (decode_mode_spec_buf, "%2"pD"d%%", total);
20830 return decode_mode_spec_buf; 20830 return decode_mode_spec_buf;
20831 } 20831 }
20832 } 20832 }