* Information about various block types
*
*/
-static const struct fres_block_desc *block_registry[FRES_NUM_BLOCKS] = {
+static const struct fres_block_desc *block_registry[__FRES_NUM_BLOCKS] = {
[FRES_BLOCK_LABEL] = &desc_default_label,
[FRES_BLOCK_RESOURCE] = &desc_default_resource,
[FRES_BLOCK_BASIC] = &desc_default_basic,
{
enum fres_block_type i;
if (!container) return;
- for (i=0; i<FRES_NUM_BLOCKS; i++) {
+ for (i=0; i<__FRES_NUM_BLOCKS; i++) {
fres_container_del_block(container, i);
}
dest = fres_container_new();
if (!dest) return NULL;
- for (type=0; type<FRES_NUM_BLOCKS; type++) {
+ for (type=0; type<__FRES_NUM_BLOCKS; type++) {
ret = fres_block_duplicate(&dest->blocks[type], &source->blocks[type], type);
if (ret) goto free_dest_err;
}
if (!container) goto err;
count=0;
- for (type=0; type<FRES_NUM_BLOCKS; type++) {
+ for (type=0; type<__FRES_NUM_BLOCKS; type++) {
if (container->blocks[type].state != FRES_BLOCK_EMPTY)
count++;
}
if (!CORBA_long_serialize(codec, &count)) goto err;
- for (type=0; type<FRES_NUM_BLOCKS; type++) {
+ for (type=0; type<__FRES_NUM_BLOCKS; type++) {
struct fres_block *b = &container->blocks[type];
if (b->state != FRES_BLOCK_EMPTY) {
ret = serialize_block(codec, type, b);
int ret, written = 0;
enum fres_block_type type;
- for (type=0; type<FRES_NUM_BLOCKS; type++) {
+ for (type=0; type<__FRES_NUM_BLOCKS; type++) {
const struct fres_block *b = &c->blocks[type];
switch (b->state) {
case FRES_BLOCK_EMPTY:
int num = 0;
enum fres_block_type type;
- for (type=0; type<FRES_NUM_BLOCKS; type++) {
+ for (type=0; type<__FRES_NUM_BLOCKS; type++) {
if (c->blocks[type].state != FRES_BLOCK_EMPTY) {
num++;
}
enum fres_block_type type;
int ret;
- for (type=0; type<FRES_NUM_BLOCKS; type++) {
+ for (type=0; type<__FRES_NUM_BLOCKS; type++) {
const struct fres_block *sb = &src->blocks[type];
struct fres_block *db = &dest->blocks[type];
enum fres_block_type type;
int ret;
- for (type=0; type<FRES_NUM_BLOCKS; type++) {
+ for (type=0; type<__FRES_NUM_BLOCKS; type++) {
const struct fres_block *sb = &src->blocks[type];
struct fres_block *db = &dest->blocks[type];