Fix non-regression test for binary versions where autoCompletionCli.h is not available. 71/13671/1
Vincent COUVERT [Thu, 6 Feb 2014 07:56:38 +0000 (08:56 +0100)]
To test: test_run console bug_13226

Change-Id: I0ce8b5412921d264b0cb4a247ec3b342ca1d7d9a

scilab/modules/console/tests/nonreg_tests/bug_13226.c
scilab/modules/console/tests/nonreg_tests/bug_13226.dia.ref
scilab/modules/console/tests/nonreg_tests/bug_13226.tst

index d0fa9c9..e1b01ff 100644 (file)
 
 #include "api_scilab.h"
 #include "Scierror.h"
-#include "autoCompletionCli.h"
 #include "MALLOC.h"
 
+extern void autoCompletionInConsoleMode(wchar_t ** commandLine, unsigned int *cursorLocation);
+
 /*--------------------------------------------------------------------------*/
 int sci_completecommandline(char *fname, unsigned long fname_len)
 {
index ce7caca..d7941d0 100644 (file)
@@ -33,7 +33,7 @@ else
     SCI_LIB     = strsubst(SCI,"/share\/scilab$/","lib/scilab"     ,"r");
     SCI_INCLUDE = strsubst(SCI,"/share\/scilab$/","include/scilab" ,"r");
     libs        = SCI_LIB + "/libsciconsole";
-    cflags      = "-I " + SCI_INCLUDE
+    cflags      = "-I " + SCI_INCLUDE;
 end
 // name known in scilab , C function called
 table = ["completecommandline"    ,"sci_completecommandline"];
index d51345d..50b9dd4 100644 (file)
@@ -40,7 +40,7 @@ else
     SCI_LIB     = strsubst(SCI,"/share\/scilab$/","lib/scilab"     ,"r");
     SCI_INCLUDE = strsubst(SCI,"/share\/scilab$/","include/scilab" ,"r");
     libs        = SCI_LIB + "/libsciconsole";
-    cflags      = "-I " + SCI_INCLUDE
+    cflags      = "-I " + SCI_INCLUDE;
 end
 
 // name known in scilab , C function called