Lines Matching defs:dnp

307 	dt_node_t *dnp;
309 for (dnp = flist; dnp != fnp && dnp != NULL; dnp = dnp->dn_list) {
310 if (dnp->dn_string != NULL &&
311 strcmp(dnp->dn_string, fnp->dn_string) == 0)
333 dt_node_t *dnp;
335 for (dnp = plist; dnp != NULL; dnp = dnp->dn_list, i++) {
337 if (dnp->dn_type == CTF_ERR && !(flags & DT_DP_VARARGS)) {
338 dnerror(dnp, D_DECL_PROTO_VARARGS, "%s prototype may "
342 if (dt_node_is_dynamic(dnp) && !(flags & DT_DP_DYNAMIC)) {
343 dnerror(dnp, D_DECL_PROTO_TYPE, "%s prototype may not "
345 kind, dt_node_type_name(dnp, n, sizeof (n)),
346 dnp->dn_string ? dnp->dn_string : "(anonymous)", i);
349 is_void = dt_node_is_void(dnp);
353 dnerror(dnp, D_DECL_PROTO_TYPE, "%s prototype may not "
355 kind, dt_node_type_name(dnp, n, sizeof (n)),
356 dnp->dn_string ? dnp->dn_string : "(anonymous)", i);
359 if (is_void && dnp->dn_string != NULL) {
360 dnerror(dnp, D_DECL_PROTO_NAME, "void parameter may "
361 "not have a name: %s\n", dnp->dn_string);
364 if (dnp->dn_string != NULL &&
365 dt_decl_protoform(dnp, flist) != form) {
366 dnerror(dnp, D_DECL_PROTO_FORM, "parameter is "
368 form ? "not" : "already", kind, dnp->dn_string, i);
371 if (dnp->dn_string == NULL &&
373 dnerror(dnp, D_DECL_PROTO_NAME, "parameter declaration "
385 dt_decl_array(dt_node_t *dnp)
401 if (dnp != NULL && dnp->dn_kind == DT_NODE_TYPE) {
414 if (dnp != NULL && dnp->dn_kind != DT_NODE_TYPE) {
415 dnp = ddp->dd_node = dt_node_cook(dnp, DT_IDFLG_REF);
417 if (dt_node_is_posconst(dnp) == 0) {
423 if (dnp->dn_value > UINT_MAX)
426 } else if (dnp != NULL) {
427 ddp->dd_node = dnp;
428 (void) dt_decl_prototype(dnp, dnp, "array", DT_DP_ANON);
446 dt_decl_func(dt_decl_t *pdp, dt_node_t *dnp)
450 ddp->dd_node = dnp;
452 (void) dt_decl_prototype(dnp, dnp, "function",
521 dt_decl_member(dt_node_t *dnp)
542 if (dnp == NULL && ident == NULL)
584 if (dnp != NULL) {
585 dnp = dt_node_cook(dnp, DT_IDFLG_REF);
593 if (ident == NULL && dnp->dn_kind == DT_NODE_INT &&
594 dnp->dn_value == 0) {
595 dt_node_free(dnp);
599 if (dt_node_is_posconst(dnp) == 0) {
611 if (dnp->dn_value > cte.cte_bits) {
617 cte.cte_bits = (uint_t)dnp->dn_value;
631 dt_node_free(dnp);
710 dt_decl_enumerator(char *s, dt_node_t *dnp)
739 if (dnp != NULL) {
740 if (dnp->dn_kind != DT_NODE_IDENT || ctf_enum_value(
741 dsp->ds_ctfp, dsp->ds_type, dnp->dn_string, &value) != 0) {
742 dnp = dt_node_cook(dnp, DT_IDFLG_REF);
744 if (dnp->dn_kind != DT_NODE_INT) {
750 if ((intmax_t)dnp->dn_value > INT_MAX ||
751 (intmax_t)dnp->dn_value < INT_MIN) {
756 value = (int)dnp->dn_value;
758 dt_node_free(dnp);
798 dnp = dt_node_int(value);
799 dt_node_type_assign(dnp, dsp->ds_ctfp, dsp->ds_type, B_FALSE);
808 assert(yypcb->pcb_list == dnp);
809 yypcb->pcb_list = dnp->dn_link;
810 dnp->dn_link = NULL;
813 inp->din_list = dnp;
814 inp->din_root = dnp;