Mercurial > hg > octave-lyh > gnulib-hg
changeset 10092:ae7bf97ee30c
Remove trailing spaces.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 20 May 2008 00:16:32 +0200 |
parents | 4811e739257d |
children | a08fa804bfab |
files | 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 |
diffstat | 10 files changed, 37 insertions(+), 37 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/git-merge-changelog.c +++ b/lib/git-merge-changelog.c @@ -808,7 +808,7 @@ /* 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' },
--- a/lib/javacomp.h +++ b/lib/javacomp.h @@ -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
--- a/lib/round.c +++ b/lib/round.c @@ -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))
--- a/lib/trim.c +++ b/lib/trim.c @@ -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 @@ 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 @@ #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 @@ *p = '\0'; } } - + return d; } - +
--- a/modules/unilbrk/u16-possible-linebreaks +++ b/modules/unilbrk/u16-possible-linebreaks @@ -9,7 +9,7 @@ unilbrk/base unilbrk/tables utf16-ucs4-unsafe -streq +streq configure.ac:
--- a/modules/unilbrk/u32-possible-linebreaks +++ b/modules/unilbrk/u32-possible-linebreaks @@ -8,7 +8,7 @@ Depends-on: unilbrk/base unilbrk/tables -streq +streq configure.ac:
--- a/modules/unilbrk/u8-possible-linebreaks +++ b/modules/unilbrk/u8-possible-linebreaks @@ -9,7 +9,7 @@ unilbrk/base unilbrk/tables utf8-ucs4-unsafe -streq +streq configure.ac:
--- a/tests/test-round2.c +++ b/tests/test-round2.c @@ -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 @@ { 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 @@ 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. */
--- a/tests/unictype/test-categ_and.c +++ b/tests/unictype/test-categ_and.c @@ -41,7 +41,7 @@ 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));
--- a/tests/unictype/test-categ_and_not.c +++ b/tests/unictype/test-categ_and_not.c @@ -41,7 +41,7 @@ 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));