2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
16 extern const char* kProgramName
;
18 #define DIE(result, msg...) \
20 fprintf(stderr, "*** " msg); \
21 fprintf(stderr, " : %s\n", strerror(result)); \
25 #define ERROR(result, msg...) \
27 fprintf(stderr, "*** " msg); \
28 fprintf(stderr, " : %s\n", strerror(result)); \
31 #define WARN(result, msg...) \
33 fprintf(stderr, "* " msg); \
34 fprintf(stderr, " : %s\n", strerror(result)); \
38 void print_usage_and_exit(bool error
);
41 extern const BString kCommandCategoryPackages
;
42 extern const BString kCommandCategoryRepositories
;
43 extern const BString kCommandCategoryOther
;