Up |
syspackSupportedVersion
Return supported functions that are under differents licenses. The unsupported functions will always return 'nil'.
These supports are defined at the compilation and can not be changed after.
Prototype :
fun [] [[S I] r1]
Return : [[S I] r1] a list of tuple. For each tuple : the name of the license, supported (1) or unsupported (0).
See also
- base64decodeP (PHP license)
- base64encodeP (PHP license)
- base64encodePweb (PHP license)
- getSourceMd5 (GNU GPL2 license)
- getFileMd5 (GNU GPL2 license)
- getStringMd5 (GNU GPL2 license)
- getScolMd5 (GNU GPL2 license)
- sha256P (GNU GPL3 license)
- sha256S (GNU GPL3 license)
Example
fun spSupported (item)= _fooS sprintf "license %s : %d" item;; // sprintf is defined in syspack too fun main ()= _showconsole; forList @spSupported syspackSupportedVersion; // forList is defined in syspack too : a for-like from a list 0;;
The code above will display in the console :
- all functions are supported :
license PHP : 1 license GPL2 : 1 license GPL3 : 1
- GPL3 functions are not supported :
license PHP : 1 license GPL2 : 1 license GPL3 : 0