aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
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 */