lib/libcurses/ins_wstr.c
138
int width, len, lx, sx, x, y, tx, ty, cw, pcw, newx, tn, w;
lib/libcurses/ins_wstr.c
163
tn = n;
lib/libcurses/ins_wstr.c
169
if (!tn)
lib/libcurses/ins_wstr.c
212
tn--, width += w;
libexec/mail.local/mail.local.c
137
char *tn, line[2048];
libexec/mail.local/mail.local.c
139
tn = strdup(_PATH_LOCTMP);
libexec/mail.local/mail.local.c
140
if (!tn)
libexec/mail.local/mail.local.c
142
if ((fd = mkstemp(tn)) == -1 || !(fp = fdopen(fd, "w+")))
libexec/mail.local/mail.local.c
144
(void)unlink(tn);
libexec/mail.local/mail.local.c
145
free(tn);
sbin/iscsid/iscsid_targets.c
317
target_t *target, *tn;
sbin/iscsid/iscsid_targets.c
339
tn = find_target_symname(par->list_kind, par->sym_name);
sbin/iscsid/iscsid_targets.c
340
if (tn && tn != target) {
sbin/routed/input.c
156
struct tgate_net *tn;
sbin/routed/input.c
685
if (tg && (tn = tg->tgate_nets)->mask != 0) {
sbin/routed/input.c
686
for (i = 0; i < MAX_TGATE_NETS; i++, tn++) {
sbin/routed/input.c
687
if (on_net(dst, tn->net, tn->mask)
sbin/routed/input.c
688
&& tn->mask <= mask)
sbin/routed/input.c
691
if (i >= MAX_TGATE_NETS || tn->mask == 0) {
sys/arch/alpha/include/bus_funcs.h
70
#define __abs_rs(sz, tn, t, h, o) \
sys/arch/alpha/include/bus_funcs.h
71
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/alpha/include/bus_funcs.h
74
#define __abs_ws(sz, tn, t, h, o, v) \
sys/arch/alpha/include/bus_funcs.h
76
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/alpha/include/bus_funcs.h
80
#define __abs_nonsingle(type, sz, tn, t, h, o, a, c) \
sys/arch/alpha/include/bus_funcs.h
82
__BUS_SPACE_ADDRESS_SANITY((a), tn, "buffer"); \
sys/arch/alpha/include/bus_funcs.h
83
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/alpha/include/bus_funcs.h
87
#define __abs_set(type, sz, tn, t, h, o, v, c) \
sys/arch/alpha/include/bus_funcs.h
89
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/alpha/include/bus_funcs.h
93
#define __abs_copy(sz, tn, t, h1, o1, h2, o2, cnt) \
sys/arch/alpha/include/bus_funcs.h
95
__BUS_SPACE_ADDRESS_SANITY((h1) + (o1), tn, "bus addr 1"); \
sys/arch/alpha/include/bus_funcs.h
96
__BUS_SPACE_ADDRESS_SANITY((h2) + (o2), tn, "bus addr 2"); \
sys/arch/dreamcast/include/bus_funcs.h
70
#define __dbs_rs(sz, tn, t, h, o) \
sys/arch/dreamcast/include/bus_funcs.h
71
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/dreamcast/include/bus_funcs.h
74
#define __dbs_ws(sz, tn, t, h, o, v) \
sys/arch/dreamcast/include/bus_funcs.h
76
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/dreamcast/include/bus_funcs.h
80
#define __dbs_nonsingle(type, sz, tn, t, h, o, a, c) \
sys/arch/dreamcast/include/bus_funcs.h
82
__BUS_SPACE_ADDRESS_SANITY((a), tn, "buffer"); \
sys/arch/dreamcast/include/bus_funcs.h
83
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/dreamcast/include/bus_funcs.h
87
#define __dbs_set(type, sz, tn, t, h, o, v, c) \
sys/arch/dreamcast/include/bus_funcs.h
89
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/dreamcast/include/bus_funcs.h
93
#define __dbs_copy(sz, tn, t, h1, o1, h2, o2, cnt) \
sys/arch/dreamcast/include/bus_funcs.h
95
__BUS_SPACE_ADDRESS_SANITY((h1) + (o1), tn, "bus addr 1"); \
sys/arch/dreamcast/include/bus_funcs.h
96
__BUS_SPACE_ADDRESS_SANITY((h2) + (o2), tn, "bus addr 2"); \
sys/arch/evbsh3/include/bus_funcs.h
100
#define __bs_set(type, sz, tn, t, h, o, v, c) \
sys/arch/evbsh3/include/bus_funcs.h
102
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/evbsh3/include/bus_funcs.h
106
#define __bs_copy(sz, tn, t, h1, o1, h2, o2, cnt) \
sys/arch/evbsh3/include/bus_funcs.h
108
__BUS_SPACE_ADDRESS_SANITY((h1) + (o1), tn, "bus addr 1"); \
sys/arch/evbsh3/include/bus_funcs.h
109
__BUS_SPACE_ADDRESS_SANITY((h2) + (o2), tn, "bus addr 2"); \
sys/arch/evbsh3/include/bus_funcs.h
75
#define __bs_rs(sz, tn, t, h, o) \
sys/arch/evbsh3/include/bus_funcs.h
76
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/evbsh3/include/bus_funcs.h
78
#define __bs_rss(sz, tn, t, h, o) \
sys/arch/evbsh3/include/bus_funcs.h
79
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/evbsh3/include/bus_funcs.h
82
#define __bs_ws(sz, tn, t, h, o, v) \
sys/arch/evbsh3/include/bus_funcs.h
84
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/evbsh3/include/bus_funcs.h
87
#define __bs_wss(sz, tn, t, h, o, v) \
sys/arch/evbsh3/include/bus_funcs.h
89
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/evbsh3/include/bus_funcs.h
93
#define __bs_nonsingle(type, sz, tn, t, h, o, a, c) \
sys/arch/evbsh3/include/bus_funcs.h
95
__BUS_SPACE_ADDRESS_SANITY((a), tn, "buffer"); \
sys/arch/evbsh3/include/bus_funcs.h
96
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/ews4800mips/include/bus.h
459
#define __ebs_rs(sz, tn, t, h, o) \
sys/arch/ews4800mips/include/bus.h
460
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/ews4800mips/include/bus.h
463
#define __ebs_ws(sz, tn, t, h, o, v) \
sys/arch/ews4800mips/include/bus.h
465
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/ews4800mips/include/bus.h
469
#define __ebs_nonsingle(type, sz, tn, t, h, o, a, c) \
sys/arch/ews4800mips/include/bus.h
471
__BUS_SPACE_ADDRESS_SANITY((a), tn, "buffer"); \
sys/arch/ews4800mips/include/bus.h
472
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/ews4800mips/include/bus.h
476
#define __ebs_set(type, sz, tn, t, h, o, v, c) \
sys/arch/ews4800mips/include/bus.h
478
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/ews4800mips/include/bus.h
482
#define __ebs_copy(sz, tn, t, h1, o1, h2, o2, cnt) \
sys/arch/ews4800mips/include/bus.h
484
__BUS_SPACE_ADDRESS_SANITY((h1) + (o1), tn, "bus addr 1"); \
sys/arch/ews4800mips/include/bus.h
485
__BUS_SPACE_ADDRESS_SANITY((h2) + (o2), tn, "bus addr 2"); \
sys/arch/hpcsh/include/bus_funcs.h
100
__BUS_SPACE_ADDRESS_SANITY((h1) + (o1), tn, "bus addr 1"); \
sys/arch/hpcsh/include/bus_funcs.h
101
__BUS_SPACE_ADDRESS_SANITY((h2) + (o2), tn, "bus addr 2"); \
sys/arch/hpcsh/include/bus_funcs.h
75
#define __hbs_rs(sz, tn, t, h, o) \
sys/arch/hpcsh/include/bus_funcs.h
76
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/hpcsh/include/bus_funcs.h
79
#define __hbs_ws(sz, tn, t, h, o, v) \
sys/arch/hpcsh/include/bus_funcs.h
81
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/hpcsh/include/bus_funcs.h
85
#define __hbs_nonsingle(type, sz, tn, t, h, o, a, c) \
sys/arch/hpcsh/include/bus_funcs.h
87
__BUS_SPACE_ADDRESS_SANITY((a), tn, "buffer"); \
sys/arch/hpcsh/include/bus_funcs.h
88
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/hpcsh/include/bus_funcs.h
92
#define __hbs_set(type, sz, tn, t, h, o, v, c) \
sys/arch/hpcsh/include/bus_funcs.h
94
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/hpcsh/include/bus_funcs.h
98
#define __hbs_copy(sz, tn, t, h1, o1, h2, o2, cnt) \
sys/arch/landisk/include/bus_funcs.h
100
__BUS_SPACE_ADDRESS_SANITY((h2) + (o2), tn, "bus addr 2"); \
sys/arch/landisk/include/bus_funcs.h
74
#define __bs_rs(sz, tn, t, h, o) \
sys/arch/landisk/include/bus_funcs.h
75
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/landisk/include/bus_funcs.h
78
#define __bs_ws(sz, tn, t, h, o, v) \
sys/arch/landisk/include/bus_funcs.h
80
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/landisk/include/bus_funcs.h
84
#define __bs_nonsingle(type, sz, tn, t, h, o, a, c) \
sys/arch/landisk/include/bus_funcs.h
86
__BUS_SPACE_ADDRESS_SANITY((a), tn, "buffer"); \
sys/arch/landisk/include/bus_funcs.h
87
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/landisk/include/bus_funcs.h
91
#define __bs_set(type, sz, tn, t, h, o, v, c) \
sys/arch/landisk/include/bus_funcs.h
93
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/landisk/include/bus_funcs.h
97
#define __bs_copy(sz, tn, t, h1, o1, h2, o2, cnt) \
sys/arch/landisk/include/bus_funcs.h
99
__BUS_SPACE_ADDRESS_SANITY((h1) + (o1), tn, "bus addr 1"); \
sys/arch/mips/include/bus_space_funcs.h
70
#define __bs_r(type, sz, tn, t, h, o) \
sys/arch/mips/include/bus_space_funcs.h
71
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/mips/include/bus_space_funcs.h
74
#define __bs_w(type, sz, tn, t, h, o, v) \
sys/arch/mips/include/bus_space_funcs.h
76
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/mips/include/bus_space_funcs.h
80
#define __bs_nonsingle(type, sz, tn, t, h, o, a, c) \
sys/arch/mips/include/bus_space_funcs.h
82
__BUS_SPACE_ADDRESS_SANITY((a), tn, "buffer"); \
sys/arch/mips/include/bus_space_funcs.h
83
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/mips/include/bus_space_funcs.h
87
#define __bs_set(type, sz, tn, t, h, o, v, c) \
sys/arch/mips/include/bus_space_funcs.h
89
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/mips/include/bus_space_funcs.h
93
#define __bs_copy(sz, tn, t, h1, o1, h2, o2, cnt) \
sys/arch/mips/include/bus_space_funcs.h
95
__BUS_SPACE_ADDRESS_SANITY((h1) + (o1), tn, "bus addr 1"); \
sys/arch/mips/include/bus_space_funcs.h
96
__BUS_SPACE_ADDRESS_SANITY((h2) + (o2), tn, "bus addr 2"); \
sys/arch/playstation2/include/bus.h
501
#define __pbs_rs(sz, tn, t, h, o) \
sys/arch/playstation2/include/bus.h
502
(__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"), \
sys/arch/playstation2/include/bus.h
505
#define __pbs_ws(sz, tn, t, h, o, v) \
sys/arch/playstation2/include/bus.h
507
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/playstation2/include/bus.h
511
#define __pbs_nonsingle(type, sz, tn, t, h, o, a, c) \
sys/arch/playstation2/include/bus.h
513
__BUS_SPACE_ADDRESS_SANITY((a), tn, "buffer"); \
sys/arch/playstation2/include/bus.h
514
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/playstation2/include/bus.h
518
#define __pbs_set(type, sz, tn, t, h, o, v, c) \
sys/arch/playstation2/include/bus.h
520
__BUS_SPACE_ADDRESS_SANITY((h) + (o), tn, "bus addr"); \
sys/arch/playstation2/include/bus.h
524
#define __pbs_copy(sz, tn, t, h1, o1, h2, o2, cnt) \
sys/arch/playstation2/include/bus.h
526
__BUS_SPACE_ADDRESS_SANITY((h1) + (o1), tn, "bus addr 1"); \
sys/arch/playstation2/include/bus.h
527
__BUS_SPACE_ADDRESS_SANITY((h2) + (o2), tn, "bus addr 2"); \
sys/arch/vax/boot/boot/hp.c
111
unsigned int bn, cn, sn, tn;
sys/arch/vax/boot/boot/hp.c
122
tn = sn / hplabel.d_nsectors;
sys/arch/vax/boot/boot/hp.c
125
cn = sn = tn = 0;
sys/arch/vax/boot/boot/hp.c
128
HP_WCSR(HP_DA, (tn << 8) | sn);
sys/arch/vax/boot/boot/tmscp.c
154
u_int i,j,pfnum, mapnr, nsize, bn, cn, sn, tn;
sys/arch/vax/boot/xxboot/bootxx.c
329
u_int cn, sn, tn;
sys/arch/vax/boot/xxboot/bootxx.c
347
: "=g"(cn),"=g"(sn),"=g"(tn)
sys/arch/vax/boot/xxboot/bootxx.c
353
tn = sn / dp->d_nsectors;
sys/arch/vax/boot/xxboot/bootxx.c
357
HP_WCSR(HP_DA, (tn << 8) | sn);
sys/arch/vax/mba/hp.c
240
unsigned bn, cn, sn, tn;
sys/arch/vax/mba/hp.c
252
tn = sn / lp->d_nsectors;
sys/arch/vax/mba/hp.c
255
cn = sn = tn = 0;
sys/arch/vax/mba/hp.c
258
HP_WCSR(HP_DA, (tn << 8) | sn);
sys/arch/vax/vsa/hdc9224.c
500
int cn, sn, tn, bn, blks;
sys/arch/vax/vsa/hdc9224.c
526
tn = sn / lp->d_nsectors;
sys/arch/vax/vsa/hdc9224.c
529
cn = sn = tn = 0;
sys/arch/vax/vsa/hdc9224.c
546
p->udc_dhead = ((cn >> 4) & 0x70) | tn;
sys/dev/pci/twa.c
2260
struct twa_unitname *tn;
sys/dev/pci/twa.c
2263
tn = (struct twa_unitname *)data;
sys/dev/pci/twa.c
2265
if (tn->tn_unit < 0 || tn->tn_unit >= sc->sc_nunits)
sys/dev/pci/twa.c
2267
tdr = &sc->sc_units[tn->tn_unit];
sys/dev/pci/twa.c
2269
tn->tn_name[0] = '\0';
sys/dev/pci/twa.c
2271
strlcpy(tn->tn_name, device_xname(tdr->td_dev),
sys/dev/pci/twa.c
2272
sizeof(tn->tn_name));
sys/dev/qbus/rl.c
591
int bn, cn, sn, tn, blks, err;
sys/dev/qbus/rl.c
614
tn = sn / lp->d_nsectors;
sys/dev/qbus/rl.c
617
cn = sn = tn = 0;
sys/dev/qbus/rl.c
622
if (rc->rc_cyl != cn || rc->rc_head != tn) {
sys/dev/qbus/rl.c
628
if (tn)
sys/dev/qbus/rl.c
635
rc->rc_head = tn;
sys/dev/qbus/rl.c
637
RL_WREG(RL_DA, (cn << RLDA_CYLSHFT) | (tn ? RLDA_HSRW : 0) | (sn << 1));
sys/dev/usb/ugen.c
1064
uint32_t tn;
sys/dev/usb/ugen.c
1133
tn = uimin(n, sce->limit - sce->cur);
sys/dev/usb/ugen.c
1134
memcpy(dbuf, sce->cur, tn);
sys/dev/usb/ugen.c
1135
dbuf += tn;
sys/dev/usb/ugen.c
1136
if (n - tn > 0)
sys/dev/usb/ugen.c
1138
n - tn);
sys/dev/usb/ugen.c
852
uint32_t n, tn;
sys/dev/usb/ugen.c
978
tn = n;
sys/dev/usb/ugen.c
981
sce->timeout, sc->sc_buffer, &tn);
sys/dev/usb/ugen.c
991
DPRINTFN(1, "got %jd bytes", tn, 0, 0, 0);
sys/dev/usb/ugen.c
992
error = uiomove(sc->sc_buffer, tn, uio);
sys/dev/usb/ugen.c
993
if (error || tn < n)
sys/fs/tmpfs/tmpfs_mem.c
195
tmpfs_node_put(struct tmpfs_mount *mp, struct tmpfs_node *tn)
sys/fs/tmpfs/tmpfs_mem.c
200
pool_put(&tmpfs_node_pool, tn);
sys/kern/kern_sysctl.c
516
int tn, si, ni, error, alias;
sys/kern/kern_sysctl.c
566
tn = name[ni];
sys/kern/kern_sysctl.c
576
if ((node[si].sysctl_flags & CTLFLAG_ANYNUMBER) && (tn >= 0))
sys/kern/kern_sysctl.c
579
if (node[si].sysctl_num == tn) {
sys/kern/kern_sysctl.c
584
tn = node[si].sysctl_alias;
sys/netinet/sctp_timer.c
1360
struct timeval tn, *tim_touse;
sys/netinet/sctp_timer.c
1364
SCTP_GETTIME_TIMEVAL(&tn);
sys/netinet/sctp_timer.c
1377
ticks_gone_by = ((tn.tv_sec - tim_touse->tv_sec) * hz);
usr.bin/fstat/tmpfs.c
50
struct tmpfs_node tn;
usr.bin/fstat/tmpfs.c
53
if (!KVM_READ(VP_TO_TMPFS_NODE(vp), &tn, sizeof(tn))) {
usr.bin/fstat/tmpfs.c
65
fsp->fileid = tn.tn_id;
usr.bin/fstat/tmpfs.c
66
fsp->mode = tn.tn_mode | getftype(vp->v_type);
usr.bin/fstat/tmpfs.c
67
fsp->size = tn.tn_size;
usr.bin/fstat/tmpfs.c
68
switch (tn.tn_type) {
usr.bin/fstat/tmpfs.c
71
fsp->rdev = tn.tn_spec.tn_dev.tn_rdev;
usr.bin/telnet/commands.c
2298
{ "open", openhelp, tn, 0 },
usr.bin/telnet/externs.h
224
int tn(int, char *[]);
usr.bin/telnet/main.c
314
if (tn((int)(argp - args), args) == 1)
usr.bin/xlint/common/lint.h
145
#define has_operands(tn) (modtab[(tn)->tn_op].m_has_operands)
usr.bin/xlint/common/tyname.c
313
expr_type_name(const tnode_t *tn)
usr.bin/xlint/common/tyname.c
315
const char *tp_name = type_name(tn->tn_type);
usr.bin/xlint/common/tyname.c
316
const char *otp_name = type_name(before_conversion(tn)->tn_type);
usr.bin/xlint/lint1/ckbool.c
187
is_typeok_bool_compares_with_zero(const tnode_t *tn, bool is_do_while)
usr.bin/xlint/lint1/ckbool.c
189
while (tn->tn_op == COMMA)
usr.bin/xlint/lint1/ckbool.c
190
tn = tn->u.ops.right;
usr.bin/xlint/lint1/ckbool.c
191
tn = before_conversion(tn);
usr.bin/xlint/lint1/ckbool.c
193
return tn->tn_type->t_tspec == BOOL
usr.bin/xlint/lint1/ckbool.c
194
|| tn->tn_op == BITAND
usr.bin/xlint/lint1/ckbool.c
195
|| (is_do_while && is_int_constant_zero(tn, tn->tn_type->t_tspec))
usr.bin/xlint/lint1/ckbool.c
196
|| (tn->tn_sys && is_scalar(tn->tn_type->t_tspec));
usr.bin/xlint/lint1/ckbool.c
54
is_int_constant_zero(const tnode_t *tn, tspec_t t)
usr.bin/xlint/lint1/ckbool.c
56
return t == INT && tn->tn_op == CON && tn->u.value.u.integer == 0;
usr.bin/xlint/lint1/ckgetopt.c
149
check_getopt_begin_while(const tnode_t *tn)
usr.bin/xlint/lint1/ckgetopt.c
152
if (!is_getopt_condition(tn, &ck.options))
usr.bin/xlint/lint1/ckgetopt.c
82
is_getopt_condition(const tnode_t *tn, char **out_options)
usr.bin/xlint/lint1/ckgetopt.c
88
if (tn != NULL
usr.bin/xlint/lint1/ckgetopt.c
89
&& tn->tn_op == NE
usr.bin/xlint/lint1/ckgetopt.c
91
&& tn->u.ops.right->tn_op == CON
usr.bin/xlint/lint1/ckgetopt.c
92
&& tn->u.ops.right->u.value.v_tspec == INT
usr.bin/xlint/lint1/ckgetopt.c
93
&& tn->u.ops.right->u.value.u.integer == -1
usr.bin/xlint/lint1/ckgetopt.c
95
&& tn->u.ops.left->tn_op == ASSIGN
usr.bin/xlint/lint1/ckgetopt.c
96
&& tn->u.ops.left->u.ops.right->tn_op == CALL
usr.bin/xlint/lint1/ckgetopt.c
97
&& (call = tn->u.ops.left->u.ops.right->u.call)->func->tn_op == ADDR
usr.bin/xlint/lint1/debug.c
196
debug_node(const tnode_t *tn) // NOLINT(misc-no-recursion)
usr.bin/xlint/lint1/debug.c
199
if (tn == NULL) {
usr.bin/xlint/lint1/debug.c
204
op_t op = tn->tn_op;
usr.bin/xlint/lint1/debug.c
206
op == CVT && tn->tn_cast ? "cast" : op_name(op));
usr.bin/xlint/lint1/debug.c
209
tn->u.sym->s_name,
usr.bin/xlint/lint1/debug.c
210
scl_name(tn->u.sym->s_scl));
usr.bin/xlint/lint1/debug.c
213
debug_printf(" '%s'", type_name(tn->tn_type));
usr.bin/xlint/lint1/debug.c
214
if (tn->tn_lvalue)
usr.bin/xlint/lint1/debug.c
216
if (tn->tn_parenthesized)
usr.bin/xlint/lint1/debug.c
218
if (tn->tn_sys)
usr.bin/xlint/lint1/debug.c
226
if (is_floating(tn->tn_type->t_tspec))
usr.bin/xlint/lint1/debug.c
227
debug_printf(", value %Lg", tn->u.value.u.floating);
usr.bin/xlint/lint1/debug.c
228
else if (is_uinteger(tn->tn_type->t_tspec))
usr.bin/xlint/lint1/debug.c
230
(unsigned long long)tn->u.value.u.integer);
usr.bin/xlint/lint1/debug.c
231
else if (is_integer(tn->tn_type->t_tspec))
usr.bin/xlint/lint1/debug.c
233
(long long)tn->u.value.u.integer);
usr.bin/xlint/lint1/debug.c
235
lint_assert(tn->tn_type->t_tspec == BOOL);
usr.bin/xlint/lint1/debug.c
237
tn->u.value.u.integer != 0 ? "true" : "false");
usr.bin/xlint/lint1/debug.c
239
if (tn->u.value.v_unsigned_since_c90)
usr.bin/xlint/lint1/debug.c
241
if (tn->u.value.v_char_constant)
usr.bin/xlint/lint1/debug.c
246
if (tn->u.str_literals->data != NULL)
usr.bin/xlint/lint1/debug.c
247
debug_printf(", %s\n", tn->u.str_literals->data);
usr.bin/xlint/lint1/debug.c
249
debug_printf(", length %zu\n", tn->u.str_literals->len);
usr.bin/xlint/lint1/debug.c
255
const function_call *call = tn->u.call;
usr.bin/xlint/lint1/debug.c
265
lint_assert(has_operands(tn));
usr.bin/xlint/lint1/debug.c
266
lint_assert(tn->u.ops.left != NULL);
usr.bin/xlint/lint1/debug.c
267
debug_node(tn->u.ops.left);
usr.bin/xlint/lint1/debug.c
270
lint_assert(is_binary(tn) == (tn->u.ops.right != NULL));
usr.bin/xlint/lint1/debug.c
271
if (tn->u.ops.right != NULL)
usr.bin/xlint/lint1/debug.c
272
debug_node(tn->u.ops.right);
usr.bin/xlint/lint1/decl.c
3212
to_int_constant(tnode_t *tn, bool required)
usr.bin/xlint/lint1/decl.c
3215
if (tn == NULL)
usr.bin/xlint/lint1/decl.c
3218
val_t *v = integer_constant(tn, required);
usr.bin/xlint/lint1/decl.c
3228
if (tn->tn_op != CON && dcs->d_kind != DLK_ABSTRACT)
usr.bin/xlint/lint1/emit1.c
321
outcall(const tnode_t *tn, bool retval_used, bool retval_discarded)
usr.bin/xlint/lint1/emit1.c
333
const function_call *call = tn->u.call;
usr.bin/xlint/lint1/emit1.c
382
outtype(tn->tn_type);
usr.bin/xlint/lint1/externs1.h
169
#define debug_node(tn) debug_noop()
usr.bin/xlint/lint1/func.c
413
check_case_label_enum(const tnode_t *tn, const control_statement *cs)
usr.bin/xlint/lint1/func.c
417
if (!(tn->tn_type->t_is_enum || cs->c_switch_type->t_is_enum))
usr.bin/xlint/lint1/func.c
419
if (tn->tn_type->t_is_enum && cs->c_switch_type->t_is_enum &&
usr.bin/xlint/lint1/func.c
420
tn->tn_type->u.enumer == cs->c_switch_type->u.enumer)
usr.bin/xlint/lint1/func.c
426
type_name(tn->tn_type));
usr.bin/xlint/lint1/func.c
459
check_case_label(tnode_t *tn)
usr.bin/xlint/lint1/func.c
471
if (tn == NULL)
usr.bin/xlint/lint1/func.c
474
if (tn->tn_op != CON) {
usr.bin/xlint/lint1/func.c
480
if (!is_integer(tn->tn_type->t_tspec)) {
usr.bin/xlint/lint1/func.c
486
check_case_label_bitand(tn, cs->c_switch_expr);
usr.bin/xlint/lint1/func.c
487
check_case_label_enum(tn, cs);
usr.bin/xlint/lint1/func.c
497
tspec_t t = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/func.c
503
val_t *v = integer_constant(tn, true);
usr.bin/xlint/lint1/func.c
514
case_label(tnode_t *tn)
usr.bin/xlint/lint1/func.c
516
check_case_label(tn);
usr.bin/xlint/lint1/func.c
548
check_controlling_expression(tnode_t *tn, bool is_do_while)
usr.bin/xlint/lint1/func.c
550
tn = cconv(tn);
usr.bin/xlint/lint1/func.c
551
if (tn != NULL)
usr.bin/xlint/lint1/func.c
552
tn = promote(NOOP, false, tn);
usr.bin/xlint/lint1/func.c
554
if (tn != NULL && !is_scalar(tn->tn_type->t_tspec)) {
usr.bin/xlint/lint1/func.c
559
error(204, type_name(tn->tn_type));
usr.bin/xlint/lint1/func.c
563
if (tn != NULL && Tflag
usr.bin/xlint/lint1/func.c
564
&& !is_typeok_bool_compares_with_zero(tn, is_do_while)) {
usr.bin/xlint/lint1/func.c
566
error(333, tn->tn_type->t_is_enum ? expr_type_name(tn)
usr.bin/xlint/lint1/func.c
567
: tspec_name(tn->tn_type->t_tspec));
usr.bin/xlint/lint1/func.c
570
return tn;
usr.bin/xlint/lint1/func.c
574
stmt_if_expr(tnode_t *tn)
usr.bin/xlint/lint1/func.c
576
if (tn != NULL)
usr.bin/xlint/lint1/func.c
577
tn = check_controlling_expression(tn, false);
usr.bin/xlint/lint1/func.c
578
if (tn != NULL)
usr.bin/xlint/lint1/func.c
579
expr(tn, false, true, false, false, "if");
usr.bin/xlint/lint1/func.c
582
if (tn != NULL && tn->tn_op == CON && !tn->tn_system_dependent) {
usr.bin/xlint/lint1/func.c
584
set_reached(constant_is_nonzero(tn));
usr.bin/xlint/lint1/func.c
612
stmt_switch_expr(tnode_t *tn)
usr.bin/xlint/lint1/func.c
614
if (tn != NULL)
usr.bin/xlint/lint1/func.c
615
tn = cconv(tn);
usr.bin/xlint/lint1/func.c
616
if (tn != NULL)
usr.bin/xlint/lint1/func.c
617
tn = promote(NOOP, false, tn);
usr.bin/xlint/lint1/func.c
618
if (tn != NULL && !is_integer(tn->tn_type->t_tspec)) {
usr.bin/xlint/lint1/func.c
620
error(205, type_name(tn->tn_type));
usr.bin/xlint/lint1/func.c
621
tn = NULL;
usr.bin/xlint/lint1/func.c
623
if (tn != NULL && !allow_c90) {
usr.bin/xlint/lint1/func.c
624
tspec_t t = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/func.c
636
if (tn != NULL) {
usr.bin/xlint/lint1/func.c
637
tp->t_tspec = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/func.c
638
if ((tp->t_is_enum = tn->tn_type->t_is_enum) != false)
usr.bin/xlint/lint1/func.c
639
tp->u.enumer = tn->tn_type->u.enumer;
usr.bin/xlint/lint1/func.c
648
expr(tn, true, false, false, false, "switch");
usr.bin/xlint/lint1/func.c
653
cstmt->c_switch_expr = tn;
usr.bin/xlint/lint1/func.c
712
stmt_while_expr(tnode_t *tn)
usr.bin/xlint/lint1/func.c
719
if (tn != NULL)
usr.bin/xlint/lint1/func.c
720
tn = check_controlling_expression(tn, false);
usr.bin/xlint/lint1/func.c
724
cstmt->c_maybe_endless = is_nonzero(tn);
usr.bin/xlint/lint1/func.c
725
bool body_reached = !is_zero(tn);
usr.bin/xlint/lint1/func.c
727
check_getopt_begin_while(tn);
usr.bin/xlint/lint1/func.c
728
expr(tn, false, true, true, false, "while");
usr.bin/xlint/lint1/func.c
752
stmt_do_while_expr(tnode_t *tn)
usr.bin/xlint/lint1/func.c
757
if (tn != NULL)
usr.bin/xlint/lint1/func.c
758
tn = check_controlling_expression(tn, true);
usr.bin/xlint/lint1/func.c
760
if (tn != NULL && tn->tn_op == CON) {
usr.bin/xlint/lint1/func.c
761
cstmt->c_maybe_endless = constant_is_nonzero(tn);
usr.bin/xlint/lint1/func.c
767
expr(tn, false, true, true, true, "do-while");
usr.bin/xlint/lint1/func.c
903
is_parenthesized(const tnode_t *tn)
usr.bin/xlint/lint1/func.c
905
while (!tn->tn_parenthesized && tn->tn_op == COMMA)
usr.bin/xlint/lint1/func.c
906
tn = tn->u.ops.right;
usr.bin/xlint/lint1/func.c
907
return tn->tn_parenthesized && !tn->tn_sys;
usr.bin/xlint/lint1/func.c
911
check_return_value(bool sys, tnode_t *tn)
usr.bin/xlint/lint1/func.c
913
if (any_query_enabled && is_parenthesized(tn))
usr.bin/xlint/lint1/func.c
924
tnode_t *retn = build_binary(ln, RETURN, sys, tn);
usr.bin/xlint/lint1/func.c
940
stmt_return(bool sys, tnode_t *tn)
usr.bin/xlint/lint1/func.c
953
if (tn != NULL)
usr.bin/xlint/lint1/func.c
958
if (tn != NULL && funcsym->s_type->t_subt->t_tspec == VOID) {
usr.bin/xlint/lint1/func.c
962
tn = NULL;
usr.bin/xlint/lint1/func.c
964
if (tn == NULL && funcsym->s_type->t_subt->t_tspec != VOID
usr.bin/xlint/lint1/func.c
974
if (tn != NULL)
usr.bin/xlint/lint1/func.c
975
check_return_value(sys, tn);
usr.bin/xlint/lint1/init.c
214
check_non_constant_initializer(const tnode_t *tn, const sym_t *sym)
usr.bin/xlint/lint1/init.c
217
if (tn == NULL || tn->tn_op == CON)
usr.bin/xlint/lint1/init.c
222
if (constant_addr(tn, &unused_sym, &unused_offs))
usr.bin/xlint/lint1/init.c
825
tnode_t *tn = build_binary(ln, INIT, false /* XXX */, rn);
usr.bin/xlint/lint1/init.c
826
expr(tn, false, false, false, false, "init");
usr.bin/xlint/lint1/init.c
833
initialization_init_array_from_string(initialization *in, tnode_t *tn)
usr.bin/xlint/lint1/init.c
836
if (tn->tn_op != STRING)
usr.bin/xlint/lint1/init.c
841
if (!can_init_character_array(tp, tn))
usr.bin/xlint/lint1/init.c
844
size_t len = tn->u.str_literals->len;
usr.bin/xlint/lint1/init.c
845
if (tn->u.str_literals->data != NULL) {
usr.bin/xlint/lint1/init.c
847
for (len = 0; quoted_next(tn->u.str_literals, &it); len++)
usr.bin/xlint/lint1/init.c
874
initialization_expr(initialization *in, tnode_t *tn)
usr.bin/xlint/lint1/init.c
877
if (in->in_err || tn == NULL)
usr.bin/xlint/lint1/init.c
883
if (bl != NULL && !brace_level_goto(bl, tn, &in->in_max_subscript)) {
usr.bin/xlint/lint1/init.c
888
in->in_sym->s_type = block_dup_type(tn->tn_type);
usr.bin/xlint/lint1/init.c
889
if (initialization_expr_using_op(in, tn))
usr.bin/xlint/lint1/init.c
891
if (initialization_init_array_from_string(in, tn))
usr.bin/xlint/lint1/init.c
907
type_name(tp), type_name(tn->tn_type));
usr.bin/xlint/lint1/init.c
908
check_init_expr(tp, in->in_sym, tn);
usr.bin/xlint/lint1/init.c
985
init_expr(tnode_t *tn)
usr.bin/xlint/lint1/init.c
988
initialization_expr(init, tn);
usr.bin/xlint/lint1/lint1.h
688
constant_is_nonzero(const tnode_t *tn)
usr.bin/xlint/lint1/lint1.h
690
lint_assert(tn->tn_op == CON);
usr.bin/xlint/lint1/lint1.h
691
lint_assert(tn->tn_type->t_tspec == tn->u.value.v_tspec);
usr.bin/xlint/lint1/lint1.h
692
return is_nonzero_val(&tn->u.value);
usr.bin/xlint/lint1/lint1.h
696
is_zero(const tnode_t *tn)
usr.bin/xlint/lint1/lint1.h
698
return tn != NULL && tn->tn_op == CON && !is_nonzero_val(&tn->u.value);
usr.bin/xlint/lint1/lint1.h
702
is_nonzero(const tnode_t *tn)
usr.bin/xlint/lint1/lint1.h
704
return tn != NULL && tn->tn_op == CON && is_nonzero_val(&tn->u.value);
usr.bin/xlint/lint1/lint1.h
714
is_binary(const tnode_t *tn)
usr.bin/xlint/lint1/lint1.h
716
return modtab[tn->tn_op].m_binary;
usr.bin/xlint/lint1/mem1.c
201
const tnode_t *tn = p;
usr.bin/xlint/lint1/mem1.c
203
__func__, op_name(tn->tn_op), type_name(tn->tn_type));
usr.bin/xlint/lint1/mem1.c
345
tnode_t *tn = expr_zero_alloc(sizeof(*tn), "tnode");
usr.bin/xlint/lint1/mem1.c
351
tn->tn_sys = in_system_header ||
usr.bin/xlint/lint1/mem1.c
354
return tn;
usr.bin/xlint/lint1/tree.c
1014
is_out_of_char_range(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
1016
return tn->tn_op == CON &&
usr.bin/xlint/lint1/tree.c
1017
!tn->u.value.v_char_constant &&
usr.bin/xlint/lint1/tree.c
1018
!(0 <= tn->u.value.u.integer &&
usr.bin/xlint/lint1/tree.c
1019
tn->u.value.u.integer < 1 << (CHAR_SIZE - 1));
usr.bin/xlint/lint1/tree.c
1165
apply_usual_arithmetic_conversions(op_t op, tnode_t *tn, tspec_t t)
usr.bin/xlint/lint1/tree.c
1167
type_t *ntp = expr_dup_type(tn->tn_type);
usr.bin/xlint/lint1/tree.c
1169
if (tn->tn_op != CON) {
usr.bin/xlint/lint1/tree.c
1172
expr_type_name(tn), type_name(ntp));
usr.bin/xlint/lint1/tree.c
1174
return convert(op, 0, ntp, tn);
usr.bin/xlint/lint1/tree.c
1217
build_address(bool sys, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
1220
if (tn->tn_op == INDIR &&
usr.bin/xlint/lint1/tree.c
1221
tn->u.ops.left->tn_type->t_tspec == PTR &&
usr.bin/xlint/lint1/tree.c
1222
tn->u.ops.left->tn_type->t_subt == tn->tn_type) {
usr.bin/xlint/lint1/tree.c
1223
return tn->u.ops.left;
usr.bin/xlint/lint1/tree.c
1226
return build_op(ADDR, sys, expr_derive_ptr_type(tn->tn_type),
usr.bin/xlint/lint1/tree.c
1227
tn, NULL);
usr.bin/xlint/lint1/tree.c
1395
fold_constant_integer(tnode_t *tn)
usr.bin/xlint/lint1/tree.c
1398
lint_assert(has_operands(tn));
usr.bin/xlint/lint1/tree.c
1399
tspec_t t = tn->u.ops.left->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
1400
int64_t l = tn->u.ops.left->u.value.u.integer;
usr.bin/xlint/lint1/tree.c
1401
int64_t r = is_binary(tn) ? tn->u.ops.right->u.value.u.integer : 0;
usr.bin/xlint/lint1/tree.c
1407
uint64_t u_res = fold_unsigned_integer(tn->tn_op,
usr.bin/xlint/lint1/tree.c
1414
if (is_binary(tn)) {
usr.bin/xlint/lint1/tree.c
1416
(uintmax_t)l, op_name(tn->tn_op),
usr.bin/xlint/lint1/tree.c
1420
op_name(tn->tn_op), (uintmax_t)l);
usr.bin/xlint/lint1/tree.c
1423
warning(141, buf, expr_type_name(tn));
usr.bin/xlint/lint1/tree.c
1428
res = fold_signed_integer(tn->tn_op,
usr.bin/xlint/lint1/tree.c
1434
if (is_binary(tn)) {
usr.bin/xlint/lint1/tree.c
1436
(intmax_t)l, op_name(tn->tn_op),
usr.bin/xlint/lint1/tree.c
1438
} else if (tn->tn_op == UMINUS && l < 0) {
usr.bin/xlint/lint1/tree.c
1443
op_name(tn->tn_op), (intmax_t)l);
usr.bin/xlint/lint1/tree.c
1446
warning(141, buf, expr_type_name(tn));
usr.bin/xlint/lint1/tree.c
1451
v->v_tspec = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
1454
tnode_t *cn = build_constant(tn->tn_type, v);
usr.bin/xlint/lint1/tree.c
1455
if (tn->u.ops.left->tn_system_dependent)
usr.bin/xlint/lint1/tree.c
1457
if (is_binary(tn) && tn->u.ops.right->tn_system_dependent)
usr.bin/xlint/lint1/tree.c
1497
may_be_signed_min(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
1499
if (!is_integer(tn->tn_type->t_tspec))
usr.bin/xlint/lint1/tree.c
1501
if (is_uinteger(tn->tn_type->t_tspec))
usr.bin/xlint/lint1/tree.c
1503
integer_constraints c = ic_expr(tn);
usr.bin/xlint/lint1/tree.c
1504
return c.smin == si_min_value(tn->tn_type);
usr.bin/xlint/lint1/tree.c
1698
is_null_pointer(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
1700
tspec_t t = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
1705
return ((t == PTR && tn->tn_type->t_subt->t_tspec == VOID)
usr.bin/xlint/lint1/tree.c
1707
&& (tn->tn_op == CON && tn->u.value.u.integer == 0);
usr.bin/xlint/lint1/tree.c
1789
is_cast_redundant(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
1791
const type_t *ntp = tn->tn_type, *otp = tn->u.ops.left->tn_type;
usr.bin/xlint/lint1/tree.c
1982
check_precedence_confusion(tnode_t *tn)
usr.bin/xlint/lint1/tree.c
1989
debug_node(tn);
usr.bin/xlint/lint1/tree.c
1991
lint_assert(is_binary(tn));
usr.bin/xlint/lint1/tree.c
1992
for (ln = tn->u.ops.left; ln->tn_op == CVT; ln = ln->u.ops.left)
usr.bin/xlint/lint1/tree.c
1994
for (rn = tn->u.ops.right; rn->tn_op == CVT; rn = rn->u.ops.left)
usr.bin/xlint/lint1/tree.c
1998
if (is_confusing_precedence(tn->tn_op, ln, &cop) ||
usr.bin/xlint/lint1/tree.c
1999
is_confusing_precedence(tn->tn_op, rn, &cop)) {
usr.bin/xlint/lint1/tree.c
2001
warning(169, op_name(tn->tn_op), op_name(cop));
usr.bin/xlint/lint1/tree.c
2006
fold_constant_compare_zero(tnode_t *tn)
usr.bin/xlint/lint1/tree.c
2010
v->v_tspec = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
2013
lint_assert(has_operands(tn));
usr.bin/xlint/lint1/tree.c
2014
bool l = constant_is_nonzero(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
2015
bool r = is_binary(tn) && constant_is_nonzero(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
2017
switch (tn->tn_op) {
usr.bin/xlint/lint1/tree.c
2031
return build_constant(tn->tn_type, v);
usr.bin/xlint/lint1/tree.c
2076
fold_constant_floating(tnode_t *tn)
usr.bin/xlint/lint1/tree.c
2081
tspec_t t = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
2087
lint_assert(has_operands(tn));
usr.bin/xlint/lint1/tree.c
2088
lint_assert(t == tn->u.ops.left->tn_type->t_tspec);
usr.bin/xlint/lint1/tree.c
2089
lint_assert(!is_binary(tn) || t == tn->u.ops.right->tn_type->t_tspec);
usr.bin/xlint/lint1/tree.c
2091
long double lv = tn->u.ops.left->u.value.u.floating;
usr.bin/xlint/lint1/tree.c
2092
long double rv = is_binary(tn) ? tn->u.ops.right->u.value.u.floating
usr.bin/xlint/lint1/tree.c
2095
switch (tn->tn_op) {
usr.bin/xlint/lint1/tree.c
2153
warning(142, op_name(tn->tn_op));
usr.bin/xlint/lint1/tree.c
2158
return build_constant(tn->tn_type, v);
usr.bin/xlint/lint1/tree.c
2162
use(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
2164
if (tn == NULL)
usr.bin/xlint/lint1/tree.c
2166
switch (tn->tn_op) {
usr.bin/xlint/lint1/tree.c
2168
mark_as_used(tn->u.sym, false /* XXX */, false /* XXX */);
usr.bin/xlint/lint1/tree.c
2174
const function_call *call = tn->u.call;
usr.bin/xlint/lint1/tree.c
2179
lint_assert(has_operands(tn));
usr.bin/xlint/lint1/tree.c
2180
use(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
2181
if (is_binary(tn))
usr.bin/xlint/lint1/tree.c
2182
use(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
2345
build_unary(op_t op, bool sys, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
2347
return build_binary(tn, op, sys, NULL);
usr.bin/xlint/lint1/tree.c
2426
remove_unknown_member(tnode_t *tn, sym_t *msym)
usr.bin/xlint/lint1/tree.c
2429
error(101, type_name(tn->tn_type), msym->s_name);
usr.bin/xlint/lint1/tree.c
2451
struct_or_union_member(tnode_t *tn, op_t op, sym_t *msym)
usr.bin/xlint/lint1/tree.c
2456
if (op == POINT && is_struct_or_union(tn->tn_type->t_tspec))
usr.bin/xlint/lint1/tree.c
2457
tp = tn->tn_type;
usr.bin/xlint/lint1/tree.c
2458
if (op == ARROW && tn->tn_type->t_tspec == PTR
usr.bin/xlint/lint1/tree.c
2459
&& is_struct_or_union(tn->tn_type->t_subt->t_tspec))
usr.bin/xlint/lint1/tree.c
2460
tp = tn->tn_type->t_subt;
usr.bin/xlint/lint1/tree.c
2470
remove_unknown_member(tn, msym);
usr.bin/xlint/lint1/tree.c
2494
warning(103, expr_type_name(tn));
usr.bin/xlint/lint1/tree.c
2497
error(103, expr_type_name(tn));
usr.bin/xlint/lint1/tree.c
2499
if (!allow_c90 && tn->tn_type->t_tspec == PTR)
usr.bin/xlint/lint1/tree.c
2501
warning(104, expr_type_name(tn));
usr.bin/xlint/lint1/tree.c
2504
error(104, expr_type_name(tn));
usr.bin/xlint/lint1/tree.c
2545
cconv(tnode_t *tn)
usr.bin/xlint/lint1/tree.c
2547
if (tn->tn_type->t_tspec == ARRAY) {
usr.bin/xlint/lint1/tree.c
2548
if (!tn->tn_lvalue) {
usr.bin/xlint/lint1/tree.c
2553
tn = build_op(ADDR, tn->tn_sys,
usr.bin/xlint/lint1/tree.c
2554
expr_derive_ptr_type(tn->tn_type->t_subt), tn, NULL);
usr.bin/xlint/lint1/tree.c
2557
if (tn->tn_type->t_tspec == FUNC)
usr.bin/xlint/lint1/tree.c
2558
tn = build_address(tn->tn_sys, tn);
usr.bin/xlint/lint1/tree.c
2560
if (tn->tn_lvalue) {
usr.bin/xlint/lint1/tree.c
2561
type_t *tp = expr_dup_type(tn->tn_type);
usr.bin/xlint/lint1/tree.c
2564
tn = build_op(LOAD, tn->tn_sys, tp, tn, NULL);
usr.bin/xlint/lint1/tree.c
2567
return tn;
usr.bin/xlint/lint1/tree.c
2571
before_conversion(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
2573
while (tn->tn_op == CVT && !tn->tn_cast)
usr.bin/xlint/lint1/tree.c
2574
tn = tn->u.ops.left;
usr.bin/xlint/lint1/tree.c
2575
return tn;
usr.bin/xlint/lint1/tree.c
2629
typeok_incdec(op_t op, const tnode_t *tn, const type_t *tp)
usr.bin/xlint/lint1/tree.c
2632
if (!tn->tn_lvalue) {
usr.bin/xlint/lint1/tree.c
2633
if (tn->tn_op == CVT && tn->tn_cast &&
usr.bin/xlint/lint1/tree.c
2634
tn->u.ops.left->tn_op == LOAD)
usr.bin/xlint/lint1/tree.c
2648
typeok_address(op_t op, const tnode_t *tn, const type_t *tp, tspec_t t)
usr.bin/xlint/lint1/tree.c
2652
} else if (!tn->tn_lvalue) {
usr.bin/xlint/lint1/tree.c
2653
if (tn->tn_op == CVT && tn->tn_cast &&
usr.bin/xlint/lint1/tree.c
2654
tn->u.ops.left->tn_op == LOAD)
usr.bin/xlint/lint1/tree.c
2671
if (tn->tn_op == NAME && tn->u.sym->s_register) {
usr.bin/xlint/lint1/tree.c
2673
error(113, tn->u.sym->s_name);
usr.bin/xlint/lint1/tree.c
3135
is_direct_function_call(const tnode_t *tn, const char **out_name)
usr.bin/xlint/lint1/tree.c
3138
if (tn->tn_op == CALL
usr.bin/xlint/lint1/tree.c
3139
&& tn->u.call->func->tn_op == ADDR
usr.bin/xlint/lint1/tree.c
3140
&& tn->u.call->func->u.ops.left->tn_op == NAME) {
usr.bin/xlint/lint1/tree.c
3141
*out_name = tn->u.call->func->u.ops.left->u.sym->s_name;
usr.bin/xlint/lint1/tree.c
3159
is_const_char_pointer(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3172
if (tn->tn_op == CVT &&
usr.bin/xlint/lint1/tree.c
3173
tn->u.ops.left->tn_op == ADDR &&
usr.bin/xlint/lint1/tree.c
3174
tn->u.ops.left->u.ops.left->tn_op == STRING)
usr.bin/xlint/lint1/tree.c
3177
const type_t *tp = before_conversion(tn)->tn_type;
usr.bin/xlint/lint1/tree.c
3184
is_const_pointer(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3186
const type_t *tp = before_conversion(tn)->tn_type;
usr.bin/xlint/lint1/tree.c
3382
has_side_effect(const tnode_t *tn) /* NOLINT(misc-no-recursion) */
usr.bin/xlint/lint1/tree.c
3384
op_t op = tn->tn_op;
usr.bin/xlint/lint1/tree.c
3389
if (op == CVT && tn->tn_type->t_tspec == VOID)
usr.bin/xlint/lint1/tree.c
3390
return has_side_effect(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
3393
return has_side_effect(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
3396
return has_side_effect(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
3399
return has_side_effect(tn->u.ops.left) ||
usr.bin/xlint/lint1/tree.c
3400
has_side_effect(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
3407
is_void_cast(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3410
return tn->tn_op == CVT && tn->tn_cast &&
usr.bin/xlint/lint1/tree.c
3411
tn->tn_type->t_tspec == VOID;
usr.bin/xlint/lint1/tree.c
3415
is_local_symbol(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3418
return tn->tn_op == LOAD &&
usr.bin/xlint/lint1/tree.c
3419
tn->u.ops.left->tn_op == NAME &&
usr.bin/xlint/lint1/tree.c
3420
tn->u.ops.left->u.sym->s_scl == AUTO;
usr.bin/xlint/lint1/tree.c
3424
is_int_constant_zero(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3427
return tn->tn_op == CON &&
usr.bin/xlint/lint1/tree.c
3428
tn->tn_type->t_tspec == INT &&
usr.bin/xlint/lint1/tree.c
3429
tn->u.value.u.integer == 0;
usr.bin/xlint/lint1/tree.c
3433
check_null_effect(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3437
!has_side_effect(tn) &&
usr.bin/xlint/lint1/tree.c
3438
!(is_void_cast(tn) && is_local_symbol(tn->u.ops.left)) &&
usr.bin/xlint/lint1/tree.c
3439
!(is_void_cast(tn) && is_int_constant_zero(tn->u.ops.left))) {
usr.bin/xlint/lint1/tree.c
3696
promote_c90(const tnode_t *tn, tspec_t t, bool farg)
usr.bin/xlint/lint1/tree.c
3698
if (tn->tn_type->t_bitfield) {
usr.bin/xlint/lint1/tree.c
3699
unsigned int width = tn->tn_type->t_bit_field_width;
usr.bin/xlint/lint1/tree.c
3732
promote(op_t op, bool farg, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3735
const type_t *otp = tn->tn_type;
usr.bin/xlint/lint1/tree.c
3738
return tn;
usr.bin/xlint/lint1/tree.c
3740
tspec_t nt = allow_c90 ? promote_c90(tn, ot, farg) : promote_trad(ot);
usr.bin/xlint/lint1/tree.c
3742
return tn;
usr.bin/xlint/lint1/tree.c
3749
return convert(op, 0, ntp, tn);
usr.bin/xlint/lint1/tree.c
3754
op_t op, int arg, const type_t *tp, const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3756
long double x = tn->u.value.u.floating;
usr.bin/xlint/lint1/tree.c
3773
op_t op, int arg, const type_t *tp, const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3778
query_message(2, type_name(tn->tn_type), type_name(tp));
usr.bin/xlint/lint1/tree.c
3781
query_message(1, type_name(tn->tn_type), type_name(tp));
usr.bin/xlint/lint1/tree.c
3782
if (tn->tn_op == CON && op != CVT)
usr.bin/xlint/lint1/tree.c
3783
check_lossy_floating_to_integer_conversion(op, arg, tp, tn);
usr.bin/xlint/lint1/tree.c
3834
tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3849
tnode_t *ptn = promote(NOOP, true, tn);
usr.bin/xlint/lint1/tree.c
3854
warning(259, arg, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
3864
can_represent(const type_t *tp, const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3870
integer_constraints c = ic_expr(tn);
usr.bin/xlint/lint1/tree.c
3882
debug_node(tn);
usr.bin/xlint/lint1/tree.c
3908
type_t *tp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3911
if (tn->tn_op == CON)
usr.bin/xlint/lint1/tree.c
3929
(tn->tn_op == PLUS || tn->tn_op == MINUS || tn->tn_op == MULT ||
usr.bin/xlint/lint1/tree.c
3930
tn->tn_op == SHL)) {
usr.bin/xlint/lint1/tree.c
3933
op_name(tn->tn_op));
usr.bin/xlint/lint1/tree.c
3936
if (should_warn_about_integer_conversion(tp, nt, tn, ot)) {
usr.bin/xlint/lint1/tree.c
3939
warning(298, expr_type_name(tn), type_name(tp), arg);
usr.bin/xlint/lint1/tree.c
3942
warning(132, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
3947
query_message(3, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
3951
convert_integer_from_pointer(op_t op, tspec_t nt, type_t *tp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
3954
if (tn->tn_op == CON)
usr.bin/xlint/lint1/tree.c
4056
convert_pointer_from_pointer(type_t *ntp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
4059
const type_t *otp = tn->tn_type;
usr.bin/xlint/lint1/tree.c
4112
convert(op_t op, int arg, type_t *tp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
4115
tspec_t ot = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
4118
check_prototype_conversion(arg, nt, ot, tp, tn);
usr.bin/xlint/lint1/tree.c
4127
convert_integer_from_integer(op, arg, nt, ot, tp, tn);
usr.bin/xlint/lint1/tree.c
4129
convert_integer_from_floating(op, arg, tp, tn);
usr.bin/xlint/lint1/tree.c
4131
convert_integer_from_pointer(op, nt, tp, tn);
usr.bin/xlint/lint1/tree.c
4137
type_name(tn->tn_type), type_name(tp));
usr.bin/xlint/lint1/tree.c
4141
if (is_null_pointer(tn)) {
usr.bin/xlint/lint1/tree.c
4144
convert_pointer_from_pointer(tp, tn);
usr.bin/xlint/lint1/tree.c
4151
ntn->tn_sys |= tn->tn_sys;
usr.bin/xlint/lint1/tree.c
4153
if (tn->tn_op != CON || nt == VOID) {
usr.bin/xlint/lint1/tree.c
4154
ntn->u.ops.left = tn;
usr.bin/xlint/lint1/tree.c
4158
&tn->u.value);
usr.bin/xlint/lint1/tree.c
4449
tnode_t *tn = build_integer_constant(SIZEOF_TSPEC, size_in_bytes);
usr.bin/xlint/lint1/tree.c
4450
tn->tn_system_dependent = true;
usr.bin/xlint/lint1/tree.c
4452
return tn;
usr.bin/xlint/lint1/tree.c
4491
tnode_t *tn = build_integer_constant(SIZEOF_TSPEC, offset_in_bytes);
usr.bin/xlint/lint1/tree.c
4492
tn->tn_system_dependent = true;
usr.bin/xlint/lint1/tree.c
4493
return tn;
usr.bin/xlint/lint1/tree.c
4607
null_pointer_offset(tnode_t *tn)
usr.bin/xlint/lint1/tree.c
4610
const tnode_t *n = tn;
usr.bin/xlint/lint1/tree.c
4624
return tn;
usr.bin/xlint/lint1/tree.c
4628
cast(tnode_t *tn, bool sys, type_t *tp)
usr.bin/xlint/lint1/tree.c
4631
if (tn == NULL)
usr.bin/xlint/lint1/tree.c
4634
tn = cconv(tn);
usr.bin/xlint/lint1/tree.c
4638
tspec_t ot = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
4647
return cast_to_union(tn, sys, tp);
usr.bin/xlint/lint1/tree.c
4659
tn = null_pointer_offset(tn);
usr.bin/xlint/lint1/tree.c
4665
if (!tp->t_subt->t_const && tn->tn_type->t_subt->t_const) {
usr.bin/xlint/lint1/tree.c
4668
warning(275, type_name(tn->tn_type));
usr.bin/xlint/lint1/tree.c
4674
&& types_compatible(tp, tn->tn_type, false, false, NULL))
usr.bin/xlint/lint1/tree.c
4676
query_message(6, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
4678
tn = convert(CVT, 0, tp, tn);
usr.bin/xlint/lint1/tree.c
4679
tn->tn_cast = true;
usr.bin/xlint/lint1/tree.c
4680
tn->tn_sys = sys;
usr.bin/xlint/lint1/tree.c
4682
return tn;
usr.bin/xlint/lint1/tree.c
4686
error(147, expr_type_name(tn), type_name(tp));
usr.bin/xlint/lint1/tree.c
4721
type_t *tp, tnode_t *tn)
usr.bin/xlint/lint1/tree.c
4726
if (typeok(FARG, call, arg, ln, tn)) {
usr.bin/xlint/lint1/tree.c
4728
if (!types_compatible(tp, tn->tn_type,
usr.bin/xlint/lint1/tree.c
4730
tn = convert(FARG, arg, tp, tn);
usr.bin/xlint/lint1/tree.c
4733
return tn;
usr.bin/xlint/lint1/tree.c
4859
integer_constant(tnode_t *tn, bool required)
usr.bin/xlint/lint1/tree.c
4862
if (tn != NULL)
usr.bin/xlint/lint1/tree.c
4863
tn = cconv(tn);
usr.bin/xlint/lint1/tree.c
4864
if (tn != NULL)
usr.bin/xlint/lint1/tree.c
4865
tn = promote(NOOP, false, tn);
usr.bin/xlint/lint1/tree.c
4869
if (tn == NULL) {
usr.bin/xlint/lint1/tree.c
4877
v->v_tspec = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
4879
if (tn->tn_op == CON) {
usr.bin/xlint/lint1/tree.c
4880
lint_assert(tn->tn_type->t_tspec == tn->u.value.v_tspec);
usr.bin/xlint/lint1/tree.c
4881
if (is_integer(tn->u.value.v_tspec)) {
usr.bin/xlint/lint1/tree.c
4883
tn->u.value.v_unsigned_since_c90;
usr.bin/xlint/lint1/tree.c
4884
v->u.integer = tn->u.value.u.integer;
usr.bin/xlint/lint1/tree.c
4887
v->u.integer = (int64_t)tn->u.value.u.floating;
usr.bin/xlint/lint1/tree.c
4913
expr(tnode_t *tn, bool used, bool cond, bool free_expr, bool is_do_while,
usr.bin/xlint/lint1/tree.c
4917
if (tn == NULL) { /* in case of errors */
usr.bin/xlint/lint1/tree.c
4926
check_expr_misc(tn, used, cond, !cond, false, false, false);
usr.bin/xlint/lint1/tree.c
4927
if (tn->tn_op == ASSIGN && !tn->tn_parenthesized) {
usr.bin/xlint/lint1/tree.c
4932
if (!modtab[tn->tn_op].m_has_side_effect) {
usr.bin/xlint/lint1/tree.c
4936
if (tn->tn_op != COMMA && !used && !cond)
usr.bin/xlint/lint1/tree.c
4937
check_null_effect(tn);
usr.bin/xlint/lint1/tree.c
4939
debug_node(tn);
usr.bin/xlint/lint1/tree.c
5038
check_expr_call(const tnode_t *tn, const tnode_t *ln,
usr.bin/xlint/lint1/tree.c
5044
outcall(tn, vctx || cond, retval_discarded);
usr.bin/xlint/lint1/tree.c
5046
const function_call *call = tn->u.call;
usr.bin/xlint/lint1/tree.c
5107
check_expr_misc(const tnode_t *tn, bool vctx, bool cond,
usr.bin/xlint/lint1/tree.c
5111
if (tn == NULL)
usr.bin/xlint/lint1/tree.c
5113
op_t op = tn->tn_op;
usr.bin/xlint/lint1/tree.c
5117
&& tn->u.call->func->tn_op == ADDR
usr.bin/xlint/lint1/tree.c
5118
&& tn->u.call->func->u.ops.left->tn_op == NAME;
usr.bin/xlint/lint1/tree.c
5120
const function_call *call = tn->u.call;
usr.bin/xlint/lint1/tree.c
5122
check_expr_call(tn, call->func,
usr.bin/xlint/lint1/tree.c
5124
bool discard = op == CVT && tn->tn_type->t_tspec == VOID;
usr.bin/xlint/lint1/tree.c
5133
lint_assert(has_operands(tn));
usr.bin/xlint/lint1/tree.c
5134
tnode_t *ln = tn->u.ops.left;
usr.bin/xlint/lint1/tree.c
5135
tnode_t *rn = tn->u.ops.right;
usr.bin/xlint/lint1/tree.c
5152
if (op == COLON && tn->tn_type->t_tspec == VOID)
usr.bin/xlint/lint1/tree.c
5154
bool discard = op == CVT && tn->tn_type->t_tspec == VOID;
usr.bin/xlint/lint1/tree.c
5192
constant_addr(const tnode_t *tn, const sym_t **symp, ptrdiff_t *offsp)
usr.bin/xlint/lint1/tree.c
5198
switch (tn->tn_op) {
usr.bin/xlint/lint1/tree.c
5200
if (tn->u.ops.right->tn_op == CVT)
usr.bin/xlint/lint1/tree.c
5201
return constant_addr(tn->u.ops.right, symp, offsp);
usr.bin/xlint/lint1/tree.c
5202
if (tn->u.ops.right->tn_op != CON)
usr.bin/xlint/lint1/tree.c
5207
if (tn->u.ops.left->tn_op == CON) {
usr.bin/xlint/lint1/tree.c
5208
offs1 = (ptrdiff_t)tn->u.ops.left->u.value.u.integer;
usr.bin/xlint/lint1/tree.c
5209
if (!constant_addr(tn->u.ops.right, &sym, &offs2))
usr.bin/xlint/lint1/tree.c
5211
} else if (tn->u.ops.right->tn_op == CON) {
usr.bin/xlint/lint1/tree.c
5212
offs2 = (ptrdiff_t)tn->u.ops.right->u.value.u.integer;
usr.bin/xlint/lint1/tree.c
5213
if (tn->tn_op == MINUS)
usr.bin/xlint/lint1/tree.c
5215
if (!constant_addr(tn->u.ops.left, &sym, &offs1))
usr.bin/xlint/lint1/tree.c
5224
if (tn->u.ops.left->tn_op == NAME) {
usr.bin/xlint/lint1/tree.c
5225
*symp = tn->u.ops.left->u.sym;
usr.bin/xlint/lint1/tree.c
5233
t = tn->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
5234
ot = tn->u.ops.left->tn_type->t_tspec;
usr.bin/xlint/lint1/tree.c
5254
return constant_addr(tn->u.ops.left, symp, offsp);
usr.bin/xlint/lint1/tree.c
5306
do_statement_expr(tnode_t *tn)
usr.bin/xlint/lint1/tree.c
5310
stmt_exprs->se_sym = tn != NULL
usr.bin/xlint/lint1/tree.c
5311
? mktempsym(block_dup_type(tn->tn_type))
usr.bin/xlint/lint1/tree.c
5322
tnode_t *tn;
usr.bin/xlint/lint1/tree.c
5326
tn = NULL; /* after a syntax error */
usr.bin/xlint/lint1/tree.c
5330
tn = build_name(se->se_sym, false);
usr.bin/xlint/lint1/tree.c
5338
return tn;
usr.bin/xlint/lint1/tree.c
603
ic_expr(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
607
lint_assert(is_integer(tn->tn_type->t_tspec));
usr.bin/xlint/lint1/tree.c
609
switch (tn->tn_op) {
usr.bin/xlint/lint1/tree.c
611
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
612
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
613
return ic_mult(tn->tn_type, lc, rc);
usr.bin/xlint/lint1/tree.c
615
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
616
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
617
return ic_div(tn->tn_type, lc, rc);
usr.bin/xlint/lint1/tree.c
619
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
620
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
621
return ic_mod(tn->tn_type, lc, rc);
usr.bin/xlint/lint1/tree.c
623
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
624
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
625
return ic_plus(tn->tn_type, lc, rc);
usr.bin/xlint/lint1/tree.c
627
if (tn->u.ops.left->tn_type->t_tspec == PTR)
usr.bin/xlint/lint1/tree.c
628
return ic_any(tn->tn_type);
usr.bin/xlint/lint1/tree.c
629
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
630
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
631
return ic_minus(tn->tn_type, lc, rc);
usr.bin/xlint/lint1/tree.c
633
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
634
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
635
return ic_shl(tn->tn_type, lc, rc);
usr.bin/xlint/lint1/tree.c
637
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
638
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
639
return ic_shr(tn->tn_type, lc, rc);
usr.bin/xlint/lint1/tree.c
641
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
642
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
645
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
646
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
647
return ic_bitxor(tn->tn_type, lc, rc);
usr.bin/xlint/lint1/tree.c
649
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
650
rc = ic_expr(tn->u.ops.right);
usr.bin/xlint/lint1/tree.c
653
lc = ic_expr(tn->u.ops.right->u.ops.left);
usr.bin/xlint/lint1/tree.c
654
rc = ic_expr(tn->u.ops.right->u.ops.right);
usr.bin/xlint/lint1/tree.c
657
return ic_con(tn->tn_type, &tn->u.value);
usr.bin/xlint/lint1/tree.c
659
if (!is_integer(tn->u.ops.left->tn_type->t_tspec))
usr.bin/xlint/lint1/tree.c
660
return ic_any(tn->tn_type);
usr.bin/xlint/lint1/tree.c
661
lc = ic_expr(tn->u.ops.left);
usr.bin/xlint/lint1/tree.c
662
return ic_cvt(tn->tn_type, tn->u.ops.left->tn_type, lc);
usr.bin/xlint/lint1/tree.c
664
return ic_call(tn->u.call);
usr.bin/xlint/lint1/tree.c
666
return ic_any(tn->tn_type);
usr.bin/xlint/lint1/tree.c
671
possible_bits(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
673
return ~ic_expr(tn).bclr;
usr.bin/xlint/lint1/tree.c
763
str_len(const tnode_t *tn)
usr.bin/xlint/lint1/tree.c
765
const buffer *buf = tn->u.str_literals;
usr.bin/xlint/lint1/tree.c
766
if (tn->tn_type->t_subt->t_tspec != CHAR)