emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/coding.h [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/coding.h [emacs-unicode-2]
Date: Wed, 08 Dec 2004 00:48:31 -0500

Index: emacs/src/coding.h
diff -c emacs/src/coding.h:1.67.2.9 emacs/src/coding.h:1.67.2.10
*** emacs/src/coding.h:1.67.2.9 Wed Apr 28 12:50:36 2004
--- emacs/src/coding.h  Wed Dec  8 05:02:19 2004
***************
*** 1,4 ****
--- 1,5 ----
  /* Header for coding system handler.
+    Copyright (C) 2004  Free Software Foundation, Inc.
     Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN.
       Licensed to the Free Software Foundation.
     Copyright (C) 2003
***************
*** 579,588 ****
     for file names, if any.  */
  #define ENCODE_FILE(name)                                                \
    (! NILP (Vfile_name_coding_system)                                     \
!    && XFASTINT (Vfile_name_coding_system) != 0                                
   \
     ? code_convert_string_norecord (name, Vfile_name_coding_system, 1)    \
     : (! NILP (Vdefault_file_name_coding_system)                               
   \
!       && XFASTINT (Vdefault_file_name_coding_system) != 0                \
        ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 
1) \
        : name))
  
--- 580,589 ----
     for file names, if any.  */
  #define ENCODE_FILE(name)                                                \
    (! NILP (Vfile_name_coding_system)                                     \
!    && !EQ (Vfile_name_coding_system, make_number (0))                    \
     ? code_convert_string_norecord (name, Vfile_name_coding_system, 1)    \
     : (! NILP (Vdefault_file_name_coding_system)                               
   \
!       && !EQ (Vdefault_file_name_coding_system, make_number (0))         \
        ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 
1) \
        : name))
  
***************
*** 591,600 ****
     for file names, if any.  */
  #define DECODE_FILE(name)                                                \
    (! NILP (Vfile_name_coding_system)                                     \
!    && XFASTINT (Vfile_name_coding_system) != 0                                
   \
     ? code_convert_string_norecord (name, Vfile_name_coding_system, 0)    \
     : (! NILP (Vdefault_file_name_coding_system)                               
   \
!       && XFASTINT (Vdefault_file_name_coding_system) != 0                \
        ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 
0) \
        : name))
  
--- 592,601 ----
     for file names, if any.  */
  #define DECODE_FILE(name)                                                \
    (! NILP (Vfile_name_coding_system)                                     \
!    && !EQ (Vfile_name_coding_system, make_number (0))                    \
     ? code_convert_string_norecord (name, Vfile_name_coding_system, 0)    \
     : (! NILP (Vdefault_file_name_coding_system)                               
   \
!       && !EQ (Vdefault_file_name_coding_system, make_number (0))         \
        ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 
0) \
        : name))
  
***************
*** 602,619 ****
  #ifdef WINDOWSNT
  /* Encode the string STR using the specified coding system
     for w32 system functions, if any.  */
! #define ENCODE_SYSTEM(str)                                            \
!   (! NILP (Vlocale_coding_system)                                     \
!    && XFASTINT (Vlocale_coding_system) != 0                           \
!    ? code_convert_string_norecord (str, Vlocale_coding_system, 1)     \
     : str)
  
  /* Decode the string STR using the specified coding system
     for w32 system functions, if any.  */
! #define DECODE_SYSTEM(name)                                           \
!   (! NILP (Vlocale_coding_system)                                     \
!    && XFASTINT (Vlocale_coding_system) != 0                           \
!    ? code_convert_string_norecord (str, Vlocale_coding_system, 0)     \
     : str)
  
  #else /* WINDOWSNT */
--- 603,620 ----
  #ifdef WINDOWSNT
  /* Encode the string STR using the specified coding system
     for w32 system functions, if any.  */
! #define ENCODE_SYSTEM(str)                                               \
!   (! NILP (Vlocale_coding_system)                                        \
!    && !EQ (Vlocale_coding_system, make_number (0))                       \
!    ? code_convert_string_norecord (str, Vlocale_coding_system, 1)        \
     : str)
  
  /* Decode the string STR using the specified coding system
     for w32 system functions, if any.  */
! #define DECODE_SYSTEM(name)                                              \
!   (! NILP (Vlocale_coding_system)                                        \
!    && !EQ (Vlocale_coding_system, make_number (0))                       \
!    ? code_convert_string_norecord (str, Vlocale_coding_system, 0)        \
     : str)
  
  #else /* WINDOWSNT */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]