Add PACMAN_MIN()' and PACMAN_MAX()'

This commit is contained in:
0xfadead 2024-09-15 17:08:26 +02:00 committed by someordinaryidiot#
parent 9d72c82ec4
commit aeeaa3524c

View file

@ -41,6 +41,11 @@
#define _n(str1, str2, ct) (char *)(ct == 1 ? str1 : str2) #define _n(str1, str2, ct) (char *)(ct == 1 ? str1 : str2)
#endif #endif
/* Macro to determine minimal value */
#define PACMAN_MIN(a, b) ((a) > (b) ? (b) : (a))
/* Macro to determine maximum value */
#define PACMAN_MAX(a, b) ((a) > (b) ? (a) : (b))
typedef struct _pm_target_t { typedef struct _pm_target_t {
alpm_pkg_t *remove; alpm_pkg_t *remove;
alpm_pkg_t *install; alpm_pkg_t *install;