]> git.gag.com Git - fw/sdcc/commitdiff
Moved declaration to begining of function so to compile with MSVC
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 13 Jan 2004 02:57:21 +0000 (02:57 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 13 Jan 2004 02:57:21 +0000 (02:57 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3127 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/pic16/device.c

index 533066e270d744d3fde855d40a7d482e89d37852..841742faa14736d93d50ec8fedd4af54e5252ccd 100644 (file)
@@ -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);