| /plan9/sys/src/cmd/gs/src/ |
| H A D | oper.h | 67 #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 D | opcheck.h | 29 #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 D | iref.h | 418 #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 D | gsrefct.h | 71 #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 D | gsstruct.h | 115 #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 D | istruct.h | 63 #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 D | gsmemory.h | 262 #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 D | ialloc.h | 44 #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 D | genarch.c | 199 #define PRINT_MAX(str, typ, tstr, l)\ in main() argument 203 print_ffs(f, sizeof(typ));\ in main()
|
| H A D | gdevpdfx.h | 149 #define pdf_resource_common(typ)\ argument 150 typ *next; /* next resource of this type */\
|
| /plan9/sys/src/cmd/cc/ |
| H A D | funct.c | 8 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 D | lex.c | 1204 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 D | dcl.c | 21 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 D | com64.c | 93 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 D | dpchk.c | 152 indchar = typ(TIND, types[TCHAR]); in arginit() 243 ty = typ(TIND, ty); in pragvararg()
|
| H A D | cc.y | 830 $$->type = typ(TARRAY, types[TCHAR]); 858 $$->type = typ(TARRAY, types[TRUNE]);
|
| /plan9/sys/src/cmd/spin/ |
| H A D | sym.c | 511 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 D | main.c | 610 && a->typ == t) in setaccess() 617 a->typ = t; in setaccess()
|
| H A D | spin.h | 46 int cnt, typ; /* parameter nr and, e.g., 's' or 'r' */ member
|
| /plan9/sys/src/cmd/cwfs/ |
| H A D | con.c | 488 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 D | cgen.c | 842 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 D | ospf.c | 156 uchar typ; member
|
| /plan9/sys/src/cmd/5c/ |
| H A D | cgen.c | 922 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 D | cgen.c | 937 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 D | gview.c | 1820 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()
|