Lines Matching refs:script_dirent

3175 #define for_each_script(lang_path, lang_dir, script_dirent)		\  argument
3176 while ((script_dirent = readdir(lang_dir)) != NULL) \
3177 if (script_dirent->d_type != DT_DIR && \
3178 (script_dirent->d_type != DT_UNKNOWN || \
3179 !is_directory(lang_path, script_dirent)))
3298 static char *get_script_root(struct dirent *script_dirent, const char *suffix) in get_script_root() argument
3302 script_root = strdup(script_dirent->d_name); in get_script_root()
3320 struct dirent *script_dirent, *lang_dirent; in list_available_scripts() local
3355 for_each_script(lang_path, lang_dir, script_dirent) { in list_available_scripts()
3356 script_root = get_script_root(script_dirent, REPORT_SUFFIX); in list_available_scripts()
3360 lang_path, script_dirent->d_name); in list_available_scripts()
3478 struct dirent *script_dirent, *lang_dirent; in find_scripts() local
3517 for_each_script(lang_path, lang_dir, script_dirent) { in find_scripts()
3519 if (strstr(script_dirent->d_name, "top.")) in find_scripts()
3525 script_dirent->d_name); in find_scripts()
3526 temp = strchr(script_dirent->d_name, '.'); in find_scripts()
3528 (temp - script_dirent->d_name) + 1, in find_scripts()
3529 "%s", script_dirent->d_name); in find_scripts()
3547 struct dirent *script_dirent, *lang_dirent; in get_script_path() local
3567 for_each_script(lang_path, lang_dir, script_dirent) { in get_script_path()
3568 __script_root = get_script_root(script_dirent, suffix); in get_script_path()
3573 lang_path, script_dirent->d_name); in get_script_path()