Remove trailing spaces.
authorBruno Haible <bruno@clisp.org>
Mon, 19 May 2008 22:16:32 +0000 (00:16 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 19 May 2008 22:16:32 +0000 (00:16 +0200)
lib/git-merge-changelog.c
lib/javacomp.h
lib/round.c
lib/trim.c
modules/unilbrk/u16-possible-linebreaks
modules/unilbrk/u32-possible-linebreaks
modules/unilbrk/u8-possible-linebreaks
tests/test-round2.c
tests/unictype/test-categ_and.c
tests/unictype/test-categ_and_not.c

index c3ebf7f5ee0088a4d1013509d881ea3f4fef0c4b..524d5d34939242a658fbd989ce57cb05de2fdb03 100644 (file)
@@ -808,7 +808,7 @@ conflict_write (FILE *fp, struct conflict *c)
 
 /* Long options.  */
 static const struct option long_options[] =
-{ 
+{
   { "help", no_argument, NULL, 'h' },
   { "split-merged-entry", no_argument, NULL, CHAR_MAX + 1 },
   { "version", no_argument, NULL, 'V' },
index 4cf0921d89923e27b9252283961d4c555c6d3a9f..7ebcbaae1062e233db2b602b5f082ce512431b4a 100644 (file)
@@ -36,7 +36,7 @@
              1.4                 48.0
              1.5                 49.0
              1.6                 50.0
-   target_version can also be given as NULL. In this case, the required 
+   target_version can also be given as NULL. In this case, the required
    target_version is determined from the found JVM (see javaversion.h).
    Specifying target_version is useful when building a library (.jar) that is
    useful outside the given package. Passing target_version = NULL is useful
index 4f85402df92442aa085b98c475261b4112f63e1e..df6232d51311ff3ba362740284189262ea9ace68 100644 (file)
@@ -67,7 +67,7 @@
 DOUBLE
 FLOOR_BASED_ROUND (DOUBLE x)
 {
-  if (x >= L_(0.0)) 
+  if (x >= L_(0.0))
     {
       DOUBLE y = FLOOR (x);
       if (x - y >= L_(0.5))
index 3802301df4f1cca91e9554508c8f109bd0354bd4..9293a64cecae2c79a3e007ad276788ebf3284e66 100644 (file)
@@ -24,7 +24,7 @@
 #include <ctype.h>
 #include <string.h>
 
-#if HAVE_MBRTOWC 
+#if HAVE_MBRTOWC
 # include <stddef.h>
 # include <stdlib.h>
 # include "mbchar.h"
@@ -44,72 +44,72 @@ char *
 trim2(const char *s, int how)
 {
   char *d;
-    
+
   d = strdup(s);
 
   if (!d)
     xalloc_die();
-  
+
 #if HAVE_MBRTOWC
   if (MB_CUR_MAX > 1)
     {
       mbi_iterator_t i;
-      
+
       /* Trim leading whitespaces. */
-      if (how != TRIM_TRAILING) 
+      if (how != TRIM_TRAILING)
        {
          mbi_init (i, d, strlen (d));
-      
+
          for (; mbi_avail (i) && mb_isspace (mbi_cur (i)); mbi_advance (i))
            ;
-         
+
          memmove (d, mbi_cur_ptr (i), strlen (mbi_cur_ptr (i)) + 1);
        }
-  
+
       /* Trim trailing whitespaces. */
-      if (how != TRIM_LEADING) 
+      if (how != TRIM_LEADING)
        {
          int state = 0;
          char *r IF_LINT (= NULL); /* used only while state = 2 */
-         
+
          mbi_init (i, d, strlen (d));
 
-         for (; mbi_avail (i); mbi_advance (i)) 
+         for (; mbi_avail (i); mbi_advance (i))
            {
-             if (state == 0 && mb_isspace (mbi_cur (i))) 
+             if (state == 0 && mb_isspace (mbi_cur (i)))
                {
                  state = 0;
                  continue;
                }
-             
+
              if (state == 0 && !mb_isspace (mbi_cur (i)))
                {
                  state = 1;
                  continue;
                }
-             
+
              if (state == 1 && !mb_isspace (mbi_cur (i)))
                {
                  state = 1;
                  continue;
                }
-             
-             if (state == 1 && mb_isspace (mbi_cur (i))) 
+
+             if (state == 1 && mb_isspace (mbi_cur (i)))
                {
                  state = 2;
                  r = (char *) mbi_cur_ptr (i);
                }
-             else if (state == 2 && mb_isspace (mbi_cur (i))) 
+             else if (state == 2 && mb_isspace (mbi_cur (i)))
                {
                  state = 2;
-               } 
-             else 
+               }
+             else
                {
                  state = 1;
                }
            }
-         
-         if (state == 2) 
+
+         if (state == 2)
            *r = '\0';
        }
     }
@@ -117,11 +117,11 @@ trim2(const char *s, int how)
 #endif /* HAVE_MBRTOWC */
     {
       char *p;
-      
+
       /* Trim leading whitespaces. */
       if (how != TRIM_TRAILING) {
        for (p = d; *p && isspace ((unsigned char) *p); p++)
-         ;                     
+         ;
 
        memmove (d, p, strlen (p) + 1);
       }
@@ -132,7 +132,7 @@ trim2(const char *s, int how)
          *p = '\0';
       }
     }
-  
+
   return d;
 }
-  
+
index f3c2bab3c1fb216b02c9cb16ba7bfefd3feb160c..2b9a86762bc028e0d47947d15a8d4684e973fcee 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 unilbrk/base
 unilbrk/tables
 utf16-ucs4-unsafe
-streq 
+streq
 
 configure.ac:
 
index 46b363f9047958141fe64ede18f8d5e4da2762e1..eda95189a8fecf2fe22e4c570f88ba7a56df81b2 100644 (file)
@@ -8,7 +8,7 @@ lib/uniwidth/cjk.h
 Depends-on:
 unilbrk/base
 unilbrk/tables
-streq 
+streq
 
 configure.ac:
 
index 284b96a9466c6efbc34314c6e5b1e32348ca1af6..f963afdc32f76992ffe32a308b8078e53872f1c3 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 unilbrk/base
 unilbrk/tables
 utf8-ucs4-unsafe
-streq 
+streq
 
 configure.ac:
 
index b3ae0c80b841541492a478f1e3f7bd7c6cc5c2e7..aa993ef562d39e57de1c09a86c4a1bd35e85f3f8 100644 (file)
@@ -19,7 +19,7 @@
 
 /* Get the two reference implementations of round under the names
    round_reference1 and round_reference2.
-   
+
    round.c will #include <config.h> for us. */
 #define FLOOR_BASED_ROUND round_reference1
 #define FLOOR_FREE_ROUND round_reference2
@@ -60,7 +60,7 @@ equal (const char *message, DOUBLE x, DOUBLE y0, DOUBLE y1)
 {
   if (ISNAN (y0) ? ISNAN (y1) : y0 == y1)
     return true;
-  else 
+  else
     {
       fprintf (stderr, "%s: "FUNCTION"(%g(%a)) = %g(%a) or %g(%a)?\n",
               message, x, x, y0, y0, y1, y1);
@@ -75,9 +75,9 @@ check (DOUBLE x)
   DOUBLE ref1 = round_reference1 (x);
   DOUBLE ref2 = round_reference2 (x);
   DOUBLE result = ROUND (x);
-  
+
   /* If the reference implementations disagree, bail out immediately.  */
-  if (!equal ("reference implementations disagree", x, ref1, ref2)) 
+  if (!equal ("reference implementations disagree", x, ref1, ref2))
     exit (EXIT_FAILURE);
 
   /* If the actual implementation is wrong, return an error code.  */
index 7dc461338c584fd6676e74a9aa737bf176e4731f..5531ff40b9a5b2cfe07d6b892a337d0739366833 100644 (file)
@@ -41,7 +41,7 @@ main ()
     uc_general_category_and (
       uc_general_category_or (UC_LETTER, UC_DECIMAL_DIGIT_NUMBER),
       uc_general_category_or (UC_UPPERCASE_LETTER, UC_NUMBER));
-  
+
   ASSERT (uc_is_general_category ('A', ct));
   ASSERT (!uc_is_general_category ('a', ct));
   ASSERT (uc_is_general_category ('7', ct));
index 91a1da99f71a8016c442d8e81a57532261fea13b..90b40f8bae362b3cd8cf51c3e5467bd799511f5e 100644 (file)
@@ -41,7 +41,7 @@ main ()
     uc_general_category_and_not (
       uc_general_category_or (UC_LETTER, UC_NUMBER),
       uc_general_category_or (UC_UPPERCASE_LETTER, UC_DECIMAL_DIGIT_NUMBER));
-  
+
   ASSERT (!uc_is_general_category ('A', ct));
   ASSERT (uc_is_general_category ('a', ct));
   ASSERT (!uc_is_general_category ('7', ct));