@ 201216.1

200620.1.1 · 21eaa1c4160b868b0c5bbf59da17974429f30055

Fix multiple global symbols definitions.

See the use of extern here:

* https://www.geeksforgeeks.org/understanding-extern-keyword-in-c/

* https://en.wikipedia.org/wiki/External_variable

* https://stackoverflow.com/questions/496448/how-to-correctly-use-the-extern-keyword-in-c

reading declarations

Changes to src/util.h. All files

src/util.h

@@ -12,7 +12,7 @@ #include "log.h" #include "options.h" -FILE *out_fd;+extern FILE *out_fd;  #ifndef TRUE #define TRUE 1@@ -51,7 +51,7 @@ typedef struct { } ag_stats;  -ag_stats stats;+extern ag_stats stats;  /* Union to translate between chars and words without violating strict aliasing */ typedef union {