Mercurial > ~dholland > hg > ag > index.cgi
comparison cgbigen/cgbigen.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 |
---|---|
426 if ((ag_ch = *sp++) == 0) { | 426 if ((ag_ch = *sp++) == 0) { |
427 (PCB).token_number = (cgbigen_token_type) ag_key_parm[ag_k]; | 427 (PCB).token_number = (cgbigen_token_type) ag_key_parm[ag_k]; |
428 return; | 428 return; |
429 } | 429 } |
430 } while (ag_look_ahead() == ag_ch); | 430 } while (ag_look_ahead() == ag_ch); |
431 /* FALLTHROUGH */ | |
431 case ag_no_match_key: | 432 case ag_no_match_key: |
432 ag_fail: | 433 ag_fail: |
433 (PCB).rx = save_index; | 434 (PCB).rx = save_index; |
434 return; | 435 return; |
435 case ag_cf_set_key: { | 436 case ag_cf_set_key: { |
442 break; | 443 break; |
443 } | 444 } |
444 case ag_set_key: | 445 case ag_set_key: |
445 save_index = (PCB).rx; | 446 save_index = (PCB).rx; |
446 (PCB).token_number = (cgbigen_token_type) ag_key_parm[ag_k]; | 447 (PCB).token_number = (cgbigen_token_type) ag_key_parm[ag_k]; |
448 /* FALLTHROUGH */ | |
447 case ag_jmp_key: | 449 case ag_jmp_key: |
448 ag_k = ag_key_jmp[ag_k]; | 450 ag_k = ag_key_jmp[ag_k]; |
449 ag_ch = ag_look_ahead(); | 451 ag_ch = ag_look_ahead(); |
450 break; | 452 break; |
451 case ag_accept_key: | 453 case ag_accept_key: |