summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-07-29 23:19:24 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-07-29 23:19:24 +0000
commit23a546717848fd664abbfcb14d05916ff4375275 (patch)
tree097f5a47600d3a08081b79d59934043a41b900a5 /desktop
parent9ede9ab3762cc6f5a09d8c8ef022922d9caec2ec (diff)
downloadnetsurf-23a546717848fd664abbfcb14d05916ff4375275.tar.gz
netsurf-23a546717848fd664abbfcb14d05916ff4375275.tar.bz2
Use static for variables local to one source file.
svn path=/trunk/netsurf/; revision=4812
Diffstat (limited to 'desktop')
-rw-r--r--desktop/knockout.c31
-rw-r--r--desktop/knockout.h6
2 files changed, 20 insertions, 17 deletions
diff --git a/desktop/knockout.c b/desktop/knockout.c
index cbffa3d39..4a82dc47f 100644
--- a/desktop/knockout.c
+++ b/desktop/knockout.c
@@ -214,22 +214,21 @@ struct knockout_entry {
};
-struct knockout_entry knockout_entries[KNOCKOUT_ENTRIES];
-struct knockout_box knockout_boxes[KNOCKOUT_BOXES];
-int knockout_polygons[KNOCKOUT_POLYGONS];
-int knockout_entry_cur = 0;
-int knockout_box_cur = 0;
-int knockout_polygon_cur = 0;
-struct knockout_box *knockout_list = NULL;
-
-struct plotter_table real_plot;
-
-int clip_x0_cur;
-int clip_y0_cur;
-int clip_x1_cur;
-int clip_y1_cur;
-int nested_depth = 0;
-
+static struct knockout_entry knockout_entries[KNOCKOUT_ENTRIES];
+static struct knockout_box knockout_boxes[KNOCKOUT_BOXES];
+static int knockout_polygons[KNOCKOUT_POLYGONS];
+static int knockout_entry_cur = 0;
+static int knockout_box_cur = 0;
+static int knockout_polygon_cur = 0;
+static struct knockout_box *knockout_list = NULL;
+
+static struct plotter_table real_plot;
+
+static int clip_x0_cur;
+static int clip_y0_cur;
+static int clip_x1_cur;
+static int clip_y1_cur;
+static int nested_depth = 0;
/**
* Start a knockout plotting session
diff --git a/desktop/knockout.h b/desktop/knockout.h
index 9470bcf77..a3951a501 100644
--- a/desktop/knockout.h
+++ b/desktop/knockout.h
@@ -20,11 +20,15 @@
* Knockout rendering (interface).
*/
+#ifndef _NETSURF_DESKTOP_KNOCKOUT_H_
+#define _NETSURF_DESKTOP_KNOCKOUT_H_
+
#include "desktop/plotters.h"
bool knockout_plot_start(struct plotter_table *plotter);
bool knockout_plot_end(void);
-
extern const struct plotter_table knockout_plotters;
+
+#endif