windows-nt/Source/XPSP1/NT/com/rpc/tools/yacc/yosmry.c

29 lines
538 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
// 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);
}