aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/coding.c b/src/coding.c
index 02e7b34695e..4b3d22f956c 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -285,7 +285,6 @@ encode_coding_XXX (struct coding_system *coding)
285 285
286#include <config.h> 286#include <config.h>
287#include <stdio.h> 287#include <stdio.h>
288#include <setjmp.h>
289 288
290#include "lisp.h" 289#include "lisp.h"
291#include "character.h" 290#include "character.h"
@@ -2051,7 +2050,7 @@ emacs_mule_char (struct coding_system *coding, const unsigned char *src,
2051 break; 2050 break;
2052 2051
2053 default: 2052 default:
2054 abort (); 2053 emacs_abort ();
2055 } 2054 }
2056 CODING_DECODE_CHAR (coding, src, src_base, src_end, 2055 CODING_DECODE_CHAR (coding, src, src_base, src_end,
2057 CHARSET_FROM_ID (charset_ID), code, c); 2056 CHARSET_FROM_ID (charset_ID), code, c);
@@ -2345,7 +2344,7 @@ decode_coding_emacs_mule (struct coding_system *coding)
2345 int i; 2344 int i;
2346 2345
2347 if (charbuf_end - charbuf < cmp_status->length) 2346 if (charbuf_end - charbuf < cmp_status->length)
2348 abort (); 2347 emacs_abort ();
2349 for (i = 0; i < cmp_status->length; i++) 2348 for (i = 0; i < cmp_status->length; i++)
2350 *charbuf++ = cmp_status->carryover[i]; 2349 *charbuf++ = cmp_status->carryover[i];
2351 coding->annotated = 1; 2350 coding->annotated = 1;
@@ -2619,7 +2618,7 @@ encode_coding_emacs_mule (struct coding_system *coding)
2619 preferred_charset_id = -1; 2618 preferred_charset_id = -1;
2620 break; 2619 break;
2621 default: 2620 default:
2622 abort (); 2621 emacs_abort ();
2623 } 2622 }
2624 charbuf += -c - 1; 2623 charbuf += -c - 1;
2625 continue; 2624 continue;
@@ -3482,7 +3481,7 @@ decode_coding_iso_2022 (struct coding_system *coding)
3482 if (cmp_status->state != COMPOSING_NO) 3481 if (cmp_status->state != COMPOSING_NO)
3483 { 3482 {
3484 if (charbuf_end - charbuf < cmp_status->length) 3483 if (charbuf_end - charbuf < cmp_status->length)
3485 abort (); 3484 emacs_abort ();
3486 for (i = 0; i < cmp_status->length; i++) 3485 for (i = 0; i < cmp_status->length; i++)
3487 *charbuf++ = cmp_status->carryover[i]; 3486 *charbuf++ = cmp_status->carryover[i];
3488 coding->annotated = 1; 3487 coding->annotated = 1;
@@ -3864,7 +3863,7 @@ decode_coding_iso_2022 (struct coding_system *coding)
3864 break; 3863 break;
3865 3864
3866 default: 3865 default:
3867 abort (); 3866 emacs_abort ();
3868 } 3867 }
3869 3868
3870 if (cmp_status->state == COMPOSING_NO 3869 if (cmp_status->state == COMPOSING_NO
@@ -4419,7 +4418,7 @@ encode_coding_iso_2022 (struct coding_system *coding)
4419 preferred_charset_id = -1; 4418 preferred_charset_id = -1;
4420 break; 4419 break;
4421 default: 4420 default:
4422 abort (); 4421 emacs_abort ();
4423 } 4422 }
4424 charbuf += -c - 1; 4423 charbuf += -c - 1;
4425 continue; 4424 continue;
@@ -4933,7 +4932,7 @@ encode_coding_sjis (struct coding_system *coding)
4933 } 4932 }
4934 } 4933 }
4935 if (code == CHARSET_INVALID_CODE (charset)) 4934 if (code == CHARSET_INVALID_CODE (charset))
4936 abort (); 4935 emacs_abort ();
4937 if (charset == charset_kanji) 4936 if (charset == charset_kanji)
4938 { 4937 {
4939 int c1, c2; 4938 int c1, c2;
@@ -5023,7 +5022,7 @@ encode_coding_big5 (struct coding_system *coding)
5023 } 5022 }
5024 } 5023 }
5025 if (code == CHARSET_INVALID_CODE (charset)) 5024 if (code == CHARSET_INVALID_CODE (charset))
5026 abort (); 5025 emacs_abort ();
5027 if (charset == charset_big5) 5026 if (charset == charset_big5)
5028 { 5027 {
5029 int c1, c2; 5028 int c1, c2;
@@ -7190,7 +7189,7 @@ handle_composition_annotation (ptrdiff_t pos, ptrdiff_t limit,
7190 *buf++ = XINT (XCAR (components)); 7189 *buf++ = XINT (XCAR (components));
7191 } 7190 }
7192 else 7191 else
7193 abort (); 7192 emacs_abort ();
7194 *head -= len; 7193 *head -= len;
7195 } 7194 }
7196 } 7195 }
@@ -9428,7 +9427,7 @@ usage: (set-coding-system-priority &rest coding-systems) */)
9428 && changed[coding_priorities[j]]) 9427 && changed[coding_priorities[j]])
9429 j++; 9428 j++;
9430 if (j == coding_category_max) 9429 if (j == coding_category_max)
9431 abort (); 9430 emacs_abort ();
9432 priorities[i] = coding_priorities[j]; 9431 priorities[i] = coding_priorities[j];
9433 } 9432 }
9434 9433