-/* src/client/parse.c */
-
-#define _POSIX_C_SOURCE 200809L /* strdup() */
+/* src/client/parse.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
+
+#define _POSIX_C_SOURCE 200809L /* strdup(), snprintf() */
#include "parse.h"
#include <stddef.h> /* size_t, NULL */
#include <stdio.h> /* FILE, snprintf() */
char * errline_line = try_malloc(linemax + 1, __func__);
set_err_line_options(errline_intro, errline_line, 1);
err_line_zero();
- err_line(0 == linemax, "File is empty.");
+ err_line(!linemax, "File is empty.");
char * token0 = NULL; /* For final token_to_entry() if while() stagnates. */
char * token1 = NULL;
char * err_val = "No value given.";
extern void parsetest_too_many_values()
{
- err_line(NULL != token_from_line(NULL), "Too many values.");
+ err_line(!(!token_from_line(NULL)), "Too many values.");
}