comparison help2html/mhh6.c @ 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
1204 (PCB).token_number = (mhh6_token_type) ag_key_parm[ag_k]; 1204 (PCB).token_number = (mhh6_token_type) ag_key_parm[ag_k];
1205 return; 1205 return;
1206 } 1206 }
1207 } while (CONVERT_CASE(*(PCB).la_ptr++) == ag_ch); 1207 } while (CONVERT_CASE(*(PCB).la_ptr++) == ag_ch);
1208 } 1208 }
1209 /* FALLTHROUGH */
1209 case ag_no_match_key: 1210 case ag_no_match_key:
1210 ag_fail: 1211 ag_fail:
1211 (PCB).la_ptr = (PCB).pointer + ag_save; 1212 (PCB).la_ptr = (PCB).pointer + ag_save;
1212 return; 1213 return;
1213 case ag_cf_set_key: { 1214 case ag_cf_set_key: {
1220 break; 1221 break;
1221 } 1222 }
1222 case ag_set_key: 1223 case ag_set_key:
1223 ag_save = (int) ((PCB).la_ptr - (PCB).pointer); 1224 ag_save = (int) ((PCB).la_ptr - (PCB).pointer);
1224 (PCB).token_number = (mhh6_token_type) ag_key_parm[ag_k]; 1225 (PCB).token_number = (mhh6_token_type) ag_key_parm[ag_k];
1226 /* FALLTHROUGH */
1225 case ag_jmp_key: 1227 case ag_jmp_key:
1226 ag_k = ag_key_jmp[ag_k]; 1228 ag_k = ag_key_jmp[ag_k];
1227 break; 1229 break;
1228 case ag_accept_key: 1230 case ag_accept_key:
1229 (PCB).token_number = (mhh6_token_type) ag_key_parm[ag_k]; 1231 (PCB).token_number = (mhh6_token_type) ag_key_parm[ag_k];