1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
3 // Copyright (C) 2012 - 2016 - Scilab Enterprises
4 // Copyright (C) 2020 - Samuel GOUGEON
6 // This file is hereby licensed under the terms of the GNU GPL v2.0,
7 // pursuant to article 5.3.4 of the CeCILL v.2.1.
8 // This file was originally licensed under the terms of the CeCILL v2.1,
9 // and continues to be available under such terms.
10 // For more information, see the COPYING file which you should have received
11 // along with this program.
13 function tree = sci_ispc(tree)
15 // Conversion function for Matlab ispc()
16 // Input: tree = Matlab funcall tree
17 // Ouput: tree = Scilab equivalent for tree
19 OS = Funcall("getos",1,list(),list())
20 tree = Operation("==", list(OS,Cste("Windows")),tree.lhs)
22 tree.out(1).dims = list(1,1)
23 tree.out(1).type = Type(Boolean,Boolean)