[BACK]Return to output.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / yacc

Diff for /src/usr.bin/yacc/output.c between version 1.15 and 1.16

version 1.15, 2009/10/27 23:59:50 version 1.16, 2012/03/03 19:15:00
Line 425 
Line 425 
   
     if (m == n) return (0);      if (m == n) return (0);
   
     for (i = 0; i < nstates; i++)      memset(state_count, 0, nstates * sizeof(short));
         state_count[i] = 0;  
   
     for (i = m; i < n; i++)      for (i = m; i < n; i++)
         state_count[to_state[i]]++;          state_count[to_state[i]]++;
Line 1002 
Line 1001 
   
     /* Note that it is  not necessary to initialize the element         */      /* Note that it is  not necessary to initialize the element         */
     /* symnam[max].                                                     */      /* symnam[max].                                                     */
     for (i = 0; i < max; ++i)      memset(symnam, 0, max * sizeof(char *));
         symnam[i] = 0;  
     for (i = ntokens - 1; i >= 2; --i)      for (i = ntokens - 1; i >= 2; --i)
         symnam[symbol_value[i]] = symbol_name[i];          symnam[symbol_value[i]] = symbol_name[i];
     symnam[0] = "end-of-file";      symnam[0] = "end-of-file";

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16