// Copyright (c) 1993-1999 Microsoft Corporation #include "y4.h" /* * Write summary. */ void osummary( void ) { SSIZE_T i, *p; if(foutput == NULL) return; i=0; for(p=maxa; p>=a; --p) { if(*p == 0) ++i; } fprintf(foutput,"Optimizer space used: input %d/%d, output %d/%d\n", pmem-mem0+1, MEMSIZE, maxa-a+1, ACTSIZE); fprintf(foutput, "%d table entries, %d zero\n", (maxa-a)+1, i); fprintf(foutput, "maximum spread: %d, maximum offset: %d\n",maxspr, maxoff); fclose(foutput); }