Use static for variables local to one source file.

svn path=/trunk/netsurf/; revision=4812
This commit is contained in:
John Tytgat 2008-07-29 23:19:24 +00:00
parent 9ede9ab376
commit 23a5467178
3 changed files with 21 additions and 18 deletions

View File

@ -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;
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;
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 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

View File

@ -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

View File

@ -81,9 +81,9 @@ const struct plotter_table ro_save_draw_plotters = {
ro_save_draw_path,
};
struct pencil_diagram *ro_save_draw_diagram;
int ro_save_draw_width;
int ro_save_draw_height;
static struct pencil_diagram *ro_save_draw_diagram;
static int ro_save_draw_width;
static int ro_save_draw_height;
/**