Nuke ARRAY_SIZE and obsolete razor_set_list_unsatisfied from razor.h.
1.1 --- a/librazor/razor-internal.h Mon Jun 23 17:21:03 2008 -0400
1.2 +++ b/librazor/razor-internal.h Mon Jun 23 17:31:32 2008 -0400
1.3 @@ -11,6 +11,8 @@
1.4 #define RAZOR_EXPORT
1.5 #endif
1.6
1.7 +#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
1.8 +#define ALIGN(value, base) (((value) + (base - 1)) & ~((base) - 1))
1.9
1.10 void *zalloc(size_t size);
1.11
1.12 @@ -172,8 +174,6 @@
1.13 struct list *index;
1.14 };
1.15
1.16 -#define ALIGN(value, base) (((value) + (base - 1)) & ~((base) - 1))
1.17 -
1.18 struct razor_entry *
1.19 razor_set_find_entry(struct razor_set *set,
1.20 struct razor_entry *dir, const char *pattern);
2.1 --- a/librazor/razor.h Mon Jun 23 17:21:03 2008 -0400
2.2 +++ b/librazor/razor.h Mon Jun 23 17:31:32 2008 -0400
2.3 @@ -20,8 +20,6 @@
2.4 #ifndef _RAZOR_H_
2.5 #define _RAZOR_H_
2.6
2.7 -#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
2.8 -
2.9 enum razor_repo_file_type {
2.10 RAZOR_REPO_FILE_MAIN,
2.11 RAZOR_REPO_FILE_DETAILS,
2.12 @@ -159,8 +157,6 @@
2.13 void razor_set_list_files(struct razor_set *set, const char *prefix);
2.14 void razor_set_list_package_files(struct razor_set *set, const char *name);
2.15
2.16 -void razor_set_list_unsatisfied(struct razor_set *set);
2.17 -
2.18 enum razor_diff_action {
2.19 RAZOR_DIFF_ACTION_ADD,
2.20 RAZOR_DIFF_ACTION_REMOVE,
3.1 --- a/src/main.c Mon Jun 23 17:21:03 2008 -0400
3.2 +++ b/src/main.c Mon Jun 23 17:31:32 2008 -0400
3.3 @@ -39,6 +39,8 @@
3.4 static const char *repo_filename = system_repo_filename;
3.5 static const char *yum_url;
3.6
3.7 +#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
3.8 +
3.9 static int
3.10 command_list(int argc, const char *argv[])
3.11 {