Changeset View
Changeset View
Standalone View
Standalone View
contrib/byacc/closure.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | set_first_derives(void) | ||||
for (j = start_symbol; j < nsyms; k++, j++) | for (j = start_symbol; j < nsyms; k++, j++) | ||||
{ | { | ||||
if (k >= BITS_PER_WORD) | if (k >= BITS_PER_WORD) | ||||
{ | { | ||||
cword = *vrow++; | cword = *vrow++; | ||||
k = 0; | k = 0; | ||||
} | } | ||||
if (cword & (unsigned)(1 << k)) | if (cword & (1u << k)) | ||||
{ | { | ||||
rp = derives[j]; | rp = derives[j]; | ||||
while ((rule = *rp++) >= 0) | while ((rule = *rp++) >= 0) | ||||
{ | { | ||||
SETBIT(rrow, rule); | SETBIT(rrow, rule); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |