# HG changeset patch # User ib # Date 1394306263 0 # Node ID 8f38fea0b91bc77a7aed6c1a175b1a8d53b5bba8 # Parent 92b384b99175f4fa2ccb306ccdedf30d41b90221 Make linenumber global. diff -r 92b384b99175 -r 8f38fea0b91b gui/win32/skinload.c --- 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;