Lines Matching refs:v1
898 explodeValues(__nis_value_t *v1, __nis_value_t *v2) { in explodeValues() argument
904 if (v1 == 0 || v1->numVals <= 0) in explodeValues()
907 return (cloneValue(v1, 1)); in explodeValues()
919 if (!v1->repeat && !v2->repeat) in explodeValues()
920 nv = v1->numVals * v2->numVals; in explodeValues()
921 else if (v1->repeat && !v2->repeat) in explodeValues()
923 else if (!v1->repeat && v2->repeat) in explodeValues()
924 nv = v1->numVals; in explodeValues()
937 if (!v1->repeat && !v2->repeat) { in explodeValues()
938 for (i1 = 0, n = 0; i1 < v1->numVals; i1++) { in explodeValues()
940 if (v1->type == vt_string) in explodeValues()
941 sbc2buf(myself, v1->val[i1].value, in explodeValues()
942 v1->val[i1].length, in explodeValues()
945 bc2buf(myself, v1->val[i1].value, in explodeValues()
946 v1->val[i1].length, in explodeValues()
963 } else if (v1->repeat && !v2->repeat) { in explodeValues()
965 for (i1 = 0, n = 0; i1 < v1->numVals; i1++) { in explodeValues()
966 if (v1->type == vt_string) in explodeValues()
967 sbc2buf(myself, v1->val[i1].value, in explodeValues()
968 v1->val[i1].length, in explodeValues()
971 bc2buf(myself, v1->val[i1].value, in explodeValues()
972 v1->val[i1].length, in explodeValues()
989 } else if (!v1->repeat && v2->repeat) { in explodeValues()
990 for (i1 = 0, n = 0; i1 < v1->numVals; i1++) { in explodeValues()
992 if (v1->type == vt_string) in explodeValues()
993 sbc2buf(myself, v1->val[i1].value, in explodeValues()
994 v1->val[i1].length, in explodeValues()
997 bc2buf(myself, v1->val[i1].value, in explodeValues()
998 v1->val[i1].length, in explodeValues()
1016 for (i1 = 0, n = 0; i1 < v1->numVals; i1++) { in explodeValues()
1018 if (v1->type == vt_string) in explodeValues()
1019 sbc2buf(myself, v1->val[i1].value, in explodeValues()
1020 v1->val[i1].length, in explodeValues()
1023 bc2buf(myself, v1->val[i1].value, in explodeValues()
1024 v1->val[i1].length, in explodeValues()
1049 v->type = (v1->type == vt_string) ? in explodeValues()
1602 concatenateValues(__nis_value_t *v1, __nis_value_t *v2) { in concatenateValues() argument
1607 if (v1 == 0 || v1->numVals <= 0) in concatenateValues()
1610 return (cloneValue(v1, 1)); in concatenateValues()
1612 if (v1->type != v2->type) in concatenateValues()
1615 n = v1->numVals + v2->numVals; in concatenateValues()
1624 v->type = v1->type; in concatenateValues()
1628 __nis_single_value_t *val = (a == 0) ? v1->val : v2->val; in concatenateValues()
1629 int numv = (a == 0) ? v1->numVals : in concatenateValues()