{
slang_storage_array *arr = NULL;
- agg->arrays =
- (slang_storage_array *) slang_alloc_realloc(agg->arrays,
- agg->count *
- sizeof(slang_storage_array),
- (agg->count +
- 1) *
- sizeof
- (slang_storage_array));
+ agg->arrays = (slang_storage_array *)
+ slang_alloc_realloc(agg->arrays,
+ agg->count * sizeof(slang_storage_array),
+ (agg->count + 1) * sizeof(slang_storage_array));
if (agg->arrays != NULL) {
arr = agg->arrays + agg->count;
if (!slang_storage_array_construct(arr))
return GL_TRUE;
}
+
static GLboolean
aggregate_variables(slang_storage_aggregate * agg,
slang_variable_scope * vars, slang_function_scope * funcs,
return GL_TRUE;
}
+
GLboolean
_slang_aggregate_variable(slang_storage_aggregate * agg,
slang_type_specifier * spec, GLuint array_len,
}
}
-/* _slang_sizeof_type() */
GLuint
_slang_sizeof_type(slang_storage_type type)
return sizeof(GLfloat);
}
-/* _slang_sizeof_aggregate() */
GLuint
_slang_sizeof_aggregate(const slang_storage_aggregate * agg)
return size;
}
-/* _slang_flatten_aggregate () */
GLboolean
_slang_flatten_aggregate(slang_storage_aggregate * flat,