Lines Matching refs:xpm_buffer
245 *xpm_buffer; in ReadXPMImage() local
303 xpm_buffer=(char *) AcquireQuantumMemory((size_t) length,sizeof(*xpm_buffer)); in ReadXPMImage()
304 if (xpm_buffer == (char *) NULL) in ReadXPMImage()
306 *xpm_buffer='\0'; in ReadXPMImage()
307 p=xpm_buffer; in ReadXPMImage()
310 if ((*p == '#') && ((p == xpm_buffer) || (*(p-1) == '\n'))) in ReadXPMImage()
315 if ((size_t) (p-xpm_buffer+MagickPathExtent) < length) in ReadXPMImage()
318 xpm_buffer=(char *) ResizeQuantumMemory(xpm_buffer,length+MagickPathExtent, in ReadXPMImage()
319 sizeof(*xpm_buffer)); in ReadXPMImage()
320 if (xpm_buffer == (char *) NULL) in ReadXPMImage()
322 p=xpm_buffer+strlen(xpm_buffer); in ReadXPMImage()
324 if (xpm_buffer == (char *) NULL) in ReadXPMImage()
331 for (p=xpm_buffer; *p != '\0'; p++) in ReadXPMImage()
346 xpm_buffer=DestroyString(xpm_buffer); in ReadXPMImage()
353 for (q=xpm_buffer; *p != '\0'; ) in ReadXPMImage()
373 xpm_buffer=DestroyString(xpm_buffer); in ReadXPMImage()
380 next=NextXPMLine(xpm_buffer); in ReadXPMImage()
429 xpm_buffer=DestroyString(xpm_buffer); in ReadXPMImage()
442 xpm_buffer=DestroyString(xpm_buffer); in ReadXPMImage()
473 xpm_buffer=DestroyString(xpm_buffer); in ReadXPMImage()
480 xpm_buffer=DestroyString(xpm_buffer); in ReadXPMImage()