Lines Matching refs:dstlen
84 int dstlen; in convert_data() local
86 dstlen = 0; in convert_data()
94 ++dstlen; in convert_data()
100 ++dstlen; in convert_data()
102 ++dstlen; in convert_data()
108 ++dstlen; in convert_data()
113 ++dstlen; in convert_data()
119 ++dstlen; in convert_data()
123 ++dstlen; in convert_data()
124 ++dstlen; in convert_data()
129 ++dstlen; in convert_data()
133 ++dstlen; in convert_data()
142 dstlen = sizeof(int)+srclen; in convert_data()
145 return(dstlen); in convert_data()
151 int dstlen; in convert_scrap() local
153 dstlen = 0; in convert_scrap()
168 ++dstlen; in convert_scrap()
172 ++dstlen; in convert_scrap()
177 ++dstlen; in convert_scrap()
185 ++dstlen; in convert_scrap()
188 ++dstlen; in convert_scrap()
193 dstlen = *(int *)src; in convert_scrap()
196 srclen ? srclen - sizeof(int) : dstlen); in convert_scrap()
199 return dstlen; in convert_scrap()
269 int dstlen; in put_scrap() local
273 dstlen = convert_data(type, NULL, src, srclen); in put_scrap()
276 dst = (char *)malloc(dstlen); in put_scrap()
283 (unsigned char *)dst, dstlen); in put_scrap()
295 hMem = GlobalAlloc((GMEM_MOVEABLE|GMEM_DDESHARE), dstlen); in put_scrap()
314 dst = (char *)malloc(dstlen+4); in put_scrap()
321 if (dstlen > 65535) in put_scrap()
326 clheader.length = dstlen+4; in put_scrap()
337 void get_scrap(int type, int *dstlen, char **dst) in get_scrap() argument
341 *dstlen = 0; in get_scrap()
396 *dstlen = convert_scrap(type, NULL, in get_scrap()
398 *dst = (char *)realloc(*dst, *dstlen); in get_scrap()
400 *dstlen = 0; in get_scrap()
417 *dstlen = convert_scrap(type, NULL, src, 0); in get_scrap()
418 *dst = (char *)realloc(*dst, *dstlen); in get_scrap()
420 *dstlen = 0; in get_scrap()
441 *dstlen = convert_scrap(type, NULL, in get_scrap()
444 *dst = (char *)realloc(*dst, *dstlen); in get_scrap()
446 *dstlen = 0; in get_scrap()
466 *dstlen = convert_scrap(type, NULL, in get_scrap()
469 *dst = (char *)realloc(*dst, *dstlen); in get_scrap()
471 *dstlen = 0; in get_scrap()