changeset 36890:8f38fea0b91b

Make linenumber global.
author ib
date Sat, 08 Mar 2014 19:17:43 +0000
parents 92b384b99175
children c5ee0fc2ec75
files gui/win32/skinload.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/skinload.c	Sat Mar 08 18:43:24 2014 +0000
+++ b/gui/win32/skinload.c	Sat Mar 08 19:17:43 2014 +0000
@@ -93,6 +93,8 @@
 
 static const int evBoxs = sizeof(evNames) / sizeof(evName);
 
+static int linenumber;
+
 static char *geteventname(int event)
 {
     int i;
@@ -548,13 +550,14 @@
 {
     FILE *fp;
     int reachedendofwindow = FALSE;
-    int linenumber = 0;
     skin_t *skin = calloc(1, sizeof(skin_t));
     char *filename;
     char *tmp = calloc(1, MAX_LINESIZE);
     char *desc = calloc(1, MAX_LINESIZE);
     window* mywindow = NULL;
 
+    linenumber = 0;
+
     /* setup funcs */
     skin->freeskin = freeskin;
     skin->pngRead = pngRead;