texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Indent goto labels


From: Gavin D. Smith
Subject: branch master updated: Indent goto labels
Date: Sat, 21 Jan 2023 16:43:35 -0500

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 0b3254996f Indent goto labels
0b3254996f is described below

commit 0b3254996f2f73dcfd52313c8330c875c9771eca
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Jan 21 21:43:25 2023 +0000

    Indent goto labels
    
    * tp/Texinfo/XS/parsetexi/close.c,
    * tp/Texinfo/XS/parsetexi/def.c,
    * tp/Texinfo/XS/parsetexi/end_line.c,
    * tp/Texinfo/XS/parsetexi/parser.c,
    * tp/Texinfo/XS/parsetexi/separator.c:
    Indent goto labels so that they do not appear as the function
    in git diff.
---
 ChangeLog                           | 13 +++++++++++++
 tp/Texinfo/XS/parsetexi/close.c     |  2 +-
 tp/Texinfo/XS/parsetexi/def.c       |  2 +-
 tp/Texinfo/XS/parsetexi/end_line.c  | 16 ++++++++--------
 tp/Texinfo/XS/parsetexi/parser.c    |  6 +++---
 tp/Texinfo/XS/parsetexi/separator.c |  2 +-
 6 files changed, 27 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2b16489992..08f0986d09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2023-01-21  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Indent goto labels
+
+       * tp/Texinfo/XS/parsetexi/close.c,
+       * tp/Texinfo/XS/parsetexi/def.c,
+       * tp/Texinfo/XS/parsetexi/end_line.c,
+       * tp/Texinfo/XS/parsetexi/parser.c,
+       * tp/Texinfo/XS/parsetexi/separator.c:
+       Indent goto labels so that they do not appear as the function
+       in git diff.
+
+
 2023-01-21  Gavin Smith  <gavinsmith0123@gmail.com>
 
        Nesting context for XS parser
diff --git a/tp/Texinfo/XS/parsetexi/close.c b/tp/Texinfo/XS/parsetexi/close.c
index 3dff0e03e5..ad28b23fd4 100644
--- a/tp/Texinfo/XS/parsetexi/close.c
+++ b/tp/Texinfo/XS/parsetexi/close.c
@@ -36,7 +36,7 @@ close_brace_command (ELEMENT *current,
     goto yes;
   if (0)
     {
-yes:
+  yes:
       if (closed_block_command)
         command_error (current,
                         "@end %s seen before @%s closing brace",
diff --git a/tp/Texinfo/XS/parsetexi/def.c b/tp/Texinfo/XS/parsetexi/def.c
index 4825ea2691..5fda01cff3 100644
--- a/tp/Texinfo/XS/parsetexi/def.c
+++ b/tp/Texinfo/XS/parsetexi/def.c
@@ -260,7 +260,7 @@ parse_def (enum command_id command, ELEMENT *current)
             goto found;
         }
       fatal ("no alias for CF_def_alias command");
-found:
+    found:
       /* Prepended content is inserted into contents, so
          @defun is converted into @deffn Function */
 
diff --git a/tp/Texinfo/XS/parsetexi/end_line.c 
b/tp/Texinfo/XS/parsetexi/end_line.c
index aef580b4ca..d3c4bcd504 100644
--- a/tp/Texinfo/XS/parsetexi/end_line.c
+++ b/tp/Texinfo/XS/parsetexi/end_line.c
@@ -189,10 +189,10 @@ parse_special_misc_command (char *line, enum command_id 
cmd, int *has_comment)
                    args->contents.list[1]->text.text);
 
       break;
-set_no_name:
+    set_no_name:
       line_error ("@set requires a name");
       break;
-set_invalid:
+    set_invalid:
       line_error ("bad name for @set");
       break;
       }
@@ -216,10 +216,10 @@ set_invalid:
       free (flag);
       
       break;
-clear_no_name:
+    clear_no_name:
       line_error ("@clear requires a name");
       break;
-clear_invalid:
+    clear_invalid:
       free (flag);
       line_error ("bad name for @clear");
       break;
@@ -239,10 +239,10 @@ clear_invalid:
       debug ("UNMACRO %s", value);
       free (value);
       break;
-unmacro_noname:
+    unmacro_noname:
       line_error ("@unmacro requires a name");
       break;
-unmacro_badname:
+    unmacro_badname:
       line_error ("bad name for @unmacro");
       break;
     case CM_clickstyle:
@@ -261,7 +261,7 @@ unmacro_badname:
       remaining = q;
       /* FIXME: check comment */
       break;
-clickstyle_invalid:
+    clickstyle_invalid:
       line_error ("@clickstyle should only accept an @-command as argument, "
                    "not `%s'", line);
       free (value);
@@ -751,7 +751,7 @@ parse_line_command_args (ELEMENT *line_command)
 
         if (0)
           {
-kdbinputstyle_invalid:
+        kdbinputstyle_invalid:
           line_error ("@kbdinputstyle arg must be "
                        "`code'/`example'/`distinct', not `%s'", line);
           }
diff --git a/tp/Texinfo/XS/parsetexi/parser.c b/tp/Texinfo/XS/parsetexi/parser.c
index ef26491e9f..067f5eeefa 100644
--- a/tp/Texinfo/XS/parsetexi/parser.c
+++ b/tp/Texinfo/XS/parsetexi/parser.c
@@ -1368,7 +1368,7 @@ process_remaining_on_line (ELEMENT **current_inout, char 
**line_inout)
                 }
               else if (*p && p[strspn (p, whitespace_chars)])
                 {
-superfluous_arg:
+          superfluous_arg:
                   line_warn ("superfluous argument to @end %s: %s",
                              command_name(end_cmd), line);
                 }
@@ -1823,7 +1823,7 @@ superfluous_arg:
           if (1) /* @value syntax is valid */
             {
               char *value;
-value_valid:
+          value_valid:
               if (cmd == CM_value)
                 {
                   value = fetch_value (flag);
@@ -1880,7 +1880,7 @@ value_valid:
             }
           else
             {
-value_invalid:
+          value_invalid:
               line_error ("bad syntax for @%s", command_name(cmd));
               retval = STILL_MORE_TO_PROCESS;
               goto funexit;
diff --git a/tp/Texinfo/XS/parsetexi/separator.c 
b/tp/Texinfo/XS/parsetexi/separator.c
index 0aa3385556..4a7694f05e 100644
--- a/tp/Texinfo/XS/parsetexi/separator.c
+++ b/tp/Texinfo/XS/parsetexi/separator.c
@@ -661,7 +661,7 @@ handle_comma (ELEMENT *current, char **line_inout)
                     }
                   line++;
                 }
-inlinefmtifelse_done:
+            inlinefmtifelse_done:
               /* Check if the second argument is missing. */
               if (brace_count == 0)
                 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]