[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Sun, 20 Mar 2022 04:55:28 -0400 (EDT) |
branch: master
commit a11a16746f40b849b3e0584d2751d2e7b14827f0
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Nov 1 10:25:06 2019 +0000
declare variables as static globals
---
js/infog/main.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/js/infog/main.c b/js/infog/main.c
index 6c716a7eb3..22e511f154 100644
--- a/js/infog/main.c
+++ b/js/infog/main.c
@@ -48,7 +48,7 @@ static gboolean key_press_cb(GtkWidget *webView,
gpointer user_data);
static char *socket_file;
-int socket_id;
+static int socket_id;
static void
remove_socket (void)
@@ -199,8 +199,8 @@ save_completions (char *p)
static char *current_manual;
static char *current_manual_dir;
-char *index_list = 0;
-char *index_list_ptr = 0;
+static char *index_list = 0;
+static char *index_list_ptr = 0;
/* Load a single index node in the list in index_list. We only do one
at a time to give the subprocess time to do it before we load the next one.
@@ -721,12 +721,12 @@ find_extensions_directory (int argc, char *argv[])
static GMainLoop *main_loop;
-GtkWidget *toc_button;
-GtkWidget *back_button;
-GtkWidget *help_button;
-GtkWidget *manual_button;
+static GtkWidget *toc_button;
+static GtkWidget *back_button;
+static GtkWidget *help_button;
+static GtkWidget *manual_button;
-GtkWidget *manual_dialog, *manual_entry;
+static GtkWidget *manual_dialog, *manual_entry;
void
manual_entry_cb (GtkDialog *dialog,
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20