Lines Matching refs:dir
3410 rsrc_compute_region_sizes (rsrc_directory * dir) in rsrc_compute_region_sizes() argument
3414 if (dir == NULL) in rsrc_compute_region_sizes()
3419 for (entry = dir->names.first_entry; entry != NULL; entry = entry->next_entry) in rsrc_compute_region_sizes()
3431 for (entry = dir->ids.first_entry; entry != NULL; entry = entry->next_entry) in rsrc_compute_region_sizes()
3444 rsrc_directory * dir) in rsrc_write_directory() argument
3451 bfd_put_32 (data->abfd, dir->characteristics, data->next_table); in rsrc_write_directory()
3453 bfd_put_16 (data->abfd, dir->major, data->next_table + 8); in rsrc_write_directory()
3454 bfd_put_16 (data->abfd, dir->minor, data->next_table + 10); in rsrc_write_directory()
3455 bfd_put_16 (data->abfd, dir->names.num_entries, data->next_table + 12); in rsrc_write_directory()
3456 bfd_put_16 (data->abfd, dir->ids.num_entries, data->next_table + 14); in rsrc_write_directory()
3460 data->next_table = next_entry + (dir->names.num_entries * 8) in rsrc_write_directory()
3461 + (dir->ids.num_entries * 8); in rsrc_write_directory()
3465 for (i = dir->names.num_entries, entry = dir->names.first_entry; in rsrc_write_directory()
3476 for (i = dir->ids.num_entries, entry = dir->ids.first_entry; in rsrc_write_directory()
3624 rsrc_resource_name (rsrc_entry * entry, rsrc_directory * dir) in rsrc_resource_name() argument
3631 if (dir != NULL && dir->entry != NULL && dir->entry->parent != NULL in rsrc_resource_name()
3632 && dir->entry->parent->entry != NULL) in rsrc_resource_name()
3635 if (dir->entry->parent->entry->is_name) in rsrc_resource_name()
3637 dir->entry->parent->entry->name_id.name); in rsrc_resource_name()
3640 unsigned int id = dir->entry->parent->entry->name_id.id; in rsrc_resource_name()
3672 if (dir != NULL && dir->entry != NULL) in rsrc_resource_name()
3675 if (dir->entry->is_name) in rsrc_resource_name()
3676 rsrc_print_name (buffer + strlen (buffer), dir->entry->name_id.name); in rsrc_resource_name()
3679 unsigned int id = dir->entry->name_id.id; in rsrc_resource_name()
3824 rsrc_directory * dir) in rsrc_sort_entries() argument
3870 && dir != NULL in rsrc_sort_entries()
3871 && dir->entry != NULL in rsrc_sort_entries()
3872 && dir->entry->is_name == FALSE in rsrc_sort_entries()
3873 && dir->entry->name_id.id == 0x18) in rsrc_sort_entries()
3926 && dir != NULL in rsrc_sort_entries()
3927 && dir->entry != NULL in rsrc_sort_entries()
3928 && dir->entry->is_name == FALSE in rsrc_sort_entries()
3929 && dir->entry->name_id.id == 1 in rsrc_sort_entries()
3930 && dir->entry->parent != NULL in rsrc_sort_entries()
3931 && dir->entry->parent->entry != NULL in rsrc_sort_entries()
3932 && dir->entry->parent->entry->is_name == FALSE in rsrc_sort_entries()
3933 && dir->entry->parent->entry->name_id.id == 0x18 /* RT_MANIFEST */) in rsrc_sort_entries()
3935 else if (dir != NULL in rsrc_sort_entries()
3936 && dir->entry != NULL in rsrc_sort_entries()
3937 && dir->entry->parent != NULL in rsrc_sort_entries()
3938 && dir->entry->parent->entry != NULL in rsrc_sort_entries()
3939 && dir->entry->parent->entry->is_name == FALSE in rsrc_sort_entries()
3940 && dir->entry->parent->entry->name_id.id == 0x6 /* RT_STRING */) in rsrc_sort_entries()
3952 if (dir == NULL in rsrc_sort_entries()
3953 || dir->entry == NULL in rsrc_sort_entries()
3954 || dir->entry->parent == NULL in rsrc_sort_entries()
3955 || dir->entry->parent->entry == NULL) in rsrc_sort_entries()
3959 rsrc_resource_name (entry, dir)); in rsrc_sort_entries()