Lines Matching defs:dsp
109 dt_scope_t *dsp = &yypcb->pcb_dstack;
110 dt_decl_t *ddp = dsp->ds_decl;
113 dsp->ds_decl = ddp->dd_next;
116 ddp = dsp->ds_decl;
123 dt_scope_t *dsp = &yypcb->pcb_dstack;
124 dt_decl_t *top = dsp->ds_decl;
134 dsp->ds_decl = ddp;
142 dt_scope_t *dsp = &yypcb->pcb_dstack;
145 dsp->ds_decl = NULL;
146 free(dsp->ds_ident);
147 dsp->ds_ident = NULL;
148 dsp->ds_ctfp = NULL;
149 dsp->ds_type = CTF_ERR;
150 dsp->ds_class = DT_DC_DEFAULT;
151 dsp->ds_enumval = -1;
159 dt_scope_t *dsp = &yypcb->pcb_dstack;
161 if (dsp->ds_class != DT_DC_DEFAULT && dsp->ds_class != DT_DC_REGISTER) {
167 *idp = dsp->ds_ident;
168 dsp->ds_ident = NULL;
193 dt_scope_t *dsp = &yypcb->pcb_dstack;
194 dt_decl_t *ddp = dsp->ds_decl;
196 if (dsp->ds_ident != NULL) {
202 dsp->ds_ident = name;
213 dt_scope_t *dsp = &yypcb->pcb_dstack;
215 if (dsp->ds_class != DT_DC_DEFAULT) {
220 dsp->ds_class = class;
388 dt_scope_t *dsp = &yypcb->pcb_dstack;
405 dsp->ds_decl = ddp->dd_next;
523 dt_scope_t *dsp = yypcb->pcb_dstack.ds_next;
536 if (dsp == NULL)
619 dtt.dtt_type = ctf_add_integer(dsp->ds_ctfp,
624 ctf_update(dsp->ds_ctfp) == CTF_ERR) {
627 ctf_errmsg(ctf_errno(dsp->ds_ctfp)));
630 dtt.dtt_ctfp = dsp->ds_ctfp;
640 if (dtt.dtt_ctfp != dsp->ds_ctfp &&
641 dtt.dtt_ctfp != ctf_parent_file(dsp->ds_ctfp)) {
643 dtt.dtt_type = ctf_add_type(dsp->ds_ctfp,
645 dtt.dtt_ctfp = dsp->ds_ctfp;
654 if (ctf_add_member(dsp->ds_ctfp, dsp->ds_type,
657 idname, ctf_errmsg(ctf_errno(dsp->ds_ctfp)));
712 dt_scope_t *dsp = yypcb->pcb_dstack.ds_next;
723 if (dsp == NULL)
726 assert(dsp->ds_decl->dd_kind == CTF_K_ENUM);
727 value = dsp->ds_enumval + 1; /* default is previous value plus one */
741 dsp->ds_ctfp, dsp->ds_type, dnp->dn_string, &value) != 0) {
761 if (ctf_add_enumerator(dsp->ds_ctfp, dsp->ds_type,
762 name, value) == CTF_ERR || ctf_update(dsp->ds_ctfp) == CTF_ERR) {
764 name, ctf_errmsg(ctf_errno(dsp->ds_ctfp)));
767 dsp->ds_enumval = value; /* save most recent value */
778 if (dsp->ds_ctfp == dtp->dt_ddefs->dm_ctfp) {
799 dt_node_type_assign(dnp, dsp->ds_ctfp, dsp->ds_type, B_FALSE);
817 idp->di_ctfp = dsp->ds_ctfp;
818 idp->di_type = dsp->ds_type;
1072 dt_scope_create(dt_scope_t *dsp)
1074 dsp->ds_decl = NULL;
1075 dsp->ds_next = NULL;
1076 dsp->ds_ident = NULL;
1077 dsp->ds_ctfp = NULL;
1078 dsp->ds_type = CTF_ERR;
1079 dsp->ds_class = DT_DC_DEFAULT;
1080 dsp->ds_enumval = -1;
1084 dt_scope_destroy(dt_scope_t *dsp)
1088 for (; dsp != NULL; dsp = nsp) {
1089 dt_decl_free(dsp->ds_decl);
1090 free(dsp->ds_ident);
1091 nsp = dsp->ds_next;
1092 if (dsp != &yypcb->pcb_dstack)
1093 free(dsp);
1101 dt_scope_t *dsp = malloc(sizeof (dt_scope_t));
1103 if (dsp == NULL)
1106 dsp->ds_decl = rsp->ds_decl;
1107 dsp->ds_next = rsp->ds_next;
1108 dsp->ds_ident = rsp->ds_ident;
1109 dsp->ds_ctfp = ctfp;
1110 dsp->ds_type = type;
1111 dsp->ds_class = rsp->ds_class;
1112 dsp->ds_enumval = rsp->ds_enumval;
1115 rsp->ds_next = dsp;
1122 dt_scope_t *dsp = rsp->ds_next;
1124 if (dsp == NULL)
1127 if (dsp->ds_ctfp != NULL && ctf_update(dsp->ds_ctfp) == CTF_ERR) {
1129 ctf_errmsg(ctf_errno(dsp->ds_ctfp)));
1135 rsp->ds_decl = dsp->ds_decl;
1136 rsp->ds_next = dsp->ds_next;
1137 rsp->ds_ident = dsp->ds_ident;
1138 rsp->ds_ctfp = dsp->ds_ctfp;
1139 rsp->ds_type = dsp->ds_type;
1140 rsp->ds_class = dsp->ds_class;
1141 rsp->ds_enumval = dsp->ds_enumval;
1143 free(dsp);