Unless files
Sylvestre Ledru [Fri, 4 Jan 2008 10:31:40 +0000 (10:31 +0000)]
scilab/modules/localization/sci_gateway/c/sci_getdefaultlanguage.c
scilab/modules/localization/sci_gateway/c/sci_getlanguage.c
scilab/modules/localization/sci_gateway/c/sci_getlanguage.h [deleted file]
scilab/modules/localization/sci_gateway/c/sci_setlanguage.c
scilab/modules/localization/sci_gateway/c/sci_setlanguage.h [deleted file]

index c2f5a62..0d36727 100644 (file)
@@ -2,21 +2,22 @@
 /* INRIA 2008 */
 /* @author Sylvestre LEDRU */
 /*--------------------------------------------------------------------------*/
-#include "sci_getlanguage.h"
+#include "gw_localization.h"
 #include "defaultlanguage.h"
 #include "Scierror.h"
 #include "MALLOC.h"
+#include "stack-c.h"
 /*--------------------------------------------------------------------------*/
 int C2F(sci_getdefaultlanguage) _PARAMS((char *fname,unsigned long fname_len))
 {
-       static int l1,n1,m1;
+       static int n1,m1;
        char *Output=NULL;
 
        CheckRhs(0,0);
        CheckLhs(0,1);
 
        Output=SCILABDEFAULTLANGUAGE;
-
+       strcat(Output,"\0");
        n1=1;
        CreateVarFromPtr( Rhs+1,STRING_DATATYPE,(m1=(int)strlen(Output), &m1),&n1,&Output);
        LhsVar(1) = Rhs+1;
index ae1a402..0048eed 100644 (file)
@@ -2,14 +2,15 @@
 /* INRIA 2008 */
 /* @author Sylvestre LEDRU */
 /*--------------------------------------------------------------------------*/
-#include "sci_getlanguage.h"
+#include "gw_localization.h"
 #include "setgetlanguage.h"
 #include "Scierror.h"
 #include "MALLOC.h"
+#include "stack-c.h"
 /*--------------------------------------------------------------------------*/
 int C2F(sci_getlanguage) _PARAMS((char *fname,unsigned long fname_len))
 {
-       static int l1,n1,m1;
+       static int n1,m1;
        char *Output=NULL;
 
        CheckRhs(0,0);
diff --git a/scilab/modules/localization/sci_gateway/c/sci_getlanguage.h b/scilab/modules/localization/sci_gateway/c/sci_getlanguage.h
deleted file mode 100644 (file)
index 3b1c79b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*--------------------------------------------------------------------------*/
-/* INRIA 2007 */
-/* Allan CORNET */
-/*--------------------------------------------------------------------------*/ 
-#ifndef __SCI_GETLANGUAGE__
-#define __SCI_GETLANGUAGE__
-
-#ifdef _MSC_VER
-#include <windows.h>
-#endif
-
-#include <stdio.h>
-#include "machine.h"
-#include "stack-c.h"
-
-
-int C2F(sci_getlanguage) _PARAMS((char *fname,unsigned long fname_len));
-
-#endif /*SCI_GETLANGUAGE*/
-/*--------------------------------------------------------------------------*/ 
index 09881c3..a00fca1 100644 (file)
@@ -1,8 +1,10 @@
 /*--------------------------------------------------------------------------*/
-/* INRIA 2007 */
-/* Allan CORNET */
+/* INRIA 2007/2008 */
+/* @author Allan CORNET */
+/* @author Sylvestre LEDRU */
+
 /*--------------------------------------------------------------------------*/
-#include "sci_setlanguage.h"
+#include "gw_localization.h"
 #include "setgetlanguage.h"
 #include "Scierror.h"
 #include "sciprint.h"
@@ -11,6 +13,7 @@
 #include "MALLOC.h"
 #include "loadhashtableslocalization.h"
 #include "localization.h"
+#include "stack-c.h"
 /*--------------------------------------------------------------------------*/
 int C2F(sci_setlanguage) _PARAMS((char *fname,unsigned long fname_len))
 {
diff --git a/scilab/modules/localization/sci_gateway/c/sci_setlanguage.h b/scilab/modules/localization/sci_gateway/c/sci_setlanguage.h
deleted file mode 100644 (file)
index 70c18a3..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*--------------------------------------------------------------------------*/
-/* INRIA 2007 */
-/* Allan CORNET */
-/*--------------------------------------------------------------------------*/ 
-#ifndef __SCI_SETLANGUAGE__
-#define __SCI_SETLANGUAGE__
-
-#ifdef _MSC_VER
-#include <windows.h>
-#endif
-
-#include <stdio.h>
-#include "machine.h"
-#include "stack-c.h"
-
-
-int C2F(sci_setlanguage) _PARAMS((char *fname,unsigned long fname_len));
-
-#endif /*SCI_SETLANGUAGE*/
-/*--------------------------------------------------------------------------*/