Home
last modified time | relevance | path

Searched refs:tn_type (Results 1 – 15 of 15) sorted by relevance

/netbsd-src/usr.bin/xlint/lint1/
H A Dtree.c493 lint_assert(is_integer(tn->tn_type->t_tspec)); in build_name_call()
499 return ic_mult(tn->tn_type, lc, rc); in build_name()
503 return ic_div(tn->tn_type, lc, rc); in build_name()
507 return ic_mod(tn->tn_type, lc, rc); in build_name()
511 return ic_plus(tn->tn_type, lc, rc); in build_name()
513 if (tn->u.ops.left->tn_type->t_tspec == PTR) in build_name()
514 return ic_any(tn->tn_type); in build_name()
517 return ic_minus(tn->tn_type, lc, rc); in build_name()
521 return ic_shl(tn->tn_type, lc, rc); in build_name()
525 return ic_shr(tn->tn_type, l in build_name()
[all...]
H A Dckctype.c103 if (on->tn_type->t_tspec == UCHAR) in check_ctype_arg()
105 if (on->tn_type->t_tspec == UCHAR) in check_ctype_arg()
110 warning(342, func, type_name(arg->tn_type)); in check_ctype_arg()
115 if (cn->tn_type->t_tspec != UCHAR && cn->tn_type->t_tspec != INT) { in check_ctype_arg()
117 warning(341, func, type_name(cn->tn_type)); in check_ctype_arg()
H A Dfunc.c420 if (!(tn->tn_type->t_is_enum || cs->c_switch_type->t_is_enum)) in check_case_label_enum()
422 if (tn->tn_type->t_is_enum && cs->c_switch_type->t_is_enum && in check_case_label_enum()
423 tn->tn_type->u.enumer == cs->c_switch_type->u.enumer) in check_case_label_enum()
429 type_name(tn->tn_type)); in check_case_label_enum()
483 if (!is_integer(tn->tn_type->t_tspec)) { in check_case_label()
500 tspec_t t = tn->tn_type->t_tspec; in check_case_label()
557 if (tn != NULL && !is_scalar(tn->tn_type->t_tspec)) { in check_controlling_expression()
569 error(333, tn->tn_type->t_is_enum ? type_name(tn->tn_type) in check_controlling_expression()
570 : tspec_name(tn->tn_type in check_controlling_expression()
[all...]
H A Dckbool.c125 tspec_t lt = ln->tn_type->t_tspec; in typeok_scalar_strict_bool()
129 rt = rn->tn_type->t_tspec; in typeok_scalar_strict_bool()
193 return tn->tn_type->t_tspec == BOOL in is_typeok_bool_compares_with_zero()
195 || (is_do_while && is_int_constant_zero(tn, tn->tn_type->t_tspec)) in is_typeok_bool_compares_with_zero()
196 || (tn->tn_sys && is_scalar(tn->tn_type->t_tspec)); in is_typeok_bool_compares_with_zero()
H A Dinit.c164 tspec_t rst = rn->tn_type->t_subt->t_tspec; in can_init_character_array()
207 ln->tn_type->t_bitfield && in check_bit_field_init()
254 ln->tn_type = lutp; in check_init_expr()
261 type_name(ln->tn_type), type_name(rn->tn_type)); in check_init_expr()
269 tspec_t lt = ln->tn_type->t_tspec; in check_init_expr()
270 tspec_t rt = rn->tn_type->t_tspec; in check_init_expr()
586 if (types_compatible(ltp, rn->tn_type, true, false, NULL)) in brace_level_goto()
833 ln->tn_type = expr_unqualified_type(ln->tn_type); in initialization_expr_using_op()
[all...]
H A Ddebug.c213 debug_printf(" '%s'", type_name(tn->tn_type)); in debug_node()
226 if (is_floating(tn->tn_type->t_tspec)) in debug_node()
228 else if (is_uinteger(tn->tn_type->t_tspec)) in debug_node()
231 else if (is_integer(tn->tn_type->t_tspec)) in debug_node()
235 lint_assert(tn->tn_type->t_tspec == BOOL); in debug_node()
H A Demit1.c343 tspec_t t = arg->tn_type->t_tspec; in outcall()
385 outtype(call->args[i]->tn_type); in outcall()
387 outtype(tn->tn_type); in outcall()
H A Dcgram.y222 op_name($$->tn_op), type_name($$->tn_type));
545 zero->tn_type = gettyp(INT);
554 nc->tn_type = gettyp(BOOL);
701 $$->tn_type = gettyp(VOID);
705 $$->tn_type = gettyp(VOID);
710 $$->tn_type = gettyp(VOID);
793 $$ = $2 == NULL ? NULL : build_sizeof($2->tn_type);
805 $$ = build_alignof($2->tn_type);
1168 $$ = $3 != NULL ? block_dup_type($3->tn_type) : gettyp(INT);
2150 && $1->u.call->func->tn_type
[all...]
H A Dlint1.h286 type_t *tn_type;
667 lint_assert(tn->tn_type->t_tspec == tn->u.value.v_tspec);
280 type_t *tn_type; global() member
H A Dmem1.c203 __func__, op_name(tn->tn_op), type_name(tn->tn_type)); in debug_memory_pool_item()
/netbsd-src/sys/fs/tmpfs/
H A Dtmpfs_subr.c116 if (node->tn_type == VREG) { in tmpfs_init_vnode()
123 vp->v_type = node->tn_type; in tmpfs_init_vnode()
230 node->tn_type = vap->va_type; in tmpfs_newvnode()
256 switch (node->tn_type) { in tmpfs_newvnode()
324 switch (node->tn_type) { in tmpfs_free_node()
529 if (node != TMPFS_NODE_WHITEOUT && node->tn_type == VDIR) { in tmpfs_dir_attach()
569 if (node->tn_type == VDIR) { in tmpfs_dir_detach()
643 return (node->tn_type != VDIR && node->tn_links > 1) ? NULL : de; in tmpfs_dir_cached()
858 dent.d_type = vtype2dt(de->td_node->tn_type); in tmpfs_dir_getdents()
H A Dtmpfs.h100 enum vtype tn_type; member
312 KASSERT((node)->tn_type == VDIR); \
H A Dtmpfs_vnops.c203 KASSERT(dnode->tn_type == VDIR); in tmpfs_lookup()
260 if (!lastcn && tnode->tn_type != VDIR && tnode->tn_type != VLNK) { in tmpfs_lookup()
H A Dtmpfs_vfsops.c269 if (node->tn_type != VDIR) { in tmpfs_unmount()
/netbsd-src/usr.bin/fstat/
H A Dtmpfs.c68 switch (tn.tn_type) { in tmpfs_filestat()