Lines Matching defs:dnp

77 dt_pragma_attributes(const char *prname, dt_node_t *dnp)
85 if (dnp == NULL || dnp->dn_kind != DT_NODE_IDENT ||
86 dnp->dn_list == NULL || dnp->dn_list->dn_kind != DT_NODE_IDENT) {
91 if (dtrace_str2attr(dnp->dn_string, &attr) == -1) {
96 dnp = dnp->dn_list;
97 name = dnp->dn_string;
100 dnp = dnp->dn_list;
101 name = dnp->dn_string;
103 dnp = dnp->dn_list;
104 part = dnp->dn_string;
160 dt_pragma_binding(const char *prname, dt_node_t *dnp)
167 if (dnp == NULL || dnp->dn_kind != DT_NODE_STRING ||
168 dnp->dn_list == NULL || dnp->dn_list->dn_kind != DT_NODE_IDENT) {
173 if (dt_version_str2num(dnp->dn_string, &vers) == -1) {
178 name = dnp->dn_list->dn_string;
313 dt_pragma_error(const char *prname, dt_node_t *dnp)
319 for (enp = dnp; enp != NULL; enp = enp->dn_list) {
328 for (enp = dnp; enp != NULL; enp = enp->dn_list) {
341 dt_pragma_ident(const char *prname, dt_node_t *dnp)
347 dt_pragma_option(const char *prname, dt_node_t *dnp)
352 if (dnp == NULL || dnp->dn_kind != DT_NODE_IDENT) {
357 if (dnp->dn_list != NULL) {
362 opt = strdupa(dnp->dn_string);
393 dt_pragma_line(const char *prname, dt_node_t *dnp)
395 dt_node_t *fnp = dnp ? dnp->dn_list : NULL;
398 if ((dnp == NULL || dnp->dn_kind != DT_NODE_INT) ||
434 yylineno = dnp->dn_value;
470 dt_node_t *dnp;
473 for (dnp = pnp; dnp != NULL; dnp = dnp->dn_list) {
474 if (dnp->dn_kind == DT_NODE_INT) {
475 dt_pragma_line("line", dnp);
479 if (dnp->dn_kind != DT_NODE_IDENT)
483 strcmp(dnp->dn_string, "pragma") == 0) {
489 strcmp(dnp->dn_string, "D") == 0) {
496 strcmp(dpd->dpd_name, dnp->dn_string) == 0)
503 dpd->dpd_func(dpd->dpd_name, dnp->dn_list);
511 "#%s\n", dnp->dn_string);
518 dnp->dn_string);