update api_scilab documention with changes on pvApiCtx
[scilab.git] / scilab / modules / api_scilab / help / en_US / boolean_sparse / D_booleanSparseExample.xml
index 1b990c2..a580395 100644 (file)
@@ -27,7 +27,8 @@
     <!--Lib_name: booleanSparseExample-->
     <!--Func_list: booleanSparseExample-->
     <title>Gateway Source</title>
-    <programlisting role="code_gateway"><![CDATA[ 
+    <programlisting role="code_gateway">
+    <![CDATA[ 
 #include "api_scilab.h"
 
 int booleanSparseExample(char *fname,unsigned long fname_len)
@@ -62,7 +63,7 @@ int booleanSparseExample(char *fname,unsigned long fname_len)
                        return iRet;
                }
 
-               sciErr = createBooleanSparseMatrix(pvApiCtx, nbInputArgument + 1, iRows, iCols, iNbItem, piNbItemRow, piColPos);
+               sciErr = createBooleanSparseMatrix(pvApiCtx, nbInputArgument(pvApiCtx) + 1, iRows, iCols, iNbItem, piNbItemRow, piColPos);
                if(sciErr.iErr)
                {
                        freeAllocatedBooleanSparse(piNbItemRow, piColPos);
@@ -71,7 +72,7 @@ int booleanSparseExample(char *fname,unsigned long fname_len)
                }
 
                freeAllocatedBooleanSparse(piNbItemRow, piColPos);
-               AssignOutputVariable(1) = nbInputArgument + 1;
+               AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
        }
        return 0;
 }