view anagram/agcore/q1glbl.cpp @ 6:607e3be6bad8

Adjust to the moving target called the C++ standard. Apparently nowadays it's not allowed to define an explicit copy constructor but not an assignment operator. Consequently, defining the explicit copy constructor in terms of the implicit/automatic assignment operator for general convenience no longer works. Add assignment operators. Caution: not tested with the IBM compiler, but there's no particular reason it shouldn't work.
author David A. Holland
date Mon, 30 May 2022 23:46:22 -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 */