aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
authorKaroly Lorentey2004-12-08 22:20:27 +0000
committerKaroly Lorentey2004-12-08 22:20:27 +0000
commitfad2f6858075f49c4c8fd16f0535c287e3f14ac3 (patch)
tree843a2ffe6caea6201877e3d2f1b6b954f47344b5 /src/coding.h
parent856dd47583918edd7987c13334703d3e7492d8f4 (diff)
parentb11e88237593ff7556d8535305e8f342e6b61d66 (diff)
downloademacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.tar.gz
emacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.zip
Merged in changes from CVS trunk.
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-714 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-271
Diffstat (limited to 'src/coding.h')
-rw-r--r--src/coding.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/coding.h b/src/coding.h
index 8eddf9d6855..ed31a7d7c94 100644
--- a/src/coding.h
+++ b/src/coding.h
@@ -1,4 +1,5 @@
1/* Header for coding system handler. 1/* Header for coding system handler.
2 Copyright (C) 2004 Free Software Foundation, Inc.
2 Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN. 3 Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN.
3 Licensed to the Free Software Foundation. 4 Licensed to the Free Software Foundation.
4 5
@@ -572,10 +573,10 @@ struct coding_system
572 for file names, if any. */ 573 for file names, if any. */
573#define ENCODE_FILE(name) \ 574#define ENCODE_FILE(name) \
574 (! NILP (Vfile_name_coding_system) \ 575 (! NILP (Vfile_name_coding_system) \
575 && XFASTINT (Vfile_name_coding_system) != 0 \ 576 && !EQ (Vfile_name_coding_system, make_number (0)) \
576 ? code_convert_string_norecord (name, Vfile_name_coding_system, 1) \ 577 ? code_convert_string_norecord (name, Vfile_name_coding_system, 1) \
577 : (! NILP (Vdefault_file_name_coding_system) \ 578 : (! NILP (Vdefault_file_name_coding_system) \
578 && XFASTINT (Vdefault_file_name_coding_system) != 0 \ 579 && !EQ (Vdefault_file_name_coding_system, make_number (0)) \
579 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 1) \ 580 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 1) \
580 : name)) 581 : name))
581 582
@@ -583,10 +584,10 @@ struct coding_system
583 for file names, if any. */ 584 for file names, if any. */
584#define DECODE_FILE(name) \ 585#define DECODE_FILE(name) \
585 (! NILP (Vfile_name_coding_system) \ 586 (! NILP (Vfile_name_coding_system) \
586 && XFASTINT (Vfile_name_coding_system) != 0 \ 587 && !EQ (Vfile_name_coding_system, make_number (0)) \
587 ? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \ 588 ? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \
588 : (! NILP (Vdefault_file_name_coding_system) \ 589 : (! NILP (Vdefault_file_name_coding_system) \
589 && XFASTINT (Vdefault_file_name_coding_system) != 0 \ 590 && !EQ (Vdefault_file_name_coding_system, make_number (0)) \
590 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \ 591 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \
591 : name)) 592 : name))
592 593
@@ -595,7 +596,7 @@ struct coding_system
595 for w32 system functions, if any. */ 596 for w32 system functions, if any. */
596#define ENCODE_SYSTEM(str) \ 597#define ENCODE_SYSTEM(str) \
597 (! NILP (Vlocale_coding_system) \ 598 (! NILP (Vlocale_coding_system) \
598 && XFASTINT (Vlocale_coding_system) != 0 \ 599 && !EQ (Vlocale_coding_system, make_number (0)) \
599 ? code_convert_string_norecord (str, Vlocale_coding_system, 1) \ 600 ? code_convert_string_norecord (str, Vlocale_coding_system, 1) \
600 : str) 601 : str)
601 602
@@ -603,7 +604,7 @@ struct coding_system
603 for w32 system functions, if any. */ 604 for w32 system functions, if any. */
604#define DECODE_SYSTEM(name) \ 605#define DECODE_SYSTEM(name) \
605 (! NILP (Vlocale_coding_system) \ 606 (! NILP (Vlocale_coding_system) \
606 && XFASTINT (Vlocale_coding_system) != 0 \ 607 && !EQ (Vlocale_coding_system, make_number (0)) \
607 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ 608 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \
608 : str) 609 : str)
609 610
@@ -635,6 +636,10 @@ extern int code_convert_region P_ ((int, int, int, int, struct coding_system *,
635extern Lisp_Object run_pre_post_conversion_on_str P_ ((Lisp_Object, 636extern Lisp_Object run_pre_post_conversion_on_str P_ ((Lisp_Object,
636 struct coding_system *, 637 struct coding_system *,
637 int)); 638 int));
639extern void run_pre_write_conversin_on_c_str P_ ((unsigned char **, int *,
640 int, int,
641 struct coding_system *));
642
638extern int decoding_buffer_size P_ ((struct coding_system *, int)); 643extern int decoding_buffer_size P_ ((struct coding_system *, int));
639extern int encoding_buffer_size P_ ((struct coding_system *, int)); 644extern int encoding_buffer_size P_ ((struct coding_system *, int));
640extern void detect_coding P_ ((struct coding_system *, const unsigned char *, 645extern void detect_coding P_ ((struct coding_system *, const unsigned char *,