diff --git a/attributes/Makefile.am b/attributes/Makefile.am index 92b792a23d2176e840250836acfa82264b34d6a7..c5b08a0b73608bbfcf1f6d80a9745f3669fe5fa7 100644 --- a/attributes/Makefile.am +++ b/attributes/Makefile.am @@ -78,6 +78,6 @@ uninstall-local: -rmdir $(DESTDIR)$(datadir)/maestro maestro-core-yaml.h: maestro-core.yaml - xxd -i $< | sed -e 's/unsigned int/const unsigned int/' > $@ + xxd -i $< | sed -e 's/unsigned int/const size_t/' > $@ ecmwf-yaml.h: ecmwf.yaml - xxd -i $< | sed -e 's/unsigned int/const unsigned int/' > $@ + xxd -i $< | sed -e 's/unsigned int/const size_t/' > $@ diff --git a/attributes/ecmwf-yaml.h b/attributes/ecmwf-yaml.h index 08c42fe02e40bfc40603f8b5ccecdc60fbeba6d7..302ea7dedcc0afbcdf3319876586338f986d2fec 100644 --- a/attributes/ecmwf-yaml.h +++ b/attributes/ecmwf-yaml.h @@ -155,4 +155,4 @@ unsigned char ecmwf_yaml[] = { 0x74, 0x65, 0x6f, 0x72, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x20, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x0a }; -const unsigned int ecmwf_yaml_len = 1859; +const size_t ecmwf_yaml_len = 1859; diff --git a/attributes/maestro-core-yaml.h b/attributes/maestro-core-yaml.h index 0f03c67408d5c97d2ce3690a89654c47e8b8222d..daafd9ef8db3bec15f44eb0856da9897c251f368 100644 --- a/attributes/maestro-core-yaml.h +++ b/attributes/maestro-core-yaml.h @@ -676,4 +676,4 @@ unsigned char maestro_core_yaml[] = { 0x66, 0x20, 0x6d, 0x61, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x79, 0x61, 0x6d, 0x6c, 0x29, 0x0a, 0x20, 0x0a }; -const unsigned int maestro_core_yaml_len = 8111; +const size_t maestro_core_yaml_len = 8111; diff --git a/attributes/maestro-schema.c b/attributes/maestro-schema.c index ac87c0d3e79c38504f2614a78575c289afd29493..7e16b81cb382fbd280c2c9161294d36b2dec1b20 100644 --- a/attributes/maestro-schema.c +++ b/attributes/maestro-schema.c @@ -101,7 +101,7 @@ #define NUM_BUILTIN_SCHEMATA 2 const struct { unsigned char *schema; - unsigned int schema_size; + uint64_t schema_size; } builtin_schema_texts[NUM_BUILTIN_SCHEMATA] = { /* be sure to keep the maestro core one first */ [0] = { .schema = maestro_core_yaml, .schema_size = maestro_core_yaml_len}, @@ -109,10 +109,10 @@ const struct { }; const unsigned char *MSTRO_SCHEMA_BUILTIN_YAML_CORE = maestro_core_yaml; -const unsigned int MSTRO_SCHEMA_BUILTIN_YAML_CORE_LEN = maestro_core_yaml_len; +const size_t MSTRO_SCHEMA_BUILTIN_YAML_CORE_LEN = maestro_core_yaml_len; const unsigned char *MSTRO_SCHEMA_BUILTIN_YAML_ECMWF = ecmwf_yaml; -const unsigned int MSTRO_SCHEMA_BUILTIN_YAML_ECMWF_LEN = ecmwf_yaml_len; +const size_t MSTRO_SCHEMA_BUILTIN_YAML_ECMWF_LEN = ecmwf_yaml_len; /* a placeholder variable that can be used to indicate an invalid pointer */ @@ -260,13 +260,13 @@ struct mstro_schema_ { #define NAMESPACE_PATTERN_EFLAGS 0 struct mstro_schema_type_ *schema_types; /**< list(include('maestro-user-type-def'), required=False) */ - unsigned schema_types_count; /**< number of entries in schema_types array */ + size_t schema_types_count; /**< number of entries in schema_types array */ struct mstro_schema_type_val *schema_type_vals; /**< list(include('maestro-user-typespec'), required=False) */ - unsigned schema_type_vals_count; /**< number of entries in schema_type_vals array */ + size_t schema_type_vals_count; /**< number of entries in schema_type_vals array */ struct mstro_schema_attribute_ *schema_attributes; /**< list(include('maestro-attribute-def'), required=False) */ - unsigned schema_attributes_count; /**< number of entries in schema_attributes array */ + size_t schema_attributes_count; /**< number of entries in schema_attributes array */ /* components filled at instantiation time */ mstro_symtab symtab; /**< symbol table for all legal attribute names in the schema */ diff --git a/include/maestro/attributes.h b/include/maestro/attributes.h index 5a66bafe6027b168b4c24c97da95f6e3327df601..73bf061dbf876ac7460977ce44370d5a9357e370 100644 --- a/include/maestro/attributes.h +++ b/include/maestro/attributes.h @@ -391,10 +391,10 @@ typedef struct mstro_schema_ *mstro_schema; /** Built-in schemata: */ extern const unsigned char *MSTRO_SCHEMA_BUILTIN_YAML_CORE; -extern const unsigned int MSTRO_SCHEMA_BUILTIN_YAML_CORE_LEN; +extern const size_t MSTRO_SCHEMA_BUILTIN_YAML_CORE_LEN; extern const unsigned char *MSTRO_SCHEMA_BUILTIN_YAML_ECMWF; -extern const unsigned int MSTRO_SCHEMA_BUILTIN_YAML_ECMWF_LEN; +extern const size_t MSTRO_SCHEMA_BUILTIN_YAML_ECMWF_LEN; /**@} (end of addtogroup MSTRO_Core) */