aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-08-19 22:19:05 +0300
committerJoursoir <chat@joursoir.net>2022-08-21 23:22:01 +0300
commitcb97e447c91d6d6c4d24247ac656e27556a28f2a (patch)
tree27f42f88eebbd2e7b06bbfbadd5310723b8ebee8
parentb2c6f5036cd34235ac0a2f28adee0661f4d90692 (diff)
downloadlock-password-cb97e447c91d6d6c4d24247ac656e27556a28f2a.tar.gz
lock-password-cb97e447c91d6d6c4d24247ac656e27556a28f2a.tar.bz2
lock-password-cb97e447c91d6d6c4d24247ac656e27556a28f2a.zip
tree: introduce header file for output
The file contains only one macro right now. But it's more convenient if the header with the appropriate name will do output routines. This is one of the steps on the way to get rid of errprint_*() macros and handle errors by yourself. For more context see other patches under the same topic specified below. TOPIC=drop_errprint
-rw-r--r--src/output.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/output.h b/src/output.h
new file mode 100644
index 0000000..3be5f59
--- /dev/null
+++ b/src/output.h
@@ -0,0 +1,26 @@
+#ifndef LPASS_OUTPUT_H
+#define LPASS_OUTPUT_H
+
+/***
+ This file is part of LockPassword
+ Copyright (C) 2022 Aleksandr D. Goncharov (Joursoir) <chat@joursoir.net>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+***/
+
+#include <stdio.h>
+
+#define print_error(...) fprintf(stderr, __VA_ARGS__)
+
+#endif /* LPASS_OUTPUT_H */