Mercurial > emacs
comparison src/coding.h @ 39574:bdd381bc9eb0
(ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Fri, 05 Oct 2001 09:44:02 +0000 |
| parents | a164f630bf3c |
| children | 084520255528 |
comparison
equal
deleted
inserted
replaced
| 39573:b17103d5e3c8 | 39574:bdd381bc9eb0 |
|---|---|
| 600 #define DECODE_SYSTEM(name) \ | 600 #define DECODE_SYSTEM(name) \ |
| 601 (! NILP (Vw32_system_coding_system) \ | 601 (! NILP (Vw32_system_coding_system) \ |
| 602 && XFASTINT (Vw32_system_coding_system) != 0 \ | 602 && XFASTINT (Vw32_system_coding_system) != 0 \ |
| 603 ? code_convert_string_norecord (str, Vw32_system_coding_system, 0) \ | 603 ? code_convert_string_norecord (str, Vw32_system_coding_system, 0) \ |
| 604 : str) | 604 : str) |
| 605 #endif | 605 |
| 606 #else /* WINDOWSNT */ | |
| 607 | |
| 608 #define ENCODE_SYSTEM(str) string_make_unibyte(str) | |
| 609 #define DECODE_SYSTEM(name) name | |
| 610 | |
| 611 #endif /* !WINDOWSNT */ | |
| 606 | 612 |
| 607 /* Extern declarations. */ | 613 /* Extern declarations. */ |
| 608 extern int decode_coding P_ ((struct coding_system *, unsigned char *, | 614 extern int decode_coding P_ ((struct coding_system *, unsigned char *, |
| 609 unsigned char *, int, int)); | 615 unsigned char *, int, int)); |
| 610 extern int encode_coding P_ ((struct coding_system *, unsigned char *, | 616 extern int encode_coding P_ ((struct coding_system *, unsigned char *, |
