Lines Matching defs:lp
273 Language_t* lp;
454 if (!(lp = (Language_t*)lookup(&state.language, b)))
469 ll->language = lp;
491 if (!(lp = newof(0, Language_t, 1, s - b + 1)))
496 b = (char*)(lp + 1);
497 lp->link.code = copy(&b, arg[0]);
498 lp->name = copy(&b, arg[1]);
499 lp->alternates = copy(&b, arg[2]);
501 lp->charset = 0;
502 else if (!(lp->charset = (Charset_t*)lookup(&state.charset, arg[3])))
507 lp->attributes = 0;
511 fprintf(lf, "\nconst Lc_attribute_t attribute_%s[] =\n{\n", lp->link.code);
539 if (!lp->attributes)
540 lp->attributes = al;
546 macro(lf, "SUBLANG", lp->name, b);
553 if (lp != (Language_t*)enter(&state.language, (Link_t*)lp))
555 fprintf(stderr, "%s: %d: %s: duplicate language\n", command, line, lp->link.code);
725 for (lp = (Language_t*)state.language.root; lp; lp = (Language_t*)lp->link.next)
727 fprintf(lf, "{\"%s\",\"%s\",", lp->link.code, lp->name);
728 if (lp->alternates)
729 fprintf(lf, "\"%s\",", lp->alternates);
732 fprintf(lf, "&lc_charsets[%d],0,", lp->charset ? lp->charset->link.index : 0);
733 macro(lf, "LANG", lp->name, (char*)0);
734 for (i = 0, al = lp->attributes; al; al = al->next, i++)
735 fprintf(lf, "&attribute_%s[%d],", lp->link.code, al->attribute->link.index);