Mercurial > ~dholland > hg > ag > index.cgi
comparison helpgen/readhelp.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 |
---|---|
361 (PCB).token_number = (readhelp_token_type) ag_key_parm[ag_k]; | 361 (PCB).token_number = (readhelp_token_type) ag_key_parm[ag_k]; |
362 return; | 362 return; |
363 } | 363 } |
364 } while (CONVERT_CASE(*(PCB).la_ptr++) == ag_ch); | 364 } while (CONVERT_CASE(*(PCB).la_ptr++) == ag_ch); |
365 } | 365 } |
366 /* FALLTHROUGH */ | |
366 case ag_no_match_key: | 367 case ag_no_match_key: |
367 ag_fail: | 368 ag_fail: |
368 (PCB).la_ptr = (PCB).pointer + ag_save; | 369 (PCB).la_ptr = (PCB).pointer + ag_save; |
369 return; | 370 return; |
370 case ag_cf_set_key: { | 371 case ag_cf_set_key: { |
377 break; | 378 break; |
378 } | 379 } |
379 case ag_set_key: | 380 case ag_set_key: |
380 ag_save = (int) ((PCB).la_ptr - (PCB).pointer); | 381 ag_save = (int) ((PCB).la_ptr - (PCB).pointer); |
381 (PCB).token_number = (readhelp_token_type) ag_key_parm[ag_k]; | 382 (PCB).token_number = (readhelp_token_type) ag_key_parm[ag_k]; |
383 /* FALLTHROUGH */ | |
382 case ag_jmp_key: | 384 case ag_jmp_key: |
383 ag_k = ag_key_jmp[ag_k]; | 385 ag_k = ag_key_jmp[ag_k]; |
384 break; | 386 break; |
385 case ag_accept_key: | 387 case ag_accept_key: |
386 (PCB).token_number = (readhelp_token_type) ag_key_parm[ag_k]; | 388 (PCB).token_number = (readhelp_token_type) ag_key_parm[ag_k]; |