Lines Matching full:dsp
112 dt_scope_t *dsp = &yypcb->pcb_dstack; in dt_decl_reset() local
113 dt_decl_t *ddp = dsp->ds_decl; in dt_decl_reset()
116 dsp->ds_decl = ddp->dd_next; in dt_decl_reset()
119 ddp = dsp->ds_decl; in dt_decl_reset()
126 dt_scope_t *dsp = &yypcb->pcb_dstack; in dt_decl_push() local
127 dt_decl_t *top = dsp->ds_decl; in dt_decl_push()
137 dsp->ds_decl = ddp; in dt_decl_push()
145 dt_scope_t *dsp = &yypcb->pcb_dstack; in dt_decl_pop() local
148 dsp->ds_decl = NULL; in dt_decl_pop()
149 free(dsp->ds_ident); in dt_decl_pop()
150 dsp->ds_ident = NULL; in dt_decl_pop()
151 dsp->ds_ctfp = NULL; in dt_decl_pop()
152 dsp->ds_type = CTF_ERR; in dt_decl_pop()
153 dsp->ds_class = DT_DC_DEFAULT; in dt_decl_pop()
154 dsp->ds_enumval = -1; in dt_decl_pop()
162 dt_scope_t *dsp = &yypcb->pcb_dstack; in dt_decl_pop_param() local
164 if (dsp->ds_class != DT_DC_DEFAULT && dsp->ds_class != DT_DC_REGISTER) { in dt_decl_pop_param()
170 *idp = dsp->ds_ident; in dt_decl_pop_param()
171 dsp->ds_ident = NULL; in dt_decl_pop_param()
196 dt_scope_t *dsp = &yypcb->pcb_dstack; in dt_decl_ident() local
197 dt_decl_t *ddp = dsp->ds_decl; in dt_decl_ident()
199 if (dsp->ds_ident != NULL) { in dt_decl_ident()
205 dsp->ds_ident = name; in dt_decl_ident()
216 dt_scope_t *dsp = &yypcb->pcb_dstack; in dt_decl_class() local
218 if (dsp->ds_class != DT_DC_DEFAULT) { in dt_decl_class()
223 dsp->ds_class = class; in dt_decl_class()
371 dt_scope_t *dsp = &yypcb->pcb_dstack; in dt_decl_array() local
388 dsp->ds_decl = ddp->dd_next; in dt_decl_array()
506 dt_scope_t *dsp = yypcb->pcb_dstack.ds_next; in dt_decl_member() local
519 if (dsp == NULL) in dt_decl_member()
602 dtt.dtt_type = ctf_add_integer(dsp->ds_ctfp, in dt_decl_member()
607 ctf_update(dsp->ds_ctfp) == CTF_ERR) { in dt_decl_member()
610 ctf_errmsg(ctf_errno(dsp->ds_ctfp))); in dt_decl_member()
613 dtt.dtt_ctfp = dsp->ds_ctfp; in dt_decl_member()
623 if (dtt.dtt_ctfp != dsp->ds_ctfp && in dt_decl_member()
624 dtt.dtt_ctfp != ctf_parent_file(dsp->ds_ctfp)) { in dt_decl_member()
626 dtt.dtt_type = ctf_add_type(dsp->ds_ctfp, in dt_decl_member()
628 dtt.dtt_ctfp = dsp->ds_ctfp; in dt_decl_member()
637 if (ctf_add_member(dsp->ds_ctfp, dsp->ds_type, in dt_decl_member()
640 idname, ctf_errmsg(ctf_errno(dsp->ds_ctfp))); in dt_decl_member()
695 dt_scope_t *dsp = yypcb->pcb_dstack.ds_next; in dt_decl_enumerator() local
707 if (dsp == NULL) in dt_decl_enumerator()
710 assert(dsp->ds_decl->dd_kind == CTF_K_ENUM); in dt_decl_enumerator()
711 value = dsp->ds_enumval + 1; /* default is previous value plus one */ in dt_decl_enumerator()
725 dsp->ds_ctfp, dsp->ds_type, dnp->dn_string, &value) != 0) { in dt_decl_enumerator()
745 if (ctf_add_enumerator(dsp->ds_ctfp, dsp->ds_type, in dt_decl_enumerator()
746 name, value) == CTF_ERR || ctf_update(dsp->ds_ctfp) == CTF_ERR) { in dt_decl_enumerator()
748 name, ctf_errmsg(ctf_errno(dsp->ds_ctfp))); in dt_decl_enumerator()
751 dsp->ds_enumval = value; /* save most recent value */ in dt_decl_enumerator()
762 if (dsp->ds_ctfp == dtp->dt_ddefs->dm_ctfp) { in dt_decl_enumerator()
783 dt_node_type_assign(dnp, dsp->ds_ctfp, dsp->ds_type, B_FALSE); in dt_decl_enumerator()
801 idp->di_ctfp = dsp->ds_ctfp; in dt_decl_enumerator()
802 idp->di_type = dsp->ds_type; in dt_decl_enumerator()
1056 dt_scope_create(dt_scope_t *dsp) in dt_scope_create() argument
1058 dsp->ds_decl = NULL; in dt_scope_create()
1059 dsp->ds_next = NULL; in dt_scope_create()
1060 dsp->ds_ident = NULL; in dt_scope_create()
1061 dsp->ds_ctfp = NULL; in dt_scope_create()
1062 dsp->ds_type = CTF_ERR; in dt_scope_create()
1063 dsp->ds_class = DT_DC_DEFAULT; in dt_scope_create()
1064 dsp->ds_enumval = -1; in dt_scope_create()
1068 dt_scope_destroy(dt_scope_t *dsp) in dt_scope_destroy() argument
1072 for (; dsp != NULL; dsp = nsp) { in dt_scope_destroy()
1073 dt_decl_free(dsp->ds_decl); in dt_scope_destroy()
1074 free(dsp->ds_ident); in dt_scope_destroy()
1075 nsp = dsp->ds_next; in dt_scope_destroy()
1076 if (dsp != &yypcb->pcb_dstack) in dt_scope_destroy()
1077 free(dsp); in dt_scope_destroy()
1085 dt_scope_t *dsp = malloc(sizeof (dt_scope_t)); in dt_scope_push() local
1087 if (dsp == NULL) in dt_scope_push()
1090 dsp->ds_decl = rsp->ds_decl; in dt_scope_push()
1091 dsp->ds_next = rsp->ds_next; in dt_scope_push()
1092 dsp->ds_ident = rsp->ds_ident; in dt_scope_push()
1093 dsp->ds_ctfp = ctfp; in dt_scope_push()
1094 dsp->ds_type = type; in dt_scope_push()
1095 dsp->ds_class = rsp->ds_class; in dt_scope_push()
1096 dsp->ds_enumval = rsp->ds_enumval; in dt_scope_push()
1099 rsp->ds_next = dsp; in dt_scope_push()
1106 dt_scope_t *dsp = rsp->ds_next; in dt_scope_pop() local
1108 if (dsp == NULL) in dt_scope_pop()
1111 if (dsp->ds_ctfp != NULL && ctf_update(dsp->ds_ctfp) == CTF_ERR) { in dt_scope_pop()
1113 ctf_errmsg(ctf_errno(dsp->ds_ctfp))); in dt_scope_pop()
1119 rsp->ds_decl = dsp->ds_decl; in dt_scope_pop()
1120 rsp->ds_next = dsp->ds_next; in dt_scope_pop()
1121 rsp->ds_ident = dsp->ds_ident; in dt_scope_pop()
1122 rsp->ds_ctfp = dsp->ds_ctfp; in dt_scope_pop()
1123 rsp->ds_type = dsp->ds_type; in dt_scope_pop()
1124 rsp->ds_class = dsp->ds_class; in dt_scope_pop()
1125 rsp->ds_enumval = dsp->ds_enumval; in dt_scope_pop()
1127 free(dsp); in dt_scope_pop()