mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 17:40:40 -04:00
Ensure that there is only one variable definition per each object, as the C (and C++) standards mandated for years and compilers started to enforce as of recently (Clang 11, GCC 10).
45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
--- gattrib/include/globals.h.orig 2013-08-18 17:02:48 UTC
|
|
+++ gattrib/include/globals.h
|
|
@@ -76,7 +76,7 @@
|
|
* structs.h
|
|
*/
|
|
/*------------------------------------------------------------------*/
|
|
-TOPLEVEL *pr_current;
|
|
+extern TOPLEVEL *pr_current;
|
|
|
|
/*------------------------------------------------------------------*/
|
|
/*!
|
|
@@ -85,7 +85,7 @@ TOPLEVEL *pr_current;
|
|
* callbacks. It is defined in structs.h
|
|
*/
|
|
/*------------------------------------------------------------------*/
|
|
-SHEET_DATA *sheet_head;
|
|
+extern SHEET_DATA *sheet_head;
|
|
|
|
/*------------------------------------------------------------------
|
|
* GTKsheet includes: stuff for dealing with windows.
|
|
@@ -94,18 +94,14 @@ SHEET_DATA *sheet_head;
|
|
#define DEFAULT_SPACE 8
|
|
#define NUM_SHEETS 3 /* Components, Nets, and Pins */
|
|
|
|
-GtkWidget *window; /* Main window */
|
|
-GtkWidget *notebook;
|
|
+extern GtkWidget *window; /* Main window */
|
|
+extern GtkWidget *notebook;
|
|
|
|
-GtkSheet **sheets; /* These are the spreadsheet widgets themselves */
|
|
+extern GtkSheet **sheets; /* These are the spreadsheet widgets themselves */
|
|
|
|
-GtkWidget **scrolled_windows;
|
|
-GtkWidget *entry;
|
|
-GtkWidget *location;
|
|
-GtkWidget *left_button;
|
|
-GtkWidget *center_button;
|
|
-GtkWidget *right_button;
|
|
-GtkWidget *label;
|
|
+extern GtkWidget **scrolled_windows;
|
|
+extern GtkWidget *entry;
|
|
+extern GtkWidget *label;
|
|
|
|
/* command line switch settings */
|
|
extern int verbose_mode;
|