Lines Matching defs:dsp

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