Lines Matching defs:lens
45 #include "lens.h"
602 /* Usage of "string" as lens. */
646 /* We'll need to set the lens, so unshare. */
653 info->lens = &string_lens;
805 /* This also releases associated lens
822 /* We'll need to set the lens, so unshare. */
830 struct enum_lens *lens = malloc(sizeof(*lens));
831 if (lens == NULL) {
833 "malloc enum lens: %s", strerror(errno));
837 lens_init_enum(lens);
838 (*retp)->lens = &lens->super;
852 if (lens_enum_size(lens) > 0)
876 if (lens_enum_add(lens, key, 1, value, 1) < 0)
958 struct lens *lens;
969 static struct lens *
976 return lenses[i].lens;
1022 struct lens *lens = name2lens(str, &own_lens);
1025 if (lens != NULL) {
1028 /* Octal lens gets special treatment, because of
1030 if (lens == &octal_lens && **str != '(') {
1036 "expected type argument after the lens");
1047 if (own_lens && lens != NULL)
1048 lens_destroy(lens);
1053 if (lens != NULL && has_args) {
1059 * lens. */
1060 if (lens != NULL && unshare_type_info(loc, &info, ownp) < 0)
1063 if (lens != NULL) {
1064 info->lens = lens;
1086 info.lens = &blind_lens;
1221 * way to do this these days is to use the hide lens.