OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/xds_engine_xml.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/xds_engine_xml.c 1.6 -> 1.7

--- xds_engine_xml.c     2001/08/12 11:31:45     1.6
+++ xds_engine_xml.c     2001/08/13 19:48:02     1.7
@@ -42,7 +42,7 @@
     "<!DOCTYPE xds SYSTEM \"http://www.ossp.org/pkg/xds/xds-xml.dtd\">\n"
     "<xds>\n";
 
-static const char xds_xml_end_text[] = 
+static const char xds_xml_end_text[] =
     "</xds>\n";
 
 int xml_encode_begin(xds_t *xds, void *engine_context,
@@ -59,7 +59,7 @@
                      size_t *used_buffer_size, va_list *args)
 {
     xds_init_encoding_engine(strlen(xds_xml_begin_text));
-    if (strncasecmp(buffer, xds_xml_begin_text, 
+    if (strncasecmp(buffer, xds_xml_begin_text,
                     strlen(xds_xml_begin_text)) != 0)
         return XDS_ERR_TYPE_MISMATCH;
     return XDS_OK;
@@ -79,7 +79,7 @@
                    size_t *used_buffer_size, va_list *args)
 {
     xds_init_decoding_engine(strlen(xds_xml_end_text));
-    if (strncasecmp(buffer, xds_xml_end_text, 
+    if (strncasecmp(buffer, xds_xml_end_text,
                     strlen(xds_xml_end_text)) != 0)
         return XDS_ERR_TYPE_MISMATCH;
     return XDS_OK;
@@ -527,7 +527,7 @@
 
     /* Format the data into the buffer. */
     while (src_len > 0 && dst_size > 0) {
-        if (*((xds_uint8_t *) src) >= 0x80) { 
+        if (*((xds_uint8_t *) src) >= 0x80) {
             /* UTF-8ify it. */
             if (dst_size >= 7) {
                 tmp = sputu8((xds_uint32_t) * ((xds_uint8_t *) src), dst);
@@ -539,7 +539,7 @@
             else
                 dst_size = 0;
         }
-        else if (*src == '<') { 
+        else if (*src == '<') {
             /* Turn into "&lt;". */
             if (dst_size >= 4) {
                 *dst++ = '&';
@@ -592,7 +592,7 @@
             else
                 dst_size = 0;
         }
-        else {  
+        else {
             /* No special character; just copy it. */
             *dst++ = *src++;
             src_len--;
@@ -760,7 +760,7 @@
     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
 static const char xds_pad64 = '=';
 
-static int base64_encode(char *dst, size_t dstlen, 
+static int base64_encode(char *dst, size_t dstlen,
                          unsigned char const *src, size_t srclen)
 {
     size_t dstpos;
@@ -863,7 +863,7 @@
     return XDS_OK;
 }
 
-static int base64_decode(unsigned char *dst, size_t dstlen, 
+static int base64_decode(unsigned char *dst, size_t dstlen,
                          char const *src, size_t srclen)
 {
     int dstidx, state, ch = 0;
@@ -927,7 +927,7 @@
         }
     }
 
-    /* 
+    /*
      * We are done decoding Base-64 chars.  Let's see if we ended
      * on a byte boundary, and/or with erroneous trailing characters.
      */
@@ -949,7 +949,7 @@
                     return -1;
                 /* FALLTHROUGH */
             case 3:                /* Valid, means two bytes of info */
-                /* 
+                /*
                  * We know this char is an =.  Is there anything but
                  * whitespace after it?
                  */
@@ -959,7 +959,7 @@
                     if (!(isascii(ch) && isspace(ch)))
                         return -1;
                 }
-                /* 
+                /*
                  * Now make sure for cases 2 and 3 that the "extra"
                  * bits that slopped past the last full byte were
                  * zeros.  If we don't check them, they become a
@@ -972,7 +972,7 @@
         }
     }
     else {
-        /* 
+        /*
          * We ended by seeing the end of the string.  Make sure we
          * have no partial bytes lying around.
          */

CVSTrac 2.0.1