Lines Matching defs:dest
166 struct editentry *dest; /* Buffer to hold entry to update. */
168 dest = editentry_lookup(name);
169 assert(dest != NULL);
171 dest->type = letter;
172 dest->size = count; /* We get the real size now. */
174 switch (dest->type) {
178 dest->value.ivalue = (intptr_t)arg;
236 struct editentry *dest; /* Modepage entry to update. */
255 if ((dest = editentry_lookup(name)) == NULL)
257 if (!dest->editable && editonly)
260 switch (dest->type) {
265 resolution = (dest->type == 'i')? 8: 1;
269 if (ival > RESOLUTION_MAX(dest->size) || ival < 0) {
270 int newival = (ival < 0)? 0: RESOLUTION_MAX(dest->size);
275 if (dest->value.ivalue != ival)
277 dest->value.ivalue = ival;
282 if ((cval = malloc(dest->size + 1)) == NULL)
284 bzero(cval, dest->size + 1);
285 strncpy(cval, newvalue, dest->size);
286 if (dest->type == 'z') {
290 for (convertend2 = cval + dest->size;
298 if (strncmp(dest->value.svalue, cval, dest->size) == 0) {
303 if (dest->value.svalue != NULL) {
305 free(dest->value.svalue);
306 dest->value.svalue = NULL;
308 dest->value.svalue = cval;