summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2021-09-27 12:36:27 +0100
committerKatolaZ <katolaz@freaknet.org>2021-09-27 12:36:27 +0100
commit46f92bb4c29351797740e7fc0f3518a29950dc2d (patch)
tree6a2bc39ba257d61b6328aa46d989a53ec753a960 /draw.c
parent864ec4a6c5ef86273653af4eaab9315bd1b7bbca (diff)
remove implicit extern declarations -- thanks to adc!HEADmaster
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c43
1 files changed, 42 insertions, 1 deletions
diff --git a/draw.c b/draw.c
index a6deab0..70ca520 100644
--- a/draw.c
+++ b/draw.c
@@ -6,6 +6,46 @@
#include "gramscii.h"
#include "config.h"
+/** Extern declarations **/
+
+extern int WIDTH, HEIGHT;
+extern lineset_t screen; /* what is visualised */
+extern lineset_t cutbuf; /* cut/paste buffer */
+extern lineset_t *undo; /* undo list */
+
+extern int undo_cur;/* undo position */
+extern int undo_lst;/* last valid undo position */
+
+
+extern int mode;/* mode */
+extern int dir;/* line direction */
+extern int step;/* current step */
+extern int x;
+extern int y;
+extern char corner;
+extern char modified; /* set to 1 if screen modified since last save */
+
+/* line and arrow markers */
+extern int cur_hl, cur_vl, cur_corn, cur_start, cur_end;
+extern char line_h;
+extern char line_v;
+extern char mark_st;
+extern char mark_end;
+
+/* number of available markers for each type */
+extern int hlines_sz;
+extern int vlines_sz;
+extern int corners_sz;
+extern int stmarks_sz;
+extern int endmarks_sz;
+
+
+extern char autoend; /* set to 1 in auto-arrow mode */
+
+/* Used by draw_arrow to identify the bounding box */
+extern int a_miny;
+extern int a_maxy;
+
/*** drawing-related functions ***/
/*** Lines and markers ***/
@@ -680,6 +720,7 @@ void redo_change(){
void get_comment(FILE *fc){
char c;
redraw();
- while((c = fgetc(fc)) != EOF && c != '\n');
+ while((c = fgetc(fc)) != EOF && c != '\n');
mode = MOVE;
}
+