emacs-diffs
[Top][All Lists]
Advanced

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

master e021c2d: Port etags FALLTHROUGH to C2X


From: Paul Eggert
Subject: master e021c2d: Port etags FALLTHROUGH to C2X
Date: Sat, 23 May 2020 15:55:36 -0400 (EDT)

branch: master
commit e021c2dc2279e0fd3a5331f9ea661e4d39c2e840
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Port etags FALLTHROUGH to C2X
    
    Problem reported by Ashish SHUKLA in:
    https://lists.gnu.org/r/emacs-devel/2020-05/msg03013.html
    * lib-src/etags.c (C_entries): Move label so that FALLTHROUGH
    precedes a case label, as draft C2X specifies.
---
 lib-src/etags.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib-src/etags.c b/lib-src/etags.c
index eee2c59..4672e34 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -4197,9 +4197,9 @@ C_entries (int c_ext, FILE *inf)
              break;
            }
          FALLTHROUGH;
-       resetfvdef:
        case '#': case '~': case '&': case '%': case '/':
        case '|': case '^': case '!': case '.': case '?':
+       resetfvdef:
          if (definedef != dnone)
            break;
          /* These surely cannot follow a function tag in C. */



reply via email to

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