Lines Matching defs:type

103 #define	DFLTPRTOP(pctl, type) \
104 ((pctl)->nvprt_dfltops->print_##type.op)
106 #define DFLTPRTOPARG(pctl, type) \
107 ((pctl)->nvprt_dfltops->print_##type.arg)
109 #define CUSTPRTOP(pctl, type) \
110 ((pctl)->nvprt_custops->print_##type.op)
112 #define CUSTPRTOPARG(pctl, type) \
113 ((pctl)->nvprt_custops->print_##type.arg)
115 #define RENDER(pctl, type, nvl, name, val) \
118 if ((pctl)->nvprt_custops && CUSTPRTOP(pctl, type)) { \
119 done = CUSTPRTOP(pctl, type)(pctl, \
120 CUSTPRTOPARG(pctl, type), nvl, name, val); \
123 (void) DFLTPRTOP(pctl, type)(pctl, \
124 DFLTPRTOPARG(pctl, type), nvl, name, val); \
129 #define ARENDER(pctl, type, nvl, name, arrp, count) \
132 if ((pctl)->nvprt_custops && CUSTPRTOP(pctl, type)) { \
133 done = CUSTPRTOP(pctl, type)(pctl, \
134 CUSTPRTOPARG(pctl, type), nvl, name, arrp, count); \
137 (void) DFLTPRTOP(pctl, type)(pctl, \
138 DFLTPRTOPARG(pctl, type), nvl, name, arrp, count); \
183 * vtype - C type for the member value
184 * ptype - C type to cast value to for printing
419 #define NVLIST_PRINTCTL_REPLACE(type, vtype) \
421 nvlist_prtctlop_##type(nvlist_prtctl_t pctl, \
425 CUSTPRTOP(pctl, type) = func; \
426 CUSTPRTOPARG(pctl, type) = private; \
445 #define NVLIST_PRINTCTL_AREPLACE(type, vtype) \
447 nvlist_prtctlop_##type(nvlist_prtctl_t pctl, \
451 CUSTPRTOP(pctl, type) = func; \
452 CUSTPRTOPARG(pctl, type) = private; \
580 data_type_t type = nvpair_type(nvp);
585 switch (type) {
747 (void) fprintf(fp, " unknown data type (%d)", type);
769 #define NVP(elem, type, vtype, ptype, format) { \
772 (void) nvpair_value_##type(elem, &value); \
777 #define NVPA(elem, type, vtype, ptype, format) { \
781 (void) nvpair_value_##type(elem, &value, &count); \
911 (void) printf(dgettext(TEXT_DOMAIN, "bad config type "
928 * converted, depending on the type of 'nvp', prior to match. For numeric
930 * is an array type, 'ai' is the index into the array against which we are
1247 * unknown/unsupported data type