mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Backed out changeset 8f614217727a (bug 1448771) android bustages at /builds/worker/workspace/build/src/intl/hyphenation/hyphen/hyphen.c:444 on a CLOSED TREE
This commit is contained in:
parent
39d9b048b9
commit
ba23141cb5
@ -438,25 +438,11 @@ for (k = 0; k < 2; k++) {
|
||||
}
|
||||
|
||||
if (k == 0 || nextlevel) {
|
||||
while (fgets(buf, sizeof(buf), f) != NULL) {
|
||||
|
||||
/* discard lines that don't fit in buffer */
|
||||
if (!feof(f) && strchr(buf, '\n') == NULL) {
|
||||
int c;
|
||||
while ((c = fgetc(f)) != '\n' && c != EOF);
|
||||
/* issue warning if not a comment */
|
||||
if (buf[0] != '%') {
|
||||
fprintf(stderr, "Warning: skipping too long pattern (more than %lu chars)\n", sizeof(buf));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
while (fgets (buf, sizeof(buf), f) != NULL) {
|
||||
if (strncmp(buf, "NEXTLEVEL", 9) == 0) {
|
||||
nextlevel = 1;
|
||||
break;
|
||||
} else if (buf[0] != '%') {
|
||||
hnj_hyphen_load_line(buf, dict[k], hashtab);
|
||||
}
|
||||
nextlevel = 1;
|
||||
break;
|
||||
} else if (buf[0] != '%') hnj_hyphen_load_line(buf, dict[k], hashtab);
|
||||
}
|
||||
} else if (k == 1) {
|
||||
/* default first level: hyphen and ASCII apostrophe */
|
||||
|
Loading…
Reference in New Issue
Block a user