aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
authorEli Zaretskii2013-10-26 13:37:43 +0300
committerEli Zaretskii2013-10-26 13:37:43 +0300
commitc3e9160b8c375760d6bc53602caeed211e91389d (patch)
tree94322287584b1c8a245a78caca63df5b16461a68 /src/coding.h
parent03d58cca817e8a21414c84696387813687c75261 (diff)
downloademacs-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.h18
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);
717extern Lisp_Object code_convert_string_norecord (Lisp_Object, Lisp_Object, 705extern Lisp_Object code_convert_string_norecord (Lisp_Object, Lisp_Object,
718 bool); 706 bool);
707extern Lisp_Object encode_file_name (Lisp_Object);
708extern Lisp_Object decode_file_name (Lisp_Object);
719extern Lisp_Object raw_text_coding_system (Lisp_Object); 709extern Lisp_Object raw_text_coding_system (Lisp_Object);
720extern Lisp_Object coding_inherit_eol_type (Lisp_Object, Lisp_Object); 710extern Lisp_Object coding_inherit_eol_type (Lisp_Object, Lisp_Object);
721extern Lisp_Object complement_process_encoding_system (Lisp_Object); 711extern Lisp_Object complement_process_encoding_system (Lisp_Object);