From 5f01c706267c595de92406a32e7f31ef5056c2d0 Mon Sep 17 00:00:00 2001 From: Lucas de Castro Borges Date: Mon, 22 Apr 2024 00:35:53 -0300 Subject: New upstream version 2.0.3pre --- hardinfo2/problem_marker.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 hardinfo2/problem_marker.c (limited to 'hardinfo2/problem_marker.c') diff --git a/hardinfo2/problem_marker.c b/hardinfo2/problem_marker.c new file mode 100644 index 00000000..1e0c2aed --- /dev/null +++ b/hardinfo2/problem_marker.c @@ -0,0 +1,13 @@ + +#include "hardinfo.h" + +/* requires COMPILE_FLAGS "-std=c99" */ + +const char *problem_marker() { + static const char as_markup[] = "\u26A0"; + static const char as_text[] = "(!)"; + if (params.markup_ok) + return as_markup; + else + return as_text; +} -- cgit v1.2.3