From: jesusc Date: Tue, 13 Jan 2004 02:57:21 +0000 (+0000) Subject: Moved declaration to begining of function so to compile with MSVC X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=84b3537aa76bb5c8b6796e59ba25fba12ee5c514;p=fw%2Fsdcc Moved declaration to begining of function so to compile with MSVC git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3127 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/pic16/device.c b/src/pic16/device.c index 533066e2..841742fa 100644 --- a/src/pic16/device.c +++ b/src/pic16/device.c @@ -264,9 +264,9 @@ extern regs* newReg(short type, short pc_type, int rIdx, char *name, int size, i void pic16_setMaxRAM(int size) { + regs * reg; pic->maxRAMaddress = size; stackPos = pic->RAMsize-1; - regs * reg; reg=newReg(REG_SFR, PO_SFR_REGISTER, stackPos, "stack", 1, 0, NULL); addSet(&pic16_fix_udata, reg);