Lines Matching refs:pstr
121 char *escape_slash(const char *pstr);
122 int is_inner(const char *pstr);
236 char *pstr; in utf8tolatin1() local
238 pstr = pp = xmalloc((a_utf8.nlen+1) * sizeof(char)); in utf8tolatin1()
251 return pstr; in utf8tolatin1()
272 char *pstr, *ptrunc; in add_to_dependencies() local
278 pstr = xmalloc((nlen_pdepstr+6+1)*sizeof(char)); in add_to_dependencies()
279 memcpy(pstr, pdepstr, nlen_pdepstr+1); in add_to_dependencies()
280 strncat(pstr, ".class", 6); in add_to_dependencies()
283 if ( access(pstr, F_OK) == 0 ) { in add_to_dependencies()
284 append_to_growable(pdep, strdup(pstr)); in add_to_dependencies()
287 nlen_str = strlen(pstr); in add_to_dependencies()
294 memcpy( path+nlen_filt+1, pstr, nlen_str+1); in add_to_dependencies()
297 free(pstr); in add_to_dependencies()
298 pstr = NULL; in add_to_dependencies()
322 free(pstr); in add_to_dependencies()
323 pstr = NULL; in add_to_dependencies()
330 free(pstr); in add_to_dependencies()
335 escape_slash(const char *pstr) in escape_slash() argument
343 const char *pp = pstr; in escape_slash()
354 nlen_pnp = strlen(pstr) + i; in escape_slash()
357 pp = pstr; in escape_slash()
378 char *pstr; in print_dependencies() local
381 pstr = escape_slash(pclass_file); in print_dependencies()
382 fprintf(pfsout, "%s:", pstr); in print_dependencies()
383 free(pstr); in print_dependencies()
387 pstr=escape_slash(pdep->parray[i]); in print_dependencies()
388 fprintf(pfsout, "\t%s", pstr); in print_dependencies()
389 free(pstr); in print_dependencies()
397 is_inner(const char *pstr) in is_inner() argument
411 if ( strchr(pstr, '$') != NULL ) in is_inner()
542 char *pstr, *ptmpstr; in process_class_file() local
543 pstr = ptmpstr = utf8tolatin1(pc_pool[pc_class[i]]); in process_class_file()
545 if ( is_inner(pstr) ) { in process_class_file()
546 free(pstr); in process_class_file()
547 pstr = NULL; in process_class_file()
556 char *p = pstr; in process_class_file()
557 pstr = strdup(++ptmpstr); in process_class_file()
559 pstr[strlen(pstr)-1] = '\0'; in process_class_file()
562 free(pstr); in process_class_file()
563 pstr = NULL; in process_class_file()
567 if (pstr) { in process_class_file()
568 add_to_dependencies(pdepen, pfilt, pstr, file.pname); in process_class_file()
569 free(pstr); in process_class_file()
662 int append_to_growable(struct growable *pgrow, char *pstr) in append_to_growable() argument
668 pgrow->parray[pgrow->ncur++] = pstr; in append_to_growable()
713 char *p, *pp, *pstr; in create_filters() local
721 pstr = xmalloc((nlen+1)*sizeof(char*)); in create_filters()
722 memcpy(pstr, pp, nlen); in create_filters()
723 pstr[nlen] = '\0'; in create_filters()
724 append_to_growable(pfilt, pstr); in create_filters()
728 pstr = xmalloc((nlen_pstr+1)*sizeof(char*)); in create_filters()
729 memcpy(pstr, pp, nlen_pstr+1); in create_filters()
730 append_to_growable(pfilt, pstr); in create_filters()