Mercurial > emacs
comparison src/coding.h @ 29310:2ffc1fff111a
(ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
[WINDOWSNT]: Add extern for Vw32_system_coding_system.
| author | Jason Rumney <jasonr@gnu.org> |
|---|---|
| date | Tue, 30 May 2000 21:19:39 +0000 |
| parents | 05e83ef9e129 |
| children | 8c825a8566f5 |
comparison
equal
deleted
inserted
replaced
| 29309:7f49fb2648f1 | 29310:2ffc1fff111a |
|---|---|
| 588 ? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \ | 588 ? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \ |
| 589 : (! NILP (Vdefault_file_name_coding_system) \ | 589 : (! NILP (Vdefault_file_name_coding_system) \ |
| 590 && XFASTINT (Vdefault_file_name_coding_system) != 0 \ | 590 && XFASTINT (Vdefault_file_name_coding_system) != 0 \ |
| 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 | |
| 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 | |
| 593 | 611 |
| 594 /* Extern declarations. */ | 612 /* Extern declarations. */ |
| 595 extern int decode_coding P_ ((struct coding_system *, unsigned char *, | 613 extern int decode_coding P_ ((struct coding_system *, unsigned char *, |
| 596 unsigned char *, int, int)); | 614 unsigned char *, int, int)); |
| 597 extern int encode_coding P_ ((struct coding_system *, unsigned char *, | 615 extern int encode_coding P_ ((struct coding_system *, unsigned char *, |
| 679 extern Lisp_Object Vfile_name_coding_system; | 697 extern Lisp_Object Vfile_name_coding_system; |
| 680 | 698 |
| 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. */ |
| 683 extern Lisp_Object Vdefault_file_name_coding_system; | 701 extern Lisp_Object Vdefault_file_name_coding_system; |
| 702 | |
| 703 #ifdef WINDOWSNT | |
| 704 /* Coding system for w32 system strings, or nil if none. */ | |
| 705 extern Lisp_Object Vw32_system_coding_system; | |
| 684 #endif | 706 #endif |
| 707 #endif | |
| 685 | 708 |
| 686 #endif /* _CODING_H */ | 709 #endif /* _CODING_H */ |
