Coding style 52/2452/2
Sylvestre Ledru [Fri, 12 Nov 2010 20:15:38 +0000 (21:15 +0100)]
Change-Id: Id305c1edfcf2eb9fba8ad60ccb84440468346e45

scilab/modules/core/src/c/callFunctionFromGateway.c
scilab/modules/helptools/includes/gw_helptools.h

index acafcce..d3dbeae 100644 (file)
@@ -19,7 +19,7 @@
 #include "Scierror.h"
 #include "localization.h"
 /*--------------------------------------------------------------------------*/
-void callFunctionFromGateway(gw_generic_table *Tab,int sizeTab)
+void callFunctionFromGateway(gw_generic_table *Tab, int sizeTab)
 {
        if ( (Fin > sizeTab) || (Fin < 1) )
        {
@@ -29,20 +29,29 @@ void callFunctionFromGateway(gw_generic_table *Tab,int sizeTab)
        {
 #ifdef _MSC_VER
 #ifndef _DEBUG
-       _try
-       {
-               if (*(Tab[Fin-1].f) != NULL) (*(Tab[Fin-1].f)) ((char*)Tab[Fin-1].name,(unsigned long)strlen(Tab[Fin-1].name));
-       }
-       _except (EXCEPTION_EXECUTE_HANDLER)
-       {       
-               ExceptionMessage(GetExceptionCode(),(char*)Tab[Fin-1].name);
-       }
+    _try
+    {
+        if (*(Tab[Fin-1].f) != NULL)
+        {
+            (*(Tab[Fin-1].f)) ((char*)Tab[Fin-1].name,(unsigned long)strlen(Tab[Fin-1].name));
+        }
+    }
+    _except (EXCEPTION_EXECUTE_HANDLER)
+    {    
+        ExceptionMessage(GetExceptionCode(),(char*)Tab[Fin-1].name);
+    }
 #else
-       if (*(Tab[Fin-1].f) != NULL) (*(Tab[Fin-1].f)) ((char*)Tab[Fin-1].name,(unsigned long)strlen(Tab[Fin-1].name));
+    if (*(Tab[Fin-1].f) != NULL)
+    {
+        (*(Tab[Fin-1].f)) ((char*)Tab[Fin-1].name,(unsigned long)strlen(Tab[Fin-1].name));
+    }
 #endif
 #else
-       if (*(Tab[Fin-1].f) != NULL) (*(Tab[Fin-1].f)) (Tab[Fin-1].name,(unsigned long)strlen(Tab[Fin-1].name));
+    if (*(Tab[Fin-1].f) != NULL)
+    {
+        (*(Tab[Fin-1].f)) (Tab[Fin-1].name,(unsigned long)strlen(Tab[Fin-1].name));
+    }
 #endif
-       }
+    }
 }
 /*--------------------------------------------------------------------------*/
index 51bc90f..5d73d58 100644 (file)
@@ -18,9 +18,9 @@
 /*--------------------------------------------------------------------------*/ 
 HELPTOOLS_IMPEXP int gw_helptools(void);
 /*--------------------------------------------------------------------------*/ 
-HELPTOOLS_IMPEXP int sci_buildDoc(char *fname,unsigned long fname_len);
+HELPTOOLS_IMPEXP int sci_buildDoc(char *fname, unsigned long fname_len);
 /*--------------------------------------------------------------------------*/ 
-HELPTOOLS_IMPEXP int sci_buildDocv2(char *fname,unsigned long fname_len);
+HELPTOOLS_IMPEXP int sci_buildDocv2(char *fname, unsigned long fname_len);
 /*--------------------------------------------------------------------------*/ 
 #endif /*  __GW_HELPTOOLS__ */
 /*--------------------------------------------------------------------------*/