aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2000-05-30 21:19:39 +0000
committerJason Rumney2000-05-30 21:19:39 +0000
commit2dfda9629392dcbbab91366c34efaa63b5730d49 (patch)
tree4d8a94aa11ccacf01755da155ba133e193971ca9
parentad23de76bfbe2b2348f77b1e8cba9cb104b332ae (diff)
downloademacs-2dfda9629392dcbbab91366c34efaa63b5730d49.tar.gz
emacs-2dfda9629392dcbbab91366c34efaa63b5730d49.zip
(ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
[WINDOWSNT]: Add extern for Vw32_system_coding_system.
-rw-r--r--src/coding.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/coding.h b/src/coding.h
index c7cff63634d..b76074796de 100644
--- a/src/coding.h
+++ b/src/coding.h
@@ -591,6 +591,24 @@ struct coding_system
591 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \ 591 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \
592 : name)) 592 : name))
593 593
594#ifdef WINDOWSNT
595/* Encode the string STR using the specified coding system
596 for w32 system functions, if any. */
597#define ENCODE_SYSTEM(str) \
598 (! NILP (Vw32_system_coding_system) \
599 && XFASTINT (Vw32_system_coding_system) != 0 \
600 ? code_convert_string_norecord (str, Vw32_system_coding_system, 1) \
601 : str)
602
603/* Decode the string STR using the specified coding system
604 for w32 system functions, if any. */
605#define DECODE_SYSTEM(name) \
606 (! NILP (Vw32_system_coding_system) \
607 && XFASTINT (Vw32_system_coding_system) != 0 \
608 ? code_convert_string_norecord (str, Vw32_system_coding_system, 0) \
609 : str)
610#endif
611
594/* Extern declarations. */ 612/* Extern declarations. */
595extern int decode_coding P_ ((struct coding_system *, unsigned char *, 613extern int decode_coding P_ ((struct coding_system *, unsigned char *,
596 unsigned char *, int, int)); 614 unsigned char *, int, int));
@@ -681,6 +699,11 @@ extern Lisp_Object Vfile_name_coding_system;
681/* Coding system for file names used only when 699/* Coding system for file names used only when
682 Vfile_name_coding_system is nil. */ 700 Vfile_name_coding_system is nil. */
683extern Lisp_Object Vdefault_file_name_coding_system; 701extern Lisp_Object Vdefault_file_name_coding_system;
702
703#ifdef WINDOWSNT
704/* Coding system for w32 system strings, or nil if none. */
705extern Lisp_Object Vw32_system_coding_system;
706#endif
684#endif 707#endif
685 708
686#endif /* _CODING_H */ 709#endif /* _CODING_H */