* src/pic/gen.c: fixed warning and style
authortecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 10 Apr 2009 09:15:47 +0000 (09:15 +0000)
committertecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 10 Apr 2009 09:15:47 +0000 (09:15 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5431 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/pic/gen.c

index 1a46e870bec63fb97e66835db56205e3fe66a5f2..4626d029cb08517ffbf21e8771bd24bfe43e5e0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,7 +10,7 @@
          device/lib/pic16/libsdcc/float/fsdiv.c,
          device/lib/pic16/libsdcc/float/fsmul.c: fixed pic14 libraries, merge
          changes from the pic16 port, minor code cleanup
-       * src/pic/gen.c: implemented genUminusFloat()
+       * src/pic/gen.c: implemented genUminusFloat(), fixed warning and style
 
 2009-04-09 Philipp Klaus Krause <pkk AT spth.de>
 
index 568bd61ffbeb42ab9349f52cb1b6e645261d03e4..a2482345d8cf644255cb770a7ffb6c44b8de79f4 100644 (file)
@@ -1617,25 +1617,26 @@ release:
 /*-----------------------------------------------------------------*/
 /* genUminusFloat - unary minus for floating points                */
 /*-----------------------------------------------------------------*/
-static void genUminusFloat(operand *op,operand *result)
+static void
+genUminusFloat(operand *op, operand *result)
 {
-    int size ,offset =0 ;
-    char *l;
+  int size;
 
-    FENTRY;
+  FENTRY;
 
-    DEBUGpic14_emitcode ("; ***","%s  %d",__FUNCTION__,__LINE__);
-    /* for this we just need to flip the
-    first it then copy the rest in place */
-    size = AOP_SIZE(op) - 1;
+  DEBUGpic14_emitcode("; ***", "%s  %d", __FUNCTION__, __LINE__);
+  /* for this we just need to flip the
+     first it then copy the rest in place */
+  size = AOP_SIZE(op) - 1;
 
-    mov2w_op(op, size);
-    emitpcode(POC_XORLW, popGetLit(0x80));
-    movwf(AOP(result), size);
+  mov2w_op(op, size);
+  emitpcode(POC_XORLW, popGetLit(0x80));
+  movwf(AOP(result), size);
 
-    while(size--) {
-        mov2w_op(op, size);
-        movwf(AOP(result), size);
+  while (size--)
+    {
+      mov2w_op(op, size);
+      movwf(AOP(result), size);
     } // while
 }