Home
last modified time | relevance | path

Searched refs:typ (Results 1 – 25 of 39) sorted by relevance

12

/plan9/sys/src/cmd/gs/src/
H A Doper.h67 #define check_type(orf,typ)\ argument
68 if ( !r_has_type(&orf,typ) ) return_op_typecheck(&orf)
73 #define check_type_access(orf,typ,acc1)\ argument
74 if ( !r_has_type_attrs(&orf,typ,acc1) )\
75 return_error((!r_has_type(&orf,typ) ? check_type_failed(&orf) :\
77 #define check_read_type(orf,typ)\ argument
78 check_type_access(orf,typ,a_read)
79 #define check_write_type(orf,typ)\ argument
80 check_type_access(orf,typ,a_write)
H A Dopcheck.h29 #define check_type_only(rf,typ)\ argument
30 BEGIN if ( !r_has_type(&rf,typ) ) return_error(e_typecheck); END
52 #define check_type_access_only(rf,typ,acc1)\ argument
54 if ( !r_has_type_attrs(&rf,typ,acc1) )\
55 return_error((!r_has_type(&rf,typ) ? e_typecheck : e_invalidaccess));\
57 #define check_read_type_only(rf,typ)\ argument
58 check_type_access_only(rf,typ,a_read)
59 #define check_write_type_only(rf,typ)\ argument
60 check_type_access_only(rf,typ,a_write)
H A Diref.h418 #define _REF_HAS_MASKED_TYPE_ATTRS(rp,typ,tspan,mask)\ argument
421 (((typ) << r_type_shift) + (mask)))
452 # define r_has_type(rp,typ) (r_type(rp) == (typ)) argument
455 # define r_has_type(rp,typ) r_has_type_attrs(rp,typ,0) /* see below */ argument
483 #define r_set_type(rp,typ) ((rp)->tas.type_attrs = (typ) << r_type_shift) argument
490 #define r_has_type_attrs(rp,typ,mask)\ argument
491 _REF_HAS_MASKED_TYPE_ATTRS(rp,typ,1,mask)
492 #define r_set_type_attrs(rp,typ,mask)\ argument
493 ((rp)->tas.type_attrs = ((typ) << r_type_shift) + (mask))
512 #define type_xe_value(typ,xe) _REF_TAS_TYPE_XE(((typ) << r_type_shift) + (xe)) argument
[all …]
H A Dgsrefct.h71 #define rc_alloc_struct_n(vp, typ, pstyp, mem, errstat, cname, rcinit)\ argument
73 if ( ((vp) = gs_alloc_struct(mem, typ, pstyp, cname)) == 0 ) {\
79 #define rc_alloc_struct_0(vp, typ, pstype, mem, errstat, cname)\ argument
80 rc_alloc_struct_n(vp, typ, pstype, mem, errstat, cname, 0)
81 #define rc_alloc_struct_1(vp, typ, pstype, mem, errstat, cname)\ argument
82 rc_alloc_struct_n(vp, typ, pstype, mem, errstat, cname, 1)
104 #define rc_allocate_struct(vp, typ, pstype, mem, errstat, cname)\ argument
109 rc_alloc_struct_1(vp, typ, pstype, mem, errstat, cname);\
118 #define rc_unshare_struct(vp, typ, pstype, mem, errstat, cname)\ argument
121 typ *new;\
[all …]
H A Dgsstruct.h115 #define ptr_proc_reloc(proc, typ)\ argument
116 typ *proc(const typ *, gc_state_t *)
245 #define GC_OBJ_ELT(typ, elt)\ argument
246 { GC_ELT_OBJ, offset_of(typ, elt) }
247 #define GC_OBJ_ELT2(typ, e1, e2)\ argument
248 GC_OBJ_ELT(typ, e1), GC_OBJ_ELT(typ, e2)
249 #define GC_OBJ_ELT3(typ, e1, e2, e3)\ argument
250 GC_OBJ_ELT(typ, e1), GC_OBJ_ELT(typ, e2), GC_OBJ_ELT(typ, e3)
251 #define GC_STRING_ELT(typ, elt)\ argument
252 { GC_ELT_STRING, offset_of(typ, elt) }
[all …]
H A Distruct.h63 #define ENUM_RETURN_REF_MEMBER(typ, memb)\ argument
64 ENUM_RETURN_REF(&((typ *)vptr)->memb)
67 #define RELOC_REF_PTR_MEMBER(typ, memb)\ argument
68 RELOC_REF_PTR_VAR(((typ *)vptr)->memb)
H A Dgsmemory.h262 #define gs_alloc_struct(mem, typ, pstype, cname)\ argument
263 (typ *)(*(mem)->procs.alloc_struct)(mem, pstype, cname)
265 #define gs_alloc_struct_immovable(mem, typ, pstype, cname)\ argument
266 (typ *)(*(mem)->procs.alloc_struct_immovable)(mem, pstype, cname)
290 #define gs_alloc_struct_array(mem, nelts, typ, pstype, cname)\ argument
291 (typ *)(*(mem)->procs.alloc_struct_array)(mem, nelts, pstype, cname)
293 #define gs_alloc_struct_array_immovable(mem, nelts, typ, pstype, cname)\ argument
294 (typ *)(*(mem)->procs.alloc_struct_array_immovable)(mem, nelts, pstype, cname)
H A Dialloc.h44 #define ialloc_struct(typ, pstype, cname)\ argument
45 gs_alloc_struct(imemory, typ, pstype, cname)
48 #define ialloc_struct_array(nelts, typ, pstype, cname)\ argument
49 gs_alloc_struct_array(imemory, nelts, typ, pstype, cname)
H A Dgenarch.c199 #define PRINT_MAX(str, typ, tstr, l)\ in main() argument
203 print_ffs(f, sizeof(typ));\ in main()
H A Dgdevpdfx.h149 #define pdf_resource_common(typ)\ argument
150 typ *next; /* next resource of this type */\
/plan9/sys/src/cmd/cc/
H A Dfunct.c8 char typ; member
246 f1 = typ(TFUNC, t); in dclfunct()
250 f2 = typ(TFUNC, types[TINT]); in dclfunct()
254 f3 = typ(TFUNC, t); in dclfunct()
255 f3->down = typ(TIND, t); in dclfunct()
258 f4 = typ(TFUNC, t); in dclfunct()
269 switch(ftabinit[i].typ) { in dclfunct()
271 diag(Z, "dclfunct op missing %d\n", ftabinit[i].typ); in dclfunct()
304 f1 = typ(TFUNC, t); in dclfunct()
313 f1 = typ(TFUNC, types[o]); in dclfunct()
H A Dlex.c1204 types[TCHAR] = typ(TCHAR, T); in cinit()
1205 types[TUCHAR] = typ(TUCHAR, T); in cinit()
1206 types[TSHORT] = typ(TSHORT, T); in cinit()
1207 types[TUSHORT] = typ(TUSHORT, T); in cinit()
1208 types[TINT] = typ(TINT, T); in cinit()
1209 types[TUINT] = typ(TUINT, T); in cinit()
1210 types[TLONG] = typ(TLONG, T); in cinit()
1211 types[TULONG] = typ(TULONG, T); in cinit()
1212 types[TVLONG] = typ(TVLONG, T); in cinit()
1213 types[TUVLONG] = typ(TUVLONG, T); in cinit()
[all …]
H A Ddcl.c21 t = typ(TARRAY, t); in dodecl()
39 t = typ(TIND, t); in dodecl()
45 t = typ(TFUNC, t); in dodecl()
643 t = typ(TFUNC, n->left->sym->type->link); in argmark()
644 t->down = typ(TOLD, T); in argmark()
870 t = typ(TXXX, T); in fnproto1()
877 return typ(TINT, T); in fnproto1()
880 return typ(TDOT, T); in fnproto1()
1127 s->suetag = typ(et, T); in dotag()
1184 t = typ(TIND, t->link); in paramconv()
[all …]
H A Dcom64.c93 fntypes[type] = typ(TFUNC, types[type]); in fvn()
509 l->type = typ(TIND, l->left->type); in com64()
539 t->type = typ(TIND, a->type); in com64()
543 t->type = typ(TIND, l->type); in com64()
H A Ddpchk.c152 indchar = typ(TIND, types[TCHAR]); in arginit()
243 ty = typ(TIND, ty); in pragvararg()
H A Dcc.y830 $$->type = typ(TARRAY, types[TCHAR]);
858 $$->type = typ(TARRAY, types[TRUNE]);
/plan9/sys/src/cmd/spin/
H A Dsym.c511 int typ; char *nm; member
531 if (a->typ == 'r') in chan_check()
533 else if (a->typ == 's') in chan_check()
542 if (a->typ == xx[i].typ) b++; in chan_check()
546 if (a->typ == xx[i].typ) in chan_check()
H A Dmain.c610 && a->typ == t) in setaccess()
617 a->typ = t; in setaccess()
H A Dspin.h46 int cnt, typ; /* parameter nr and, e.g., 's' or 'r' */ member
/plan9/sys/src/cmd/cwfs/
H A Dcon.c488 ckblock(Device *d, Off a, int typ, Off qpath) in ckblock() argument
495 checktag(p, typ, qpath); in ckblock()
504 int i, mod, typ; in doclean() local
509 typ = Tfile; in doclean()
511 typ = Tdir; in doclean()
514 ckblock(p->dev, d->dblock[i], typ, qpath); in doclean()
/plan9/sys/src/cmd/kc/
H A Dcgen.c842 nod1.type = typ(TIND, n->type); in sugen()
886 nod2.type = typ(TIND, t); in sugen()
971 nod2.type = typ(TIND, t); in sugen()
/plan9/sys/src/cmd/ip/snoopy/
H A Dospf.c156 uchar typ; member
/plan9/sys/src/cmd/5c/
H A Dcgen.c922 nod1.type = typ(TIND, n->type); in sugen()
966 nod2.type = typ(TIND, t); in sugen()
1050 nod2.type = typ(TIND, t); in sugen()
/plan9/sys/src/cmd/vc/
H A Dcgen.c937 nod1.type = typ(TIND, n->type); in sugen()
981 nod2.type = typ(TIND, t); in sugen()
1065 nod2.type = typ(TIND, t); in sugen()
/plan9/sys/src/cmd/
H A Dgview.c1820 e_index typ; /* What type of action */ member
1849 switch (unact->typ) { in init_e_menu()
1897 e_action* save_act(e_action* a0, e_index typ) in save_act() argument
1905 a->typ = typ; in save_act()
1933 switch(a->typ) { in do_undo()

12