comparison lwlink/script.c @ 247:d8b5ff5c4ef9 2.x

Fixed LWEX stack size setting bug
author lost
date Thu, 19 Nov 2009 02:48:36 +0000
parents c602f6eca3ed
children f6af5791472c
comparison
equal deleted inserted replaced
246:c602f6eca3ed 247:d8b5ff5c4ef9
194 } 194 }
195 else if (!strcmp(line, "stacksize")) 195 else if (!strcmp(line, "stacksize"))
196 { 196 {
197 // stack size for targets that support it 197 // stack size for targets that support it
198 // parse the hex number and stow it 198 // parse the hex number and stow it
199 linkscript.padsize = strtol(ptr, NULL, 16); 199 linkscript.stacksize = strtol(ptr, NULL, 16);
200 if (linkscript.stacksize < 0) 200 if (linkscript.stacksize < 0)
201 linkscript.stacksize = 0x100; 201 linkscript.stacksize = 0x100;
202 } 202 }
203 else if (!strcmp(line, "entry")) 203 else if (!strcmp(line, "entry"))
204 { 204 {