Lines Matching defs:tp
544 type_t *tp;
559 tp = xalloc(sizeof (type_t));
561 tidx = storetyp(tp, cp, tlen, h);
567 tp->t_const = 1;
569 tp->t_volatile = 1;
583 tp->t_tspec = s == 's' ? SCHAR : (s == 'u' ? UCHAR : CHAR);
586 tp->t_tspec = s == 'u' ? USHORT : SHORT;
589 tp->t_tspec = s == 'u' ? UINT : INT;
592 tp->t_tspec = s == 'u' ? ULONG : LONG;
595 tp->t_tspec = s == 'u' ? UQUAD : QUAD;
598 tp->t_tspec = s == 's' ? FLOAT : (s == 'l' ? LDOUBLE : DOUBLE);
601 tp->t_tspec = VOID;
604 tp->t_tspec = PTR;
607 tp->t_tspec = ARRAY;
612 tp->t_tspec = FUNC;
615 tp->t_tspec = s == 'e' ? ENUM : (s == 's' ? STRUCT : UNION);
619 switch (tp->t_tspec) {
621 tp->t_dim = (int)strtol(cp, &eptr, 10);
624 tp->t_subt = TP(sidx);
628 tp->t_subt = TP(sidx);
634 tp->t_proto = 1;
637 if ((tp->t_args = calloc((size_t)(narg + 1),
642 tp->t_vararg = 1;
646 tp->t_args[i] = TP(sidx);
651 tp->t_subt = TP(sidx);
654 tp->t_tspec = INT;
655 tp->t_isenum = 1;
661 tp->t_istag = 1;
662 tp->t_tag = hsearch(inpname(cp, &cp), 1);
665 tp->t_istynam = 1;
666 tp->t_tynam = hsearch(inpname(cp, &cp), 1);
669 tp->t_isuniqpos = 1;
670 tp->t_uniqpos.p_line = strtol(cp, &eptr, 10);
674 tp->t_uniqpos.p_file =
678 tp->t_uniqpos.p_uniq = strtol(cp, &eptr, 10);
934 storetyp(type_t *tp, const char *cp, size_t len, int h)
951 tlst[tidx] = tp;