Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/agcore/cf.cpp @ 8:ec2b657edf13
Add explicit lint-comment-style fallthrough annotations.
GCC now assumes that if you don't have these you're making a mistake,
which is annoying.
XXX: This changeset updates the AG output files only (by hand) and is
XXX: abusive - rebuilding them will erase the change. However, I need
XXX: to get things to build before I can try to get AG to issue the
XXX: annotations itself, so this seems like a reasonable expedient.
author | David A. Holland |
---|---|
date | Mon, 30 May 2022 23:51:43 -0400 |
parents | 13d2b8934445 |
children | 5581ef01f993 |
comparison
equal
deleted
inserted
replaced
7:57b2cc9b87f7 | 8:ec2b657edf13 |
---|---|
745 (PCB).token_number = (cf_token_type) ag_key_parm[ag_k]; | 745 (PCB).token_number = (cf_token_type) ag_key_parm[ag_k]; |
746 return; | 746 return; |
747 } | 747 } |
748 } while (CONVERT_CASE(*(PCB).la_ptr++) == ag_ch); | 748 } while (CONVERT_CASE(*(PCB).la_ptr++) == ag_ch); |
749 } | 749 } |
750 /* FALLTHROUGH */ | |
750 case ag_no_match_key: | 751 case ag_no_match_key: |
751 ag_fail: | 752 ag_fail: |
752 (PCB).la_ptr = (PCB).pointer + ag_save; | 753 (PCB).la_ptr = (PCB).pointer + ag_save; |
753 return; | 754 return; |
754 case ag_cf_set_key: { | 755 case ag_cf_set_key: { |
761 break; | 762 break; |
762 } | 763 } |
763 case ag_set_key: | 764 case ag_set_key: |
764 ag_save = (int) ((PCB).la_ptr - (PCB).pointer); | 765 ag_save = (int) ((PCB).la_ptr - (PCB).pointer); |
765 (PCB).token_number = (cf_token_type) ag_key_parm[ag_k]; | 766 (PCB).token_number = (cf_token_type) ag_key_parm[ag_k]; |
767 /* FALLTHROUGH */ | |
766 case ag_jmp_key: | 768 case ag_jmp_key: |
767 ag_k = ag_key_jmp[ag_k]; | 769 ag_k = ag_key_jmp[ag_k]; |
768 break; | 770 break; |
769 case ag_accept_key: | 771 case ag_accept_key: |
770 (PCB).token_number = (cf_token_type) ag_key_parm[ag_k]; | 772 (PCB).token_number = (cf_token_type) ag_key_parm[ag_k]; |