Lines Matching refs:to

4 Permission is hereby granted, free of charge, to any person obtaining a
6 to deal in the Software without restriction, including without limitation
7 the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 and/or sell copies of the Software, and to permit persons to whom the
9 Software is furnished to do so, subject to the following conditions:
27 Permission to use, copy, modify, and distribute this software and its
32 used in advertising or publicity pertaining to distribution of the
49 Permission to use, copy, modify, distribute, and sell this software and its
66 used in advertising or otherwise to promote the sale, use or other dealings
88 XrmRepresentation from, to;
125 _XtTableAddConverter(*table, rec->from, rec->to, rec->converter,
169 XrmValue to;
205 while ((p = *pp) && (p->from != from_type || p->to != to_type))
219 p->to = to_type;
252 XrmRepresentation to;
258 to = XrmStringToRepresentation(to_type);
264 _XtTableAddConverter(process->globalConverterTable, from, to,
268 _XtTableAddConverter(app->converterTable, from, to,
305 XrmRepresentation to;
311 to = XrmStringToRepresentation(to_type);
317 _XtTableAddConverter(process->globalConverterTable, from, to,
321 _XtTableAddConverter(app->converterTable, from, to,
354 XrmValuePtr to,
385 if (!to->addr)
419 p->to.size = to->size;
422 p->to.addr = NULL;
424 else if (to->size <= sizeof(p->to.addr)) {
426 XtMemmove(&p->to.addr, to->addr, to->size);
430 p->to.addr = (XPointer) _XtHeapAlloc(heap, to->size);
431 (void) memcpy(p->to.addr, (char *) to->addr, to->size);
449 toc.size = p->to.size;
451 toc.addr = (XPointer) &p->to.addr;
453 toc.addr = p->to.addr;
478 XtFree(p->to.addr);
625 "Cannot find resource name %s as argument to conversion",
649 XrmValuePtr to)
656 /* Try to find cache entry for conversion */
675 i--; /* do not move to while test, broken compilers */
685 to->size = p->to.size;
687 to->addr = (XPointer) &p->to.addr;
689 to->addr = p->to.addr;
697 (*to).size = 0;
698 (*to).addr = NULL;
699 (*converter) (args, &num_args, from, to);
701 * or app context from which to compute the persistence */
704 from, to, (to->addr != NULL), hash, False, False,
735 XrmValuePtr to,
749 (dpy, args, &num_args, from, to, &closure);
754 /* Try to find cache entry for conversion */
776 i--; /* do not move to while test, broken compilers */
788 if (to->addr) { /* new-style call */
789 if (to->size < p->to.size) {
790 to->size = p->to.size;
794 to->size = p->to.size;
796 XtMemmove(to->addr, &p->to.addr, to->size);
799 (void) memmove((char *) to->addr,
800 (char *) p->to.addr, to->size);
804 to->size = p->to.size;
806 to->addr = (XPointer) &p->to.addr;
808 to->addr = p->to.addr;
834 unsigned int supplied_size = to->size;
839 (*(XtTypeConverter) converter) (dpy, args, &num_args, from, to,
842 if (retval == False && supplied_size < to->size) {
861 p = CacheEnter(heap, converter, args, num_args, from, to, retval,
878 XrmValuePtr to,
892 retval = CallConverter(dpy, converter, args, num_args, from, to,
903 register XrmValuePtr to,
915 if (from_type == p->from && to_type == p->to) {
933 from, to, cache_ref_return, p);
943 if (to->addr) { /* new-style caller */
944 if (to->size >= tempTo.size) {
946 *(String *) (to->addr) = tempTo.addr;
948 XtMemmove(to->addr, tempTo.addr, tempTo.size);
952 to->size = tempTo.size;
955 *to = tempTo;
975 "No type converter registered for '%s' to '%s' conversion.",
987 XrmValuePtr to)
997 /* It's not safe to ref count these resources, 'cause we
1002 to->addr = NULL;
1003 to->size = 0;
1004 _XtConvert(widget, from_type, from, to_type, to, /*&ref */ NULL);
1013 (*to) = *from;
1022 XrmValuePtr to)
1039 if (!to->addr) {
1042 to->addr = local_valueP;
1043 to->size = local_valueS;
1046 if (!_XtConvert(object, from_type, from, to_type, to, &ref)) {
1047 if (local && (to->size > local_valueS)) {
1048 to->addr =
1049 local_valueP = _XtHeapAlloc(&globalHeap, to->size);
1050 local_valueS = to->size;
1055 to->addr = NULL;
1056 to->size = 0;
1070 } while (local /* && local_valueS < to->size */ );
1072 if (to->addr) {
1073 if (to->size < from->size) {
1074 to->size = from->size;
1079 (void) memmove(to->addr, from->addr, from->size);
1080 to->size = from->size;
1083 *to = *from;