Mercurial > ~dholland > hg > ag > index.cgi
view anagram/agcore/q1glbl.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 |
line wrap: on
line source
/* * AnaGram, A System for Syntax Directed Programming * Copyright 1993-2002 Parsifal Software. All Rights Reserved. * See the file COPYING for license and usage terms. * * q1glbl.cpp */ #include <stddef.h> #include "port.h" #include "q1glbl.h" item_map *map_item = NULL; state_number_map *map_state_number = NULL; completed_form_map *map_completed_form = NULL; tuple_dict *completed_form_dict = NULL; tsd *bnf_table = NULL; /* {tkn#,form#} backus normal form */ tsd *ibnf_table = NULL; /* {form#, token#} inverse bnf */ int parse_table_length; int *ibnfs = NULL; int *ibnfb = NULL; int *ibnfn = NULL; int *tut = NULL; int *token_perm = NULL; /* token sort permutation base */ unsigned perm_index; /* length of sorted token list */ tsd *srt = NULL; /* summary return table for current is */ tsd *sgt = NULL; /* summary goto table for current is */ unsigned *items = NULL; /* {itemset#, item#, index} itemset table */ int lits; /* length of item set */ int ncssa; list_dict *isht_dict = NULL; unsigned kits; /* itemset under investigation */ unsigned nits; /* number of item sets */ unsigned nforms; /* number of forms */ unsigned nforms_base; unsigned nitems; /* number of items */ unsigned ntkns; /* number of tokens */ unsigned frs; /* forms to reduce */ unsigned kfrs; /* count of forms to reduce */