diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-02-06 21:54:04 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-02-06 21:54:04 +0900 |
commit | 4f0669f8f86acb09f10ffb5af273f86d8d6ddd34 (patch) | |
tree | 65d5d0adfd90e31b77474993addeb065edfeb75c /src/minmax.h | |
parent | 76892a69f95f7dcf47050800385bc610f8ccf5f3 (diff) |
refactor error message-related functions
split message print fuctions (mpr_*), strerrno, and mscp_get/set_error
into print.c/h and strerrno.c/h.
ToDo: revise usages of priv_set_errv and pr_* functions.
Diffstat (limited to 'src/minmax.h')
-rw-r--r-- | src/minmax.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/minmax.h b/src/minmax.h new file mode 100644 index 0000000..5f575f7 --- /dev/null +++ b/src/minmax.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-3.0-only */ +#ifndef _MINMAX_H_ +#define _MINMAX_H_ + +#define min(a, b) (((a) > (b)) ? (b) : (a)) +#define max(a, b) (((a) > (b)) ? (a) : (b)) + +#endif /* _MINMAX_H_ */ |