a problem with diary and basouttofile which makes the matsys test hangs - thanks...
Yann Collette [Mon, 29 Jun 2009 07:38:04 +0000 (09:38 +0200)]
scilab/modules/output_stream/src/c/basout.c

index 489cdc8..37ebfe0 100644 (file)
@@ -110,16 +110,18 @@ int C2F(basout)(int *io, int *lunit, char *string,long int nbcharacters)
                {
                        // it write a INPUT command line in diary
                }
-
-               if (*lunit == C2F(iop).wio)
-               {
+               else
+                 {
+                   if (*lunit == C2F(iop).wio)
+                     {
                        string[nbcharacters] = '\0';
                        diary(string,TRUE);
-               }
-               else
-               {
+                     }
+                   else
+                     {
                        C2F(basouttofile)(lunit, string,nbcharacters);
-               }
+                     }
+                 }
        }
        return 0;
 }