Lines Matching refs:name
177 char *name, *f; in gdImageXbmCtx() local
180 name = file_name; in gdImageXbmCtx()
181 if ((f = strrchr(name, '/')) != NULL) name = f+1; in gdImageXbmCtx()
182 if ((f = strrchr(name, '\\')) != NULL) name = f+1; in gdImageXbmCtx()
183 name = estrdup(name); in gdImageXbmCtx()
184 if ((f = strrchr(name, '.')) != NULL && !strcasecmp(f, ".XBM")) *f = '\0'; in gdImageXbmCtx()
185 if ((l = strlen(name)) == 0) { in gdImageXbmCtx()
186 efree(name); in gdImageXbmCtx()
187 name = estrdup("image"); in gdImageXbmCtx()
191 if (!isupper(name[i]) && !islower(name[i]) && !isdigit(name[i])) { in gdImageXbmCtx()
192 name[i] = '_'; in gdImageXbmCtx()
197 gdCtxPrintf(out, "#define %s_width %d\n", name, gdImageSX(image)); in gdImageXbmCtx()
198 gdCtxPrintf(out, "#define %s_height %d\n", name, gdImageSY(image)); in gdImageXbmCtx()
199 gdCtxPrintf(out, "static unsigned char %s_bits[] = {\n ", name); in gdImageXbmCtx()
201 efree(name); in gdImageXbmCtx()