version 1.15, 2009/10/27 23:59:50 |
version 1.16, 2012/03/03 19:15:00 |
|
|
|
|
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]]++; |
|
|
|
|
/* 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"; |