3.4.3.2. Version name pairing
3.4.3.2. 版本名称配对
It is sometimes necessary to associate a version to an entity it applies to (e.g. extension or built-in kernel). This is done using a dedicated cl_name_version structure, defined as follows:
有时有必要将一个版本与它所应用的实体(例如扩展或内置内核)相关联。这是使用专用的cl_name_version结构完成的,定义如下:
typedef struct cl_name_version {
cl_version version;
char name[CL_NAME_VERSION_MAX_NAME_SIZE];
} cl_name_version;
The name
field is an array of CL_NAME_VERSION_MAX_NAME_SIZE
bytes used as storage for a NUL-terminated string whose maximum length is therefore CL_NAME_VERSION_MAX_NAME_SIZE - 1
.
名称字段是一个CL_NAME_VERSION_MAX_NAME_SIZE
字节数组,用作以NUL结尾的字符串的存储区,因此该字符串的最大长度为CL_NAME_VERSION_MAX_NAME_SIZE
-1。