Permalink
Browse files

Rename

  • Loading branch information...
1 parent d95fcf2 commit 848c8794c73eb178cda3a8bcf8c22783488df229 @rsky committed Aug 31, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 device.c
  2. +2 −2 opencl.c
  3. +1 −1 php_opencl.h
View
@@ -20,7 +20,7 @@ static const phpcl_info_param_t device_info_params[] = {
{ "max_compute_units", CL_DEVICE_MAX_COMPUTE_UNITS, INFO_TYPE_UINT },
{ "max_work_item_dimensions", CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS, INFO_TYPE_UINT },
{ "max_work_group_size", CL_DEVICE_MAX_WORK_GROUP_SIZE, INFO_TYPE_SIZE },
- { "max_work_item_sizes", CL_DEVICE_MAX_WORK_ITEM_SIZES, INFO_TYPE_CALLBACK },
+ { "max_work_item_sizes", CL_DEVICE_MAX_WORK_ITEM_SIZES, INFO_TYPE_EXTRA },
{ "preferred_vector_width_char", CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR, INFO_TYPE_SIZE },
{ "preferred_vector_width_short", CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT, INFO_TYPE_SIZE },
{ "preferred_vector_width_int", CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT, INFO_TYPE_SIZE },
View
@@ -778,7 +778,7 @@ zval *phpcl_get_info(phpcl_get_info_func_t get_info,
cl_int err = CL_SUCCESS;
zval *zinfo = NULL;
- if (param->type != INFO_TYPE_CALLBACK) {
+ if (param->type != INFO_TYPE_EXTRA) {
MAKE_STD_ZVAL(zinfo);
}
@@ -847,7 +847,7 @@ zval *phpcl_get_info(phpcl_get_info_func_t get_info,
}
break;
- case INFO_TYPE_CALLBACK: {
+ case INFO_TYPE_EXTRA: {
zval *entry = get_info_ex(obj1, obj2, param->name TSRMLS_CC);
if (entry) {
zinfo = entry;
View
@@ -61,7 +61,7 @@ typedef enum {
INFO_TYPE_ULONG,
INFO_TYPE_STRING,
INFO_TYPE_PLATFORM,
- INFO_TYPE_CALLBACK,
+ INFO_TYPE_EXTRA,
} phpcl_info_type_t;
typedef struct {

0 comments on commit 848c879

Please sign in to comment.