WSTP 接口3
Wolfram 符号传递协议(Wolfram Symbolic Transfer Protocol -WSTP)程序库头文件 wstp.h 不再包含,例如,由 MACINTOSH_WSTP 或 OS2_WSTP 定义的废弃平台支持部分. MACINTOSH_WSTP 定义参照的是 Mac OS 9 或更早版本. DARWIN_WSTP 包含所有针对 Mac OS X 的特定平台定义.
对常见的 C 类型的特殊备用名称已从 API 中去除. WSTP 头文件 wstp.h 仍然包含了这些类型的 API 函数版本,与接口2和更老的程序结合使用.
以前的 WSTP 类型 | C 类型 | |
uchar_ct |
unsigned char
| |
ucharp_ct |
unsigned char *
| |
ucharpp_ct |
unsigned char **
| |
ucharppp_ct |
unsigned char ***
| |
ushort_ct |
unsigned short
| |
ushortp_ct |
unsigned short *
| |
ushortpp_ct |
unsigned short **
| |
ushortppp_ct |
unsigned short ***
| |
uint_ct |
unsigned int
| |
uintp_ct |
unsigned int *
| |
uintpp_ct |
unsigned int **
| |
int_ct |
int
| |
voidp_ct |
void *
| |
voidpp_ct |
void **
| |
charp_ct |
char *
| |
charpp_ct |
char **
| |
charppp_ct |
char ***
| |
long_ct |
long
| |
longp_ct |
long *
| |
longpp_ct |
long **
| |
long_st |
long
| |
longp_st |
long *
| |
longpp_st |
long **
| |
ulong_ct |
unsigned long
| |
ulongp_ct |
unsigned long *
| |
kushortp_ct |
const unsigned short *
| |
kushortpp_ct |
const unsigned short **
| |
kuintp_ct |
const unsigned int *
| |
kuintpp_ct |
const unsigned int **
| |
kucharp_ct |
const unsigned char *
| |
kucharpp_ct |
const unsigned char **
| |
kcharp_ct |
const char *
| |
kcharpp_ct |
const char **
| |
kvoidp_ct |
const void *
|
头文件 wstp.h 现在包含多个有关 Unicode 字符编码形式的新的错误定义.
错误代码 | 释义 | |
WSEPDATABAD | 在给定字符编码中,WSTP 遇到无效字符数据 | |
WSEPSCONVERT | 不能转换给定字符编码为 WSTP 编码 | |
WSEGSCONVERT | 不能转换 WSTP 编码为要求的字符编码 |
WSGetRawData()
|
WSGetData
()
| |
WSGetRawArgCount()
| ||
WSBytesToGet
()
|
WSRawBytesToGet()
| |
WSExpressionsToGet()
|
WSTakeLast()
| |
WSPutRawSize
()
|
WSPutRawData
()
| |
WSPutComposite()
| ||
WSBytesToPut
()
|
WSTestHead
()
| ||
WSCheckFunctionWithArg()
|
WSTestHead
()
| |
WSGetInteger
()
| ||
WSGetFloat
()
|
WSGetReal32
()
| |
WSGetDouble
()
|
WSGetReal64
()
| |
WSGetLongDouble()
|
WSGetReal128
()
| |
WSGetShortIntegerArrayData()
|
WSGetInteger16ArrayData()
| |
WSGetIntegerArrayData()
|
WSGetInteger32ArrayData()
| |
WSGetLongIntegerArrayData()
| WSGetInteger64ArrayData() for 64-bit integers or WSGetInteger32ArrayData() for 32-bit integers | |
WSGetFloatArrayData()
|
WSGetReal32ArrayData()
| |
WSGetDoubleArrayData()
|
WSGetReal64ArrayData()
| |
WSGetLongDoubleArrayData()
|
WSGetReal128ArrayData()
| |
WSGetShortIntegerArray()
| ||
WSGetLongIntegerArray()
| ||
WSGetFloatArray()
| ||
WSGetDoubleArray()
| ||
WSGetLongDoubleArray()
| ||
WSDisownShortIntegerArray()
| ||
WSDisownIntegerArray
()
| ||
WSDisownLongIntegerArray()
| ||
WSDisownFloatArray()
| ||
WSDisownDoubleArray()
| ||
WSDisownLongDoubleArray()
| ||
WSDisownIntegerList
()
| ||
WSDisownRealList
()
| ||
WSPutInteger
()
| ||
WSPutFloat
()
|
WSPutReal32
()
| |
WSPutDouble
()
|
WSPutReal64
()
| |
WSPutLongDouble()
|
WSPutReal128
()
| |
WSPutShortIntegerArrayData()
|
WSPutInteger16ArrayData()
| |
WSPutIntegerArrayData()
|
WSPutInteger32ArrayData()
| |
WSPutLongIntegerArrayData()
| WSPutInteger64ArrayData() for 64-bit integers or WSPutInteger32ArrayData() for 32-bit integers | |
WSPutFloatArrayData()
|
WSPutReal32ArrayData()
| |
WSPutDoubleArrayData()
|
WSPutReal64ArrayData()
| |
WSPutLongDoubleArrayData()
|
WSPutReal128ArrayData()
| |
WSPutShortIntegerArray()
| ||
WSPutIntegerArray()
| ||
WSPutLongIntegerArray()
| ||
WSPutFloatArray()
| ||
WSPutDoubleArray()
| ||
WSPutLongDoubleArray()
| ||
WSGetUnicodeSymbol()
| ||
WSPutUnicodeSymbol()
| ||
WSPut16BitCharacters()
|
WSPutUCS2Characters()
| |
WSDisownUnicodeString
()
| ||
WSDisownUnicodeSymbol()
|