emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r100740: * coding.c: Use SPECPDL_INDE


From: Juanma Barranquero
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100740: * coding.c: Use SPECPDL_INDEX, DOS_NT.
Date: Wed, 07 Jul 2010 10:45:22 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100740
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Wed 2010-07-07 10:45:22 +0200
message:
  * coding.c: Use SPECPDL_INDEX, DOS_NT.
modified:
  src/ChangeLog
  src/coding.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-07-07 03:09:30 +0000
+++ b/src/ChangeLog     2010-07-07 08:45:22 +0000
@@ -1,3 +1,9 @@
+2010-07-07  Juanma Barranquero  <address@hidden>
+
+       * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
+       (encode_coding_object): Use SPECPDL_INDEX.
+       (syms_of_coding): Use DOS_NT.
+
 2010-07-07  Dan Nicolaescu  <address@hidden>
 
        * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.

=== modified file 'src/coding.c'
--- a/src/coding.c      2010-07-04 07:50:25 +0000
+++ b/src/coding.c      2010-07-07 08:45:22 +0000
@@ -1447,7 +1447,7 @@
        {
          c = - c1;
        }
-      else if (UTF_8_1_OCTET_P(c1))
+      else if (UTF_8_1_OCTET_P (c1))
        {
          if (eol_crlf && c1 == '\r')
            ONE_MORE_BYTE (byte_after_cr);
@@ -2187,7 +2187,7 @@
    (3) alt&rule composition: 0x80 0xF5 BYTES CHARS | ALT RULE ... ALT CHAR ...
 
    and these old form:
-  
+
    (4) relative composition: 0x80 | MSEQ ... MSEQ
    (5) rulebase composition: 0x80 0xFF | MSEQ MRULE ... MSEQ
 
@@ -4284,7 +4284,7 @@
 
 #define ENCODE_ISO_CHARACTER(charset, c)                                  \
   do {                                                                    \
-    int code = ENCODE_CHAR ((charset),(c));                               \
+    int code = ENCODE_CHAR ((charset), (c));                              \
                                                                           \
     if (CHARSET_DIMENSION (charset) == 1)                                 \
       ENCODE_ISO_CHARACTER_DIMENSION1 ((charset), code);                  \
@@ -7562,7 +7562,7 @@
 int
 decode_coding_gap (struct coding_system *coding, EMACS_INT chars, EMACS_INT 
bytes)
 {
-  int count = specpdl_ptr - specpdl;
+  int count = SPECPDL_INDEX ();
   Lisp_Object attrs;
 
   code_conversion_save (0, 0);
@@ -7607,7 +7607,7 @@
 int
 encode_coding_gap (struct coding_system *coding, EMACS_INT chars, EMACS_INT 
bytes)
 {
-  int count = specpdl_ptr - specpdl;
+  int count = SPECPDL_INDEX ();
 
   code_conversion_save (0, 0);
 
@@ -7665,7 +7665,7 @@
      EMACS_INT from, from_byte, to, to_byte;
      Lisp_Object dst_object;
 {
-  int count = specpdl_ptr - specpdl;
+  int count = SPECPDL_INDEX ();
   unsigned char *destination;
   EMACS_INT dst_bytes;
   EMACS_INT chars = to - from;
@@ -7856,7 +7856,7 @@
      EMACS_INT from, from_byte, to, to_byte;
      Lisp_Object dst_object;
 {
-  int count = specpdl_ptr - specpdl;
+  int count = SPECPDL_INDEX ();
   EMACS_INT chars = to - from;
   EMACS_INT bytes = to_byte - from_byte;
   Lisp_Object attrs;
@@ -10854,7 +10854,7 @@
     for (i = 0; i < coding_category_max; i++)
       Fset (AREF (Vcoding_category_table, i), Qno_conversion);
   }
-#if defined (MSDOS) || defined (WINDOWSNT)
+#if defined (DOS_NT)
   system_eol_type = Qdos;
 #else
   system_eol_type = Qunix;


reply via email to

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