aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
authorMiles Bader2004-12-08 05:02:30 +0000
committerMiles Bader2004-12-08 05:02:30 +0000
commit000fc2b1fad05ccd9e6cdb5810febb091f4b5738 (patch)
tree808f1473847c7c44bc8b28d8edfa086ec25035d1 /src/coding.h
parent5bc63b073c3c75dbfab1f14423f01cc615e26eeb (diff)
parentad136a7c3b310fa7240dd2adf62f23b454782bd0 (diff)
downloademacs-000fc2b1fad05ccd9e6cdb5810febb091f4b5738.tar.gz
emacs-000fc2b1fad05ccd9e6cdb5810febb091f4b5738.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-74
Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-709 Update from CVS: src/indent.c (Fvertical_motion): Fix last change. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-710 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-715 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-716 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-74 Update from CVS
Diffstat (limited to 'src/coding.h')
-rw-r--r--src/coding.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/coding.h b/src/coding.h
index d970c1ea257..39bd62867af 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 Copyright (C) 2003 5 Copyright (C) 2003
@@ -579,10 +580,10 @@ struct coding_system
579 for file names, if any. */ 580 for file names, if any. */
580#define ENCODE_FILE(name) \ 581#define ENCODE_FILE(name) \
581 (! NILP (Vfile_name_coding_system) \ 582 (! NILP (Vfile_name_coding_system) \
582 && XFASTINT (Vfile_name_coding_system) != 0 \ 583 && !EQ (Vfile_name_coding_system, make_number (0)) \
583 ? code_convert_string_norecord (name, Vfile_name_coding_system, 1) \ 584 ? code_convert_string_norecord (name, Vfile_name_coding_system, 1) \
584 : (! NILP (Vdefault_file_name_coding_system) \ 585 : (! NILP (Vdefault_file_name_coding_system) \
585 && XFASTINT (Vdefault_file_name_coding_system) != 0 \ 586 && !EQ (Vdefault_file_name_coding_system, make_number (0)) \
586 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 1) \ 587 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 1) \
587 : name)) 588 : name))
588 589
@@ -591,10 +592,10 @@ struct coding_system
591 for file names, if any. */ 592 for file names, if any. */
592#define DECODE_FILE(name) \ 593#define DECODE_FILE(name) \
593 (! NILP (Vfile_name_coding_system) \ 594 (! NILP (Vfile_name_coding_system) \
594 && XFASTINT (Vfile_name_coding_system) != 0 \ 595 && !EQ (Vfile_name_coding_system, make_number (0)) \
595 ? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \ 596 ? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \
596 : (! NILP (Vdefault_file_name_coding_system) \ 597 : (! NILP (Vdefault_file_name_coding_system) \
597 && XFASTINT (Vdefault_file_name_coding_system) != 0 \ 598 && !EQ (Vdefault_file_name_coding_system, make_number (0)) \
598 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \ 599 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \
599 : name)) 600 : name))
600 601
@@ -602,18 +603,18 @@ struct coding_system
602#ifdef WINDOWSNT 603#ifdef WINDOWSNT
603/* Encode the string STR using the specified coding system 604/* Encode the string STR using the specified coding system
604 for w32 system functions, if any. */ 605 for w32 system functions, if any. */
605#define ENCODE_SYSTEM(str) \ 606#define ENCODE_SYSTEM(str) \
606 (! NILP (Vlocale_coding_system) \ 607 (! NILP (Vlocale_coding_system) \
607 && XFASTINT (Vlocale_coding_system) != 0 \ 608 && !EQ (Vlocale_coding_system, make_number (0)) \
608 ? code_convert_string_norecord (str, Vlocale_coding_system, 1) \ 609 ? code_convert_string_norecord (str, Vlocale_coding_system, 1) \
609 : str) 610 : str)
610 611
611/* Decode the string STR using the specified coding system 612/* Decode the string STR using the specified coding system
612 for w32 system functions, if any. */ 613 for w32 system functions, if any. */
613#define DECODE_SYSTEM(name) \ 614#define DECODE_SYSTEM(name) \
614 (! NILP (Vlocale_coding_system) \ 615 (! NILP (Vlocale_coding_system) \
615 && XFASTINT (Vlocale_coding_system) != 0 \ 616 && !EQ (Vlocale_coding_system, make_number (0)) \
616 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ 617 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \
617 : str) 618 : str)
618 619
619#else /* WINDOWSNT */ 620#else /* WINDOWSNT */