comparison anagram/agcore/pgg24.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 (2022-05-31)
parents 13d2b8934445
children 5581ef01f993
comparison
equal deleted inserted replaced
7:57b2cc9b87f7 8:ec2b657edf13
1190 (PCB).token_number = (pgg_token_type) ag_key_parm[ag_k]; 1190 (PCB).token_number = (pgg_token_type) ag_key_parm[ag_k];
1191 return; 1191 return;
1192 } 1192 }
1193 } while (CONVERT_CASE(*(PCB).la_ptr++) == ag_ch); 1193 } while (CONVERT_CASE(*(PCB).la_ptr++) == ag_ch);
1194 } 1194 }
1195 /* FALLTHROUGH */
1195 case ag_no_match_key: 1196 case ag_no_match_key:
1196 ag_fail: 1197 ag_fail:
1197 (PCB).la_ptr = (PCB).pointer + ag_save; 1198 (PCB).la_ptr = (PCB).pointer + ag_save;
1198 return; 1199 return;
1199 case ag_cf_set_key: { 1200 case ag_cf_set_key: {
1206 break; 1207 break;
1207 } 1208 }
1208 case ag_set_key: 1209 case ag_set_key:
1209 ag_save = (int) ((PCB).la_ptr - (PCB).pointer); 1210 ag_save = (int) ((PCB).la_ptr - (PCB).pointer);
1210 (PCB).token_number = (pgg_token_type) ag_key_parm[ag_k]; 1211 (PCB).token_number = (pgg_token_type) ag_key_parm[ag_k];
1212 /* FALLTHROUGH */
1211 case ag_jmp_key: 1213 case ag_jmp_key:
1212 ag_k = ag_key_jmp[ag_k]; 1214 ag_k = ag_key_jmp[ag_k];
1213 break; 1215 break;
1214 case ag_accept_key: 1216 case ag_accept_key:
1215 (PCB).token_number = (pgg_token_type) ag_key_parm[ag_k]; 1217 (PCB).token_number = (pgg_token_type) ag_key_parm[ag_k];