Lines Matching refs:tn_type

256 	n->tn_type = tp;
275 n->tn_type = gettyp(t);
314 n->tn_type = sym->s_type;
343 n->tn_type = tincref(gettyp(strg->st_tspec), ARRAY);
344 n->tn_type->t_dim = len + 1;
398 t = (tp = tn->tn_type)->t_tspec;
500 if (tflag && tn->tn_type->t_tspec == PTR) {
620 ntn = mktnode(STAR, ln->tn_type->t_subt, ln, NULL);
649 ntn = mktnode(op, rn->tn_type, ln, rn);
652 rtp = mp->m_logop ? gettyp(INT) : ln->tn_type;
685 } else if (isftyp(ntn->tn_type->t_tspec)) {
714 if (tn->tn_type->t_tspec == ARRAY) {
720 tn = mktnode(AMPER, tincref(tn->tn_type->t_subt, PTR),
729 if (tn->tn_type->t_tspec == FUNC)
734 tp = tduptyp(tn->tn_type);
760 if ((lt = (ltp = ln->tn_type)->t_tspec) == PTR)
763 if ((rt = (rtp = rn->tn_type)->t_tspec) == PTR)
794 olt = tn->tn_type->t_tspec;
797 ort = tn->tn_type->t_tspec;
1168 lt = (ltp = ln->tn_type)->t_subt->t_tspec;
1169 rt = (rtp = rn->tn_type)->t_subt->t_tspec;
1207 if ((lt = (ltp = ln->tn_type)->t_tspec) == PTR)
1209 if ((rt = (rtp = rn->tn_type)->t_tspec) == PTR)
1347 if (!(ln->tn_type->t_isenum ||
1348 (mp->m_binary && rn->tn_type->t_isenum))) {
1357 ((ln->tn_type->t_isenum && rn->tn_type->t_tspec == PTR) ||
1358 (rn->tn_type->t_isenum && ln->tn_type->t_tspec == PTR))) {
1377 if (ln->tn_type->t_enum != rn->tn_type->t_enum) {
1423 if (!rn->tn_type->t_isenum && rn->tn_op == CON &&
1424 isityp(rn->tn_type->t_tspec) && rn->tn_val->v_quad == 0) {
1428 warning(277, tyname(ln->tn_type), tyname(rn->tn_type));
1432 warning(278, tyname(ln->tn_type), tyname(rn->tn_type), arg);
1436 warning(279, tyname(ln->tn_type), tyname(rn->tn_type));
1440 warning(242, tyname(ln->tn_type), tyname(rn->tn_type),
1458 ntn->tn_type = type;
1463 if (ln->tn_type->t_tspec == PTR) {
1464 t = ln->tn_type->t_subt->t_tspec;
1489 t = tn->tn_type->t_tspec;
1500 if (tn->tn_type->t_isfield) {
1501 len = tn->tn_type->t_flen;
1540 if (t != tn->tn_type->t_tspec) {
1541 ntp = tduptyp(tn->tn_type);
1567 lt = (*lnp)->tn_type->t_tspec;
1568 rt = (*rnp)->tn_type->t_tspec;
1616 ntp = tduptyp((*lnp)->tn_type);
1621 ntp = tduptyp((*rnp)->tn_type);
1642 if ((ot = tn->tn_type->t_tspec) == PTR)
1643 ost = tn->tn_type->t_subt->t_tspec;
1660 ntn->tn_type = tp;
1667 cvtcon(op, arg, ntn->tn_type, ntn->tn_val, tn->tn_val);
1699 ot = ptn->tn_type->t_tspec;
1761 warning(298, tyname(tn->tn_type), arg);
1763 warning(132, tyname(tn->tn_type));
1812 ot = tn->tn_type->t_subt->t_tspec;
1831 if (getbound(tp->t_subt) > getbound(tn->tn_type->t_subt)) {
1837 tp->t_subt->t_str != tn->tn_type->t_subt->t_str) ||
2258 } else if (ln->tn_type->t_tspec != PTR) {
2259 if (!tflag || !isityp(ln->tn_type->t_tspec))
2270 ntn = mktnode(PLUS, tincref(rn->tn_type, PTR), ln, ctn);
2274 if (rn->tn_type->t_isfield) {
2275 ntn = mktnode(FSEL, ntn->tn_type->t_subt, ntn, NULL);
2277 ntn = mktnode(STAR, ntn->tn_type->t_subt, ntn, NULL);
2297 if (ln->tn_type->t_tspec == PTR) {
2298 cn = plength(ln->tn_type);
2302 ntn = mktnode(op, ln->tn_type, ln, cn);
2316 if (!noign && ((t = tn->tn_type->t_tspec) == ARRAY || t == FUNC)) {
2325 tn->tn_left->tn_type->t_tspec == PTR &&
2326 tn->tn_left->tn_type->t_subt == tn->tn_type) {
2330 ntn = mktnode(AMPER, tincref(tn->tn_type, PTR), tn, NULL);
2345 if (rn->tn_type->t_tspec == PTR && isityp(ln->tn_type->t_tspec)) {
2351 if (ln->tn_type->t_tspec == PTR && rn->tn_type->t_tspec != PTR) {
2353 if (!isityp(rn->tn_type->t_tspec))
2356 ctn = plength(ln->tn_type);
2357 if (rn->tn_type->t_tspec != ctn->tn_type->t_tspec)
2358 rn = convert(NOOP, 0, ctn->tn_type, rn);
2359 rn = mktnode(MULT, rn->tn_type, rn, ctn);
2362 ntn = mktnode(op, ln->tn_type, ln, rn);
2364 } else if (rn->tn_type->t_tspec == PTR) {
2366 if (ln->tn_type->t_tspec != PTR || op != MINUS)
2376 ctn = plength(ln->tn_type);
2382 ntn = mktnode(op, ln->tn_type, ln, rn);
2397 if ((t = rn->tn_type->t_tspec) != INT && t != UINT)
2399 ntn = mktnode(op, ln->tn_type, ln, rn);
2413 lt = ln->tn_type->t_tspec;
2414 rt = rn->tn_type->t_tspec;
2426 rtp = ln->tn_type;
2433 if (ln->tn_type->t_str != rn->tn_type->t_str)
2435 if (incompl(ln->tn_type)) {
2440 rtp = ln->tn_type;
2446 rtp = ln->tn_type;
2452 rtp = rn->tn_type;
2453 } else if (lt == PTR && ln->tn_type->t_subt->t_tspec == VOID) {
2456 rtp = ln->tn_type;
2457 mrgqual(&rtp, ln->tn_type, rn->tn_type);
2458 } else if (rt == PTR && rn->tn_type->t_subt->t_tspec == VOID) {
2461 rtp = rn->tn_type;
2462 mrgqual(&rtp, ln->tn_type, rn->tn_type);
2472 rtp = ln->tn_type;
2473 mrgqual(&rtp, ln->tn_type, rn->tn_type);
2493 lt = ln->tn_type->t_tspec;
2494 rt = rn->tn_type->t_tspec;
2499 ctn = plength(ln->tn_type);
2500 if (rn->tn_type->t_tspec != ctn->tn_type->t_tspec)
2501 rn = convert(NOOP, 0, ctn->tn_type, rn);
2502 rn = mktnode(MULT, rn->tn_type, rn, ctn);
2508 if (rt != lt || ln->tn_type->t_str != rn->tn_type->t_str)
2510 if (incompl(ln->tn_type)) {
2530 (ln->tn_type->t_isfield && rn->tn_op == CON)) {
2531 rn = convert(op, 0, ln->tn_type, rn);
2537 ntn = mktnode(op, ln->tn_type, ln, rn);
2634 v->v_tspec = t = tn->tn_type->t_tspec;
2758 cn = getcnode(tn->tn_type, v);
2774 v->v_tspec = tn->tn_type->t_tspec;
2775 if (tn->tn_type->t_tspec != INT)
2778 if (isftyp(tn->tn_left->tn_type->t_tspec)) {
2785 if (isftyp(tn->tn_right->tn_type->t_tspec)) {
2809 return (getcnode(tn->tn_type, v));
2824 v->v_tspec = t = tn->tn_type->t_tspec;
2829 if (t != tn->tn_left->tn_type->t_tspec)
2831 if (modtab[tn->tn_op].m_binary && t != tn->tn_right->tn_type->t_tspec)
2909 return (getcnode(tn->tn_type, v));
2993 ot = tn->tn_type->t_tspec;
3019 if (!tp->t_subt->t_const && tn->tn_type->t_subt->t_const) {
3054 ntn = mktnode(PUSH, arg->tn_type, arg, args);
3072 if (func->tn_op == NAME && func->tn_type->t_tspec == FUNC) {
3084 if (func->tn_type->t_tspec != PTR ||
3085 func->tn_type->t_subt->t_tspec != FUNC) {
3091 args = chkfarg(func->tn_type->t_subt, args);
3093 ntn = mktnode(fcop, func->tn_type->t_subt->t_subt, func, args);
3137 if ((at = arg->tn_left->tn_type->t_tspec) == VOID) {
3142 incompl(arg->tn_left->tn_type)) {
3146 } else if (isityp(at) && arg->tn_left->tn_type->t_isenum &&
3147 incompl(arg->tn_left->tn_type)) {
3160 arg->tn_type = arg->tn_left->tn_type;
3185 ln->tn_type = tduptyp(tp);
3186 ln->tn_type->t_const = 0;
3189 if (!eqtype(tp, tn->tn_type, 1, 0, (warn = 0, &warn)) || warn)
3222 v->v_tspec = tn->tn_type->t_tspec;
3225 if (tn->tn_type->t_tspec != tn->tn_val->v_tspec)
3303 if (tn->tn_op == CVT && tn->tn_type->t_tspec == VOID) {
3356 } else if (tn->tn_op == CON && isftyp(tn->tn_type->t_tspec)) {
3358 } else if (tn->tn_op == CON && isityp(tn->tn_type->t_tspec)) {
3363 if (tn->tn_type->t_tspec != PTR)
3382 (void)printf("o=%d, l=%d ", tn->tn_type->t_foffs,
3383 tn->tn_type->t_flen);
3385 (void)printf("%s\n", ttos(tn->tn_type));
3542 if (op == COLON && tn->tn_type->t_tspec == VOID)
3544 nrvdisc = op == CVT && tn->tn_type->t_tspec == VOID;
3596 if (ln->tn_left->tn_type->t_tspec != ARRAY)
3603 if (incompl(ln->tn_left->tn_type) && rn->tn_val->v_quad >= 0)
3607 if ((elsz = length(ln->tn_type->t_subt, NULL)) == 0)
3612 if (isutyp(rn->tn_type->t_tspec)) {
3618 dim = ln->tn_left->tn_type->t_dim + (amper ? 1 : 0);
3620 if (!isutyp(rn->tn_type->t_tspec) && con < 0) {
3638 lt = ln->tn_type->t_tspec;
3639 rt = rn->tn_type->t_tspec;
3666 warning(162, tyname(ln->tn_type), "negative constant",
3670 warning(162, tyname(ln->tn_type), "0", mp->m_name);
3678 warning(162, "negative constant", tyname(rn->tn_type),
3682 warning(162, "0", tyname(rn->tn_type), mp->m_name);
3744 t = tn->tn_type->t_tspec;
3745 ot = tn->tn_left->tn_type->t_tspec;