diff options
| author | Eli Zaretskii | 2013-10-26 13:37:43 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-10-26 13:37:43 +0300 |
| commit | c3e9160b8c375760d6bc53602caeed211e91389d (patch) | |
| tree | 94322287584b1c8a245a78caca63df5b16461a68 /src/coding.h | |
| parent | 03d58cca817e8a21414c84696387813687c75261 (diff) | |
| download | emacs-c3e9160b8c375760d6bc53602caeed211e91389d.tar.gz emacs-c3e9160b8c375760d6bc53602caeed211e91389d.zip | |
Finished conversion routines; w32-unicode-filenames exposed to Lisp.
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/coding.h b/src/coding.h index 0472bec99de..39f9d62462b 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -672,23 +672,11 @@ struct coding_system | |||
| 672 | 672 | ||
| 673 | /* Encode the file name NAME using the specified coding system | 673 | /* Encode the file name NAME using the specified coding system |
| 674 | for file names, if any. */ | 674 | for file names, if any. */ |
| 675 | #define ENCODE_FILE(name) \ | 675 | #define ENCODE_FILE(NAME) encode_file_name (NAME) |
| 676 | (! NILP (Vfile_name_coding_system) \ | ||
| 677 | ? code_convert_string_norecord (name, Vfile_name_coding_system, 1) \ | ||
| 678 | : (! NILP (Vdefault_file_name_coding_system) \ | ||
| 679 | ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 1) \ | ||
| 680 | : name)) | ||
| 681 | |||
| 682 | 676 | ||
| 683 | /* Decode the file name NAME using the specified coding system | 677 | /* Decode the file name NAME using the specified coding system |
| 684 | for file names, if any. */ | 678 | for file names, if any. */ |
| 685 | #define DECODE_FILE(name) \ | 679 | #define DECODE_FILE(NAME) decode_file_name (NAME) |
| 686 | (! NILP (Vfile_name_coding_system) \ | ||
| 687 | ? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \ | ||
| 688 | : (! NILP (Vdefault_file_name_coding_system) \ | ||
| 689 | ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \ | ||
| 690 | : name)) | ||
| 691 | |||
| 692 | 680 | ||
| 693 | /* Encode the string STR using the specified coding system | 681 | /* Encode the string STR using the specified coding system |
| 694 | for system functions, if any. */ | 682 | for system functions, if any. */ |
| @@ -716,6 +704,8 @@ extern Lisp_Object code_convert_string (Lisp_Object, Lisp_Object, | |||
| 716 | Lisp_Object, bool, bool, bool); | 704 | Lisp_Object, bool, bool, bool); |
| 717 | extern Lisp_Object code_convert_string_norecord (Lisp_Object, Lisp_Object, | 705 | extern Lisp_Object code_convert_string_norecord (Lisp_Object, Lisp_Object, |
| 718 | bool); | 706 | bool); |
| 707 | extern Lisp_Object encode_file_name (Lisp_Object); | ||
| 708 | extern Lisp_Object decode_file_name (Lisp_Object); | ||
| 719 | extern Lisp_Object raw_text_coding_system (Lisp_Object); | 709 | extern Lisp_Object raw_text_coding_system (Lisp_Object); |
| 720 | extern Lisp_Object coding_inherit_eol_type (Lisp_Object, Lisp_Object); | 710 | extern Lisp_Object coding_inherit_eol_type (Lisp_Object, Lisp_Object); |
| 721 | extern Lisp_Object complement_process_encoding_system (Lisp_Object); | 711 | extern Lisp_Object complement_process_encoding_system (Lisp_Object); |