| 10820 | } |
| 10821 | |
| 10822 | static bool want_aspect(const char **aspects, int aspect_count, const char *name) { |
| 10823 | if (!aspects || aspect_count == 0) { |
| 10824 | return true; |
| 10825 | } |
| 10826 | for (int i = 0; i < aspect_count; i++) { |
| 10827 | if (strcmp(aspects[i], "all") == 0) { |
| 10828 | return true; |
| 10829 | } |
| 10830 | if (strcmp(aspects[i], "overview") == 0 && cbm_store_arch_aspect_in_overview(name)) { |
| 10831 | return true; |
| 10832 | } |
| 10833 | if (strcmp(aspects[i], name) == 0) { |
| 10834 | return true; |
| 10835 | } |
| 10836 | } |
| 10837 | return false; |
| 10838 | } |
| 10839 | |
| 10840 | int cbm_store_get_architecture(cbm_store_t *s, const char *project, const char *path, |
| 10841 | const char **aspects, int aspect_count, |
no test coverage detected