diff options
| author | Ken Raeburn | 2002-07-16 19:48:00 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-16 19:48:00 +0000 |
| commit | 8a25217a49fb5815daf35034860998215a617066 (patch) | |
| tree | cca2d0e15f3529f1287a2c448faa8f8fe823b0ec /src | |
| parent | fb4f7f50868656cba59d4e905a9cff715479d69d (diff) | |
| download | emacs-8a25217a49fb5815daf35034860998215a617066.tar.gz emacs-8a25217a49fb5815daf35034860998215a617066.zip | |
(find_charset_in_text, c_string_width):
(parse_str_as_multibyte): Declarations updated.
(FETCH_STRING_CHAR_ADVANCE):
(FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use const for pointer to
lisp string data.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/charset.h b/src/charset.h index c84d33ca89d..58e8f3dfb9d 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -573,7 +573,7 @@ if (1) \ | |||
| 573 | CHARIDX++; \ | 573 | CHARIDX++; \ |
| 574 | if (STRING_MULTIBYTE (STRING)) \ | 574 | if (STRING_MULTIBYTE (STRING)) \ |
| 575 | { \ | 575 | { \ |
| 576 | unsigned char *ptr = SDATA (STRING) + BYTEIDX; \ | 576 | const unsigned char *ptr = SDATA (STRING) + BYTEIDX; \ |
| 577 | int space_left = SBYTES (STRING) - BYTEIDX; \ | 577 | int space_left = SBYTES (STRING) - BYTEIDX; \ |
| 578 | int actual_len; \ | 578 | int actual_len; \ |
| 579 | \ | 579 | \ |
| @@ -590,7 +590,7 @@ else | |||
| 590 | #define FETCH_STRING_CHAR_ADVANCE_NO_CHECK(OUTPUT, STRING, CHARIDX, BYTEIDX) \ | 590 | #define FETCH_STRING_CHAR_ADVANCE_NO_CHECK(OUTPUT, STRING, CHARIDX, BYTEIDX) \ |
| 591 | if (1) \ | 591 | if (1) \ |
| 592 | { \ | 592 | { \ |
| 593 | unsigned char *fetch_string_char_ptr = SDATA (STRING) + BYTEIDX; \ | 593 | const unsigned char *fetch_string_char_ptr = SDATA (STRING) + BYTEIDX; \ |
| 594 | int fetch_string_char_space_left = SBYTES (STRING) - BYTEIDX; \ | 594 | int fetch_string_char_space_left = SBYTES (STRING) - BYTEIDX; \ |
| 595 | int actual_len; \ | 595 | int actual_len; \ |
| 596 | \ | 596 | \ |
| @@ -794,16 +794,17 @@ extern int char_to_string_1 P_ ((int, unsigned char *)); | |||
| 794 | extern int string_to_char P_ ((const unsigned char *, int, int *)); | 794 | extern int string_to_char P_ ((const unsigned char *, int, int *)); |
| 795 | extern int char_printable_p P_ ((int c)); | 795 | extern int char_printable_p P_ ((int c)); |
| 796 | extern int multibyte_form_length P_ ((const unsigned char *, int)); | 796 | extern int multibyte_form_length P_ ((const unsigned char *, int)); |
| 797 | extern void parse_str_as_multibyte P_ ((unsigned char *, int, int *, int *)); | 797 | extern void parse_str_as_multibyte P_ ((const unsigned char *, int, int *, |
| 798 | int *)); | ||
| 798 | extern int str_as_multibyte P_ ((unsigned char *, int, int, int *)); | 799 | extern int str_as_multibyte P_ ((unsigned char *, int, int, int *)); |
| 799 | extern int parse_str_to_multibyte P_ ((unsigned char *, int)); | 800 | extern int parse_str_to_multibyte P_ ((unsigned char *, int)); |
| 800 | extern int str_to_multibyte P_ ((unsigned char *, int, int)); | 801 | extern int str_to_multibyte P_ ((unsigned char *, int, int)); |
| 801 | extern int str_as_unibyte P_ ((unsigned char *, int)); | 802 | extern int str_as_unibyte P_ ((unsigned char *, int)); |
| 802 | extern int get_charset_id P_ ((Lisp_Object)); | 803 | extern int get_charset_id P_ ((Lisp_Object)); |
| 803 | extern int find_charset_in_text P_ ((unsigned char *, int, int, int *, | 804 | extern int find_charset_in_text P_ ((const unsigned char *, int, int, int *, |
| 804 | Lisp_Object)); | 805 | Lisp_Object)); |
| 805 | extern int strwidth P_ ((unsigned char *, int)); | 806 | extern int strwidth P_ ((unsigned char *, int)); |
| 806 | extern int c_string_width P_ ((unsigned char *, int, int, int *, int *)); | 807 | extern int c_string_width P_ ((const unsigned char *, int, int, int *, int *)); |
| 807 | extern int lisp_string_width P_ ((Lisp_Object, int, int *, int *)); | 808 | extern int lisp_string_width P_ ((Lisp_Object, int, int *, int *)); |
| 808 | extern int char_bytes P_ ((int)); | 809 | extern int char_bytes P_ ((int)); |
| 809 | extern int char_valid_p P_ ((int, int)); | 810 | extern int char_valid_p P_ ((int, int)); |