]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Modernize coding style: Avoid 'continue;' statements where possible.
authorBruno Haible <bruno@clisp.org>
Thu, 11 Dec 2025 09:38:17 +0000 (10:38 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 11 Dec 2025 09:38:17 +0000 (10:38 +0100)
* gettext-tools/src/cldr-plurals.c (extract_rules): Use if/else instead of
'continue;'.
* gettext-tools/src/msgfmt.c (msgfmt_operand_list_add_from_directory): Likewise.
* gettext-tools/src/read-po-lex.c (po_gram_lex): Likewise.
* gettext-tools/src/sentence.c (sentence_end): Likewise.
* gettext-tools/src/x-awk.c (extract_parenthesized): Use 'break;' instead of
'continue;'.
* gettext-tools/src/x-c.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
* gettext-tools/src/x-lua.c (extract_balanced): Likewise.
* gettext-tools/src/x-modula2.c (extract_parenthesized): Likewise.
* gettext-tools/src/x-php.c (extract_balanced): Likewise.
* gettext-tools/src/x-python.c (extract_balanced): Likewise.
* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
* gettext-tools/src/x-ycp.c (extract_parenthesized): Likewise.

15 files changed:
gettext-tools/src/cldr-plurals.c
gettext-tools/src/msgfmt.c
gettext-tools/src/read-po-lex.c
gettext-tools/src/sentence.c
gettext-tools/src/x-awk.c
gettext-tools/src/x-c.c
gettext-tools/src/x-csharp.c
gettext-tools/src/x-java.c
gettext-tools/src/x-javascript.c
gettext-tools/src/x-lua.c
gettext-tools/src/x-modula2.c
gettext-tools/src/x-php.c
gettext-tools/src/x-python.c
gettext-tools/src/x-vala.c
gettext-tools/src/x-ycp.c

index 7c38685158e9810a43660f283058cf513541f715..acddd0ff36cc3bf7526d82d9a936569fd01925ed 100644 (file)
@@ -90,61 +90,60 @@ extract_rules (FILE *fp,
       xmlNodePtr n2;
       bool found = false;
 
-      if (n->type != XML_ELEMENT_NODE
-          || !xmlStrEqual (n->name, BAD_CAST "pluralRules"))
-        continue;
-
-      if (!xmlHasProp (n, BAD_CAST "locales"))
-        {
-          error_at_line (0, 0,
-                         logical_filename,
-                         xmlGetLineNo (n),
-                         _("The element <%s> does not have attribute <%s>"),
-                         "pluralRules", "locales");
-          continue;
-        }
-
-      cp = locales = xmlGetProp (n, BAD_CAST "locales");
-      while (*cp != '\0')
-        {
-          while (c_isspace (*cp))
-            cp++;
-          if (xmlStrncmp (cp, BAD_CAST locale, locale_length) == 0
-              && (*(cp + locale_length) == '\0'
-                  || c_isspace (*(cp + locale_length))))
-            {
-              found = true;
-              break;
-            }
-          while (*cp && !c_isspace (*cp))
-            cp++;
-        }
-      xmlFree (locales);
-
-      if (!found)
-        continue;
-
-      for (n2 = n->children; n2; n2 = n2->next)
+      if (n->type == XML_ELEMENT_NODE
+          && xmlStrEqual (n->name, BAD_CAST "pluralRules"))
         {
-          if (n2->type != XML_ELEMENT_NODE
-              || !xmlStrEqual (n2->name, BAD_CAST "pluralRule"))
-            continue;
-
-          if (!xmlHasProp (n2, BAD_CAST "count"))
+          if (!xmlHasProp (n, BAD_CAST "locales"))
             {
               error_at_line (0, 0,
                              logical_filename,
-                             xmlGetLineNo (n2),
+                             xmlGetLineNo (n),
                              _("The element <%s> does not have attribute <%s>"),
-                             "pluralRule", "count");
-              break;
+                             "pluralRules", "locales");
+            }
+          else
+            {
+              cp = locales = xmlGetProp (n, BAD_CAST "locales");
+              while (*cp != '\0')
+                {
+                  while (c_isspace (*cp))
+                    cp++;
+                  if (xmlStrncmp (cp, BAD_CAST locale, locale_length) == 0
+                      && (*(cp + locale_length) == '\0'
+                          || c_isspace (*(cp + locale_length))))
+                    {
+                      found = true;
+                      break;
+                    }
+                  while (*cp && !c_isspace (*cp))
+                    cp++;
+                }
+              xmlFree (locales);
+
+              if (found)
+                for (n2 = n->children; n2; n2 = n2->next)
+                  {
+                    if (n2->type == XML_ELEMENT_NODE
+                        && xmlStrEqual (n2->name, BAD_CAST "pluralRule"))
+                      {
+                        if (!xmlHasProp (n2, BAD_CAST "count"))
+                          {
+                            error_at_line (0, 0,
+                                           logical_filename,
+                                           xmlGetLineNo (n2),
+                                           _("The element <%s> does not have attribute <%s>"),
+                                           "pluralRule", "count");
+                            break;
+                          }
+
+                        xmlChar *count = xmlGetProp (n2, BAD_CAST "count");
+                        xmlChar *content = xmlNodeGetContent (n2);
+                        sb_xappendf (&buffer, "%s: %s; ", count, content);
+                        xmlFree (count);
+                        xmlFree (content);
+                      }
+                  }
             }
-
-          xmlChar *count = xmlGetProp (n2, BAD_CAST "count");
-          xmlChar *content = xmlNodeGetContent (n2);
-          sb_xappendf (&buffer, "%s: %s; ", count, content);
-          xmlFree (count);
-          xmlFree (content);
         }
     }
 
index f7c45a7f30f282015c4d6717606e75866b6be33b..42a710a3cdb60e04ec6ba925f7e56c4ebcdb1779 100644 (file)
@@ -1641,14 +1641,15 @@ msgfmt_operand_list_add_from_directory (msgfmt_operand_list_ty *operands,
                  ngettext ("found %d fatal error", "found %d fatal errors",
                            nerrors),
                  nerrors);
-          continue;
         }
+      else
+        {
+          /* Convert the messages to Unicode.  */
+          iconv_message_list (mlp, NULL, po_charset_utf8, NULL,
+                              textmode_xerror_handler);
 
-      /* Convert the messages to Unicode.  */
-      iconv_message_list (mlp, NULL, po_charset_utf8, NULL,
-                          textmode_xerror_handler);
-
-      msgfmt_operand_list_append (operands, language, mlp);
+          msgfmt_operand_list_append (operands, language, mlp);
+        }
     }
 
   string_list_destroy (&languages);
index d5550636c291e7cf51cd103fed03fd018b246cd0..79f433d65d18991d3f82698aeb125e38b422c0c5 100644 (file)
@@ -1217,14 +1217,13 @@ po_gram_lex (union PO_GRAM_STYPE *lval, struct po_parser_state *ps)
                 if (mb_iseq (mbc, '"'))
                   break;
                 if (mb_iseq (mbc, '\\'))
+                  buf[bufpos++] = control_sequence (ps);
+                else
                   {
-                    buf[bufpos++] = control_sequence (ps);
-                    continue;
+                    /* Add mbc to the accumulator.  */
+                    memcpy_small (&buf[bufpos], mb_ptr (mbc), mb_len (mbc));
+                    bufpos += mb_len (mbc);
                   }
-
-                /* Add mbc to the accumulator.  */
-                memcpy_small (&buf[bufpos], mb_ptr (mbc), mb_len (mbc));
-                bufpos += mb_len (mbc);
               }
             buf[bufpos] = '\0';
 
index 9764968d657402e312adbc31ab47c006e619a622..c4f92ba5b096ff05e2b48984906d7c1feefaafbb 100644 (file)
@@ -80,10 +80,8 @@ sentence_end (const char *string, ucs4_t *ending_charp)
             }
 
           str += length;
-          continue;
         }
-
-      if (state == 1)
+      else if (state == 1)
         {
           switch (uc)
             {
@@ -118,10 +116,8 @@ sentence_end (const char *string, ucs4_t *ending_charp)
             }
 
           str += length;
-          continue;
         }
-
-      if (state == 2)
+      else if (state == 2)
         {
           switch (uc)
             {
@@ -155,10 +151,8 @@ sentence_end (const char *string, ucs4_t *ending_charp)
             }
 
           str += length;
-          continue;
         }
-
-      if (state == 4)
+      else if (state == 4)
         {
           switch (uc)
             {
@@ -183,7 +177,6 @@ sentence_end (const char *string, ucs4_t *ending_charp)
             }
 
           str += length;
-          continue;
         }
     }
 
index 098b69031b17d66a45d26b125eabe3016bd92eef..6fde77fe9da9ed64a1f43c9df84996508cbdd64a 100644 (file)
@@ -792,7 +792,7 @@ extract_parenthesized (message_list_ty *mlp,
                 flag_context_list_table,
                 token.string, strlen (token.string)));
           free (token.string);
-          continue;
+          break;
 
         case token_type_lparen:
           if (++nesting_depth > MAX_NESTING_DEPTH)
@@ -811,7 +811,7 @@ extract_parenthesized (message_list_ty *mlp,
           next_is_argument = false;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rparen:
           arglist_parser_done (argparser, arg);
@@ -828,7 +828,7 @@ extract_parenthesized (message_list_ty *mlp,
           next_is_argument = false;
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_string:
           {
@@ -855,7 +855,7 @@ extract_parenthesized (message_list_ty *mlp,
           next_is_argument = false;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_i18nstring:
           {
@@ -870,7 +870,7 @@ extract_parenthesized (message_list_ty *mlp,
           next_is_argument = false;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_semicolon:
           /* An argument list ends, and a new statement begins.  */
@@ -889,7 +889,7 @@ extract_parenthesized (message_list_ty *mlp,
                                flag_context_list_iterator_advance (
                                  &context_iter));
           state = 0;
-          continue;
+          break;
 
         case token_type_eof:
           arglist_parser_done (argparser, arg);
@@ -900,7 +900,7 @@ extract_parenthesized (message_list_ty *mlp,
           next_is_argument = false;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         default:
           abort ();
index c0bf3a29e13961ff89b1f0e096be23f859c18b9e..11285776ab43a715760d8471c2205e6672625a9a 100644 (file)
@@ -2335,7 +2335,7 @@ extract_parenthesized (message_list_ty *mlp,
                     token.string, token_string_len + 1));
             }
           free (token.string);
-          continue;
+          break;
 
         case xgettext_token_type_lparen:
           if (++nesting_depth > MAX_NESTING_DEPTH)
@@ -2354,7 +2354,7 @@ extract_parenthesized (message_list_ty *mlp,
           next_context_iter = null_context_list_iterator;
           selectorcall_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case xgettext_token_type_rparen:
           arglist_parser_done (argparser, arg);
@@ -2371,7 +2371,7 @@ extract_parenthesized (message_list_ty *mlp,
           next_context_iter = passthrough_context_list_iterator;
           selectorcall_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case xgettext_token_type_colon:
           if (objc_extensions)
@@ -2390,7 +2390,7 @@ extract_parenthesized (message_list_ty *mlp,
               selectorcall_context_iter = null_context_list_iterator;
             }
           state = 0;
-          continue;
+          break;
 
         case xgettext_token_type_string_literal:
           {
@@ -2413,13 +2413,13 @@ extract_parenthesized (message_list_ty *mlp,
           next_context_iter = null_context_list_iterator;
           selectorcall_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case xgettext_token_type_other:
           next_context_iter = null_context_list_iterator;
           selectorcall_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case xgettext_token_type_eof:
           arglist_parser_done (argparser, arg);
index df7d0a9f83f9987d1d242122bcdb6c312a350e59..8f94c33acec37b1158e03c74c5021c606b8cfcef 100644 (file)
@@ -2016,7 +2016,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
             next_context_iter = flag_context_list_iterator (context_list);
 
             free (sum);
-            continue;
+            break;
           }
 
         case token_type_lparen:
@@ -2036,7 +2036,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           paren_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rparen:
           if (terminator == token_type_rparen)
@@ -2051,7 +2051,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
                       _("')' found where '}' was expected"));
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_lbrace:
           if (++brace_nesting_depth > MAX_NESTING_DEPTH)
@@ -2070,7 +2070,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           brace_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rbrace:
           if (terminator == token_type_rbrace)
@@ -2085,7 +2085,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
                       _("'}' found where ')' was expected"));
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_comma:
           arg++;
@@ -2096,7 +2096,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
                                  &context_iter));
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_string_literal:
         case token_type_template:
@@ -2123,7 +2123,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           drop_reference (token.comment);
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_eof:
           arglist_parser_done (argparser, arg);
@@ -2139,7 +2139,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         default:
           abort ();
index db09fad30e43a29827b85d775297ac767355d0ec..cafbea3551364bc9ffd92207610efb705e6efd8f 100644 (file)
@@ -1801,7 +1801,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
               }
 
             free (sum);
-            continue;
+            break;
           }
 
         case token_type_lparen:
@@ -1841,7 +1841,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rparen:
           if (terminator == token_type_rparen)
@@ -1856,7 +1856,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
                       _("')' found where '}' was expected"));
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_lbrace:
           if (++brace_nesting_depth > MAX_NESTING_DEPTH)
@@ -1875,7 +1875,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           brace_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rbrace:
           if (terminator == token_type_rbrace)
@@ -1890,7 +1890,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
                       _("'}' found where ')' was expected"));
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_comma:
           arg++;
@@ -1899,7 +1899,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           inner_region = new_sub_region (outer_region, curr_context);
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_conditional:
           /* In an expression A ? B : C, each of A, B, C is a distinct
@@ -1912,7 +1912,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           inner_region = new_sub_region (outer_region, curr_context);
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_colon:
           /* In an expression A ? B : C, each of A, B, C is a distinct
@@ -1921,7 +1921,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           inner_region = new_sub_region (outer_region, curr_context);
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_assign:
           /* In an expression A = B, A and B are distinct sub-regions.
@@ -1931,7 +1931,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           inner_region = new_sub_region (outer_region, curr_context);
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_plus:
         case token_type_operator:
@@ -1947,7 +1947,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           inner_region->inherit_from_parent_region = false;
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_string_literal:
           {
@@ -1973,7 +1973,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
           drop_reference (token.comment);
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_semicolon:
           arglist_parser_done (argparser, arg);
@@ -1984,7 +1984,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
               inner_region = new_sub_region (outer_region, curr_context);
               next_context_iter = null_context_list_iterator;
               state = 0;
-              continue;
+              break;
             }
           else
             return false;
@@ -1999,7 +1999,7 @@ extract_parenthesized (message_list_ty *mlp, token_type_ty terminator,
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         default:
           abort ();
index c6fe3e9132b782e6835fe21131f986f81c5bc38a..95a09ff492d727c446af9557d9a803866fbde21b 100644 (file)
@@ -1896,7 +1896,7 @@ extract_balanced (message_list_ty *mlp,
                 flag_context_list_table,
                 token.string, strlen (token.string)));
           free (token.string);
-          continue;
+          break;
 
         case token_type_lparen:
           if (++paren_nesting_depth > MAX_NESTING_DEPTH)
@@ -1915,7 +1915,7 @@ extract_balanced (message_list_ty *mlp,
           paren_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rparen:
           if (delim == token_type_rparen || delim == token_type_eof)
@@ -1926,7 +1926,7 @@ extract_balanced (message_list_ty *mlp,
             }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_comma:
           arg++;
@@ -1937,7 +1937,7 @@ extract_balanced (message_list_ty *mlp,
                                  &context_iter));
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_lbracket:
           if (++bracket_nesting_depth > MAX_NESTING_DEPTH)
@@ -1956,7 +1956,7 @@ extract_balanced (message_list_ty *mlp,
           bracket_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rbracket:
           if (delim == token_type_rbracket || delim == token_type_eof)
@@ -1967,7 +1967,7 @@ extract_balanced (message_list_ty *mlp,
             }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_lbrace:
           if (++brace_nesting_depth > MAX_NESTING_DEPTH)
@@ -1986,7 +1986,7 @@ extract_balanced (message_list_ty *mlp,
           brace_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rbrace:
           if (delim == token_type_rbrace || delim == token_type_eof)
@@ -1997,7 +1997,7 @@ extract_balanced (message_list_ty *mlp,
             }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_string:
         case token_type_template:
@@ -2067,7 +2067,7 @@ extract_balanced (message_list_ty *mlp,
           drop_reference (token.comment);
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_xml_element_start:
           if (++xml_element_nesting_depth > MAX_NESTING_DEPTH)
@@ -2086,7 +2086,7 @@ extract_balanced (message_list_ty *mlp,
           xml_element_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_xml_element_end:
           if (delim == token_type_xml_element_end || delim == token_type_eof)
@@ -2097,7 +2097,7 @@ extract_balanced (message_list_ty *mlp,
             }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_eof:
           arglist_parser_done (argparser, arg);
@@ -2118,7 +2118,7 @@ extract_balanced (message_list_ty *mlp,
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         default:
           abort ();
index 8b04264e7334d15eed6d067aa5ebfd9c9fd1d5fd..6bfa2d29bb5bedb4331dfd43c7f0e8065967be92 100644 (file)
@@ -1069,7 +1069,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
                 flag_context_list_table,
                 token.string, strlen (token.string)));
           free (token.string);
-          continue;
+          break;
 
         case token_type_lparen:
           if (++paren_nesting_depth > MAX_NESTING_DEPTH)
@@ -1100,7 +1100,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
 
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_lbracket:
           if (++bracket_nesting_depth > MAX_NESTING_DEPTH)
@@ -1131,7 +1131,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
 
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_comma:
           arg++;
@@ -1142,7 +1142,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
                                  &context_iter));
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_eof:
           arglist_parser_done (argparser, arg);
@@ -1187,7 +1187,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
           drop_reference (token.comment);
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_dot:
         case token_type_doubledot:
@@ -1197,7 +1197,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         default:
           abort ();
index 5cc3c40871628188af473fc5abd47121e854d99a..2157c1ad094291124f331afe69e1e81c474c2114 100644 (file)
@@ -683,7 +683,7 @@ extract_parenthesized (message_list_ty *mlp,
                 flag_context_list_table,
                 token.string, strlen (token.string)));
           free (token.string);
-          continue;
+          break;
 
         case token_type_lparen:
           if (++nesting_depth > MAX_NESTING_DEPTH)
@@ -701,7 +701,7 @@ extract_parenthesized (message_list_ty *mlp,
           nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rparen:
           arglist_parser_done (argparser, arg);
@@ -717,7 +717,7 @@ extract_parenthesized (message_list_ty *mlp,
                                  &context_iter));
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_string_literal:
           {
@@ -743,7 +743,7 @@ extract_parenthesized (message_list_ty *mlp,
           }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_eof:
           arglist_parser_done (argparser, arg);
@@ -755,7 +755,7 @@ extract_parenthesized (message_list_ty *mlp,
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         default:
           abort ();
index f79f594177246569751bcc0bafde2e0639ab99ff..a921f019ea5f010c93a03f7e519caf65fde6e413 100644 (file)
@@ -1757,7 +1757,7 @@ extract_balanced (struct php_extractor *xp,
                 flag_context_list_table,
                 token.string, strlen (token.string)));
           free (token.string);
-          continue;
+          break;
 
         case token_type_lparen:
           if (++(xp->paren_nesting_depth) > MAX_NESTING_DEPTH)
@@ -1776,7 +1776,7 @@ extract_balanced (struct php_extractor *xp,
           xp->paren_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rparen:
           if (delim == token_type_rparen || delim == token_type_eof)
@@ -1787,7 +1787,7 @@ extract_balanced (struct php_extractor *xp,
             }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_comma:
           arg++;
@@ -1798,7 +1798,7 @@ extract_balanced (struct php_extractor *xp,
                                  &context_iter));
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_lbracket:
           if (++(xp->bracket_nesting_depth) > MAX_NESTING_DEPTH)
@@ -1817,7 +1817,7 @@ extract_balanced (struct php_extractor *xp,
           xp->bracket_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rbracket:
           if (delim == token_type_rbracket || delim == token_type_eof)
@@ -1828,7 +1828,7 @@ extract_balanced (struct php_extractor *xp,
             }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_string_literal:
           {
@@ -1854,7 +1854,7 @@ extract_balanced (struct php_extractor *xp,
           }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_dot:
         case token_type_operator1:
@@ -1862,7 +1862,7 @@ extract_balanced (struct php_extractor *xp,
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_eof:
           arglist_parser_done (argparser, arg);
index 6bcb984856e84bc7c7c92668b82dca868c5981a2..3ae7374ca9e0ac08ba8d554cdadfc40479a93151 100644 (file)
@@ -1764,7 +1764,7 @@ extract_balanced (message_list_ty *mlp,
                 flag_context_list_table,
                 token.string, strlen (token.string)));
           free (token.string);
-          continue;
+          break;
 
         case token_type_lparen:
           if (++paren_nesting_depth > MAX_NESTING_DEPTH)
@@ -1783,7 +1783,7 @@ extract_balanced (message_list_ty *mlp,
           paren_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rparen:
           if (delim == token_type_rparen || delim == token_type_eof)
@@ -1794,7 +1794,7 @@ extract_balanced (message_list_ty *mlp,
             }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_comma:
           arg++;
@@ -1805,7 +1805,7 @@ extract_balanced (message_list_ty *mlp,
                                  &context_iter));
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_lbracket:
           if (++bracket_nesting_depth > MAX_NESTING_DEPTH)
@@ -1824,7 +1824,7 @@ extract_balanced (message_list_ty *mlp,
           bracket_nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rbracket:
           if (delim == token_type_rbracket || delim == token_type_eof)
@@ -1835,7 +1835,7 @@ extract_balanced (message_list_ty *mlp,
             }
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_string:
         case token_type_498:
@@ -1862,7 +1862,7 @@ extract_balanced (message_list_ty *mlp,
           drop_reference (token.comment);
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_eof:
           arglist_parser_done (argparser, arg);
@@ -1876,7 +1876,7 @@ extract_balanced (message_list_ty *mlp,
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         default:
           abort ();
index 9228c900c126809bbe0fae8b2826e4ca39e5895f..c5ce48551ee1caf6d741092f50a5865baa9ec0e4 100644 (file)
@@ -1410,7 +1410,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
                 flag_context_list_table,
                 token.string, strlen (token.string)));
           free (token.string);
-          continue;
+          break;
 
         case token_type_lparen:
           if (++nesting_depth > MAX_NESTING_DEPTH)
@@ -1463,7 +1463,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
 
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_comma:
           arg++;
@@ -1472,7 +1472,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
           inner_region = new_sub_region (outer_region, curr_context);
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_question:
           /* In an expression A ? B : C, each of A, B, C is a distinct
@@ -1485,7 +1485,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
           inner_region = new_sub_region (outer_region, curr_context);
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_colon:
           /* In an expression A ? B : C, each of A, B, C is a distinct
@@ -1494,7 +1494,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
           inner_region = new_sub_region (outer_region, curr_context);
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_assign:
           /* In an expression A = B, A and B are distinct sub-regions.
@@ -1504,7 +1504,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
           inner_region = new_sub_region (outer_region, curr_context);
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_plus:
         case token_type_arithmetic_operator:
@@ -1523,7 +1523,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
           inner_region->inherit_from_parent_region = false;
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_semicolon:
           arglist_parser_done (argparser, arg);
@@ -1574,12 +1574,12 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
           drop_reference (token.comment);
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_return:
           next_context_iter = passthrough_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_character_constant:
         case token_type_lbrace:
@@ -1590,7 +1590,7 @@ extract_balanced (message_list_ty *mlp, token_type_ty delim,
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         default:
           abort ();
index fec7b19c58f9032db3d10e8ea9b68f1785d0361a..57985a7db5262fe04fd14f85d3ab80d93a8310b3 100644 (file)
@@ -669,7 +669,7 @@ extract_parenthesized (message_list_ty *mlp,
           nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_string_literal:
           if (state == 1)
@@ -719,7 +719,7 @@ extract_parenthesized (message_list_ty *mlp,
               state = 0;
             }
           next_context_iter = null_context_list_iterator;
-          continue;
+          break;
 
         case token_type_symbol:
           next_context_iter =
@@ -729,7 +729,7 @@ extract_parenthesized (message_list_ty *mlp,
                 token.string, strlen (token.string)));
           free_token (&token);
           state = 0;
-          continue;
+          break;
 
         case token_type_lparen:
           if (++nesting_depth > MAX_NESTING_DEPTH)
@@ -745,7 +745,7 @@ extract_parenthesized (message_list_ty *mlp,
           nesting_depth--;
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_rparen:
           unref_region (inner_region);
@@ -762,12 +762,12 @@ extract_parenthesized (message_list_ty *mlp,
                                flag_context_list_iterator_advance (
                                  &context_iter));
           next_context_iter = passthrough_context_list_iterator;
-          continue;
+          break;
 
         case token_type_other:
           next_context_iter = null_context_list_iterator;
           state = 0;
-          continue;
+          break;
 
         case token_type_eof:
           unref_region (inner_region);