explicit declaration of extern variables - ploot - simple plotting tools
(HTM) git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1a7e49697644fe2740519b2c5f62a314e675c616
(DIR) parent f40c90855b60ca35db31fa76f058a3c250a45ffd
(HTM) Author: Marc Chantreux <eiro@phear.org>
Date: Tue, 8 Jun 2021 08:55:14 +0200
explicit declaration of extern variables
to please -std=c99
Diffstat:
M src/font.h | 4 ++--
M src/log.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/src/font.h b/src/font.h
@@ -11,8 +11,8 @@ struct font {
char *glyph[128]; /* 0: end, 1: off, 2: on. */
};
-struct font font8;
-struct font font13;
+extern struct font font8;
+extern struct font font13;
/**/
size_t font_width (struct font *, int);
(DIR) diff --git a/src/log.h b/src/log.h
@@ -4,7 +4,7 @@
#include <stdarg.h>
/**/
-int log_level;
+extern int log_level;
void vlogf (int, char const *, char const *, va_list);
void die (int, char const *, ...);
void error (char const *, ...);