]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Don't confuse bool and int.
authorBruno Haible <bruno@clisp.org>
Tue, 12 Feb 2002 12:36:17 +0000 (12:36 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 23:20:22 +0000 (01:20 +0200)
lib/xerror.c
src/po-lex.c
src/x-awk.c
src/x-c.c
src/x-java.l
src/x-python.c
src/x-ycp.c

index dbb1e6ebbeb03601f6bf1c09fb1b17ec08efd1dc..6c552fb042fb191c25d29c752e2f44a57f4c4ffa 100644 (file)
@@ -105,7 +105,7 @@ multiline_warning (prefix, message)
       goto after_indent;
     }
 
-  while (1)
+  for (;;)
     {
       const char *np;
 
index 76ba7e166f10e7ed49632479cc96025dd3d7101d..c71b65d0b8c5f0e4a02d4dc962fb9fdf8bff364f 100644 (file)
@@ -1020,7 +1020,7 @@ po_gram_lex ()
            if (pass_comments)
              {
                bufpos = 0;
-               while (1)
+               for (;;)
                  {
                    while (bufpos + mb_len (mbc) >= bufmax)
                      {
@@ -1059,7 +1059,7 @@ po_gram_lex ()
          case '"':
            /* Accumulate a string.  */
            bufpos = 0;
-           while (1)
+           for (;;)
              {
                lex_getc (mbc);
                while (bufpos + mb_len (mbc) >= bufmax)
index 8915e53106e076d006fc1f1162a95335752103b4..e9d10843f1e1f6c6ada36ffe2d3036401bbd8f4d 100644 (file)
@@ -705,7 +705,7 @@ extract_parenthesized (mlp, commas_to_skip, plural_commas)
   /* Start state is 0.  */
   state = 0;
 
-  while (1)
+  for (;;)
     {
       token_ty token;
 
index 142b45ee3964ffed125127e61702d2999a69d184..494552f8d7195747e338aca1fa4250050d93dc4a 100644 (file)
--- a/src/x-c.c
+++ b/src/x-c.c
@@ -284,7 +284,7 @@ phase1_getc ()
        ++line_number;
       return c;
     }
-  while (1)
+  for (;;)
     {
       c = getc (fp);
       switch (c)
@@ -522,7 +522,7 @@ phase4_getc ()
       /* C comment.  */
       comment_start ();
       last_was_star = false;
-      while (1)
+      for (;;)
        {
          c = phase3_getc ();
          if (c == EOF)
@@ -562,7 +562,7 @@ phase4_getc ()
     case '/':
       /* C++ or ISO C 99 comment.  */
       comment_start ();
-      while (1)
+      for (;;)
        {
          c = phase3_getc ();
          if (c == '\n' || c == EOF)
@@ -879,7 +879,7 @@ phase5_get (tp)
         number tokens.  This is mostly due to token pasting (another
         thing we can ignore here).  */
       bufpos = 0;
-      while (1)
+      for (;;)
        {
          if (bufpos >= bufmax)
            {
@@ -942,7 +942,7 @@ phase5_get (tp)
         but ignoring it has no effect unless one of the keywords is
         "L".  Just pretend it won't happen.  Also, we don't need to
         remember the character constant.  */
-      while (1)
+      for (;;)
        {
          c = phase7_getc ();
          if (c == P7_NEWLINE)
@@ -966,7 +966,7 @@ phase5_get (tp)
         let the compiler complain about the argument not matching the
         prototype.  Just pretend it won't happen.  */
       bufpos = 0;
-      while (1)
+      for (;;)
        {
          c = phase7_getc ();
          if (c == P7_NEWLINE)
@@ -1101,7 +1101,7 @@ phase6_get (tp)
       *tp = phase6_pushback[--phase6_pushback_length];
       return;
     }
-  while (1)
+  for (;;)
     {
       /* Get the next token.  If it is not a '#' at the beginning of a
         line (ignoring whitespace), return immediately.  */
@@ -1112,7 +1112,7 @@ phase6_get (tp)
       /* Accumulate the rest of the directive in a buffer, until the
         "define" keyword is seen or until end of line.  */
       bufpos = 0;
-      while (1)
+      for (;;)
        {
          phaseX_get (tp);
          if (tp->type == token_type_eoln || tp->type == token_type_eof)
@@ -1187,7 +1187,7 @@ phase8_get (tp)
   phase6_get (tp);
   if (tp->type != token_type_string_literal)
     return;
-  while (1)
+  for (;;)
     {
       token_ty tmp;
       size_t len;
@@ -1217,7 +1217,7 @@ static void
 x_c_lex (tp)
      xgettext_token_ty *tp;
 {
-  while (1)
+  for (;;)
     {
       token_ty token;
       void *keyword_value;
@@ -1343,7 +1343,7 @@ extract_parenthesized (mlp, commas_to_skip, plural_commas)
   /* Start state is 0.  */
   state = 0;
 
-  while (1)
+  for (;;)
     {
       xgettext_token_ty token;
 
index 8cee75aaf48edc416b43bbfec38351e83b650f06..e8d9e325a2042148cacd831fb5155c77dd3e107a 100644 (file)
@@ -191,7 +191,7 @@ ID [a-zA-Z_][a-zA-Z0-9_]*
   char *str;
 
   char_buf *charbuf = create_char_buf ();
-  while (1)
+  for (;;)
     {
       c = input ();
       last = input ();
index 6553bdd22ad68eb628ef0b80ae996026f7d0437e..cda238654ad63baf7d8b18c8d042ad9b164f2468 100644 (file)
@@ -1033,7 +1033,7 @@ extract_parenthesized (mlp, commas_to_skip, plural_commas)
   /* Start state is 0.  */
   state = 0;
 
-  while (1)
+  for (;;)
     {
       token_ty token;
 
index fbc4f0dbe270c21c8e763d87e4fbe06474e46ed8..d41e2b1d77835898257c88f1760ab97badc2c07e 100644 (file)
@@ -170,7 +170,7 @@ phase2_getc ()
          /* sh comment.  */
          buflen = 0;
          lineno = line_number;
-         while (1)
+         for (;;)
            {
              c = phase1_getc ();
              if (c == '\n' || c == EOF)
@@ -271,7 +271,7 @@ phase2_getc ()
          /* C++ comment.  */
          buflen = 0;
          lineno = line_number;
-         while (1)
+         for (;;)
            {
              c = phase1_getc ();
              if (c == '\n' || c == EOF)