const Eina_Model_Description *desc = model->desc;
unsigned int i;
- DBG("model %p (%s) refcount=%d deleted=%hhu",
+ DBG("model %p (%s) refcount=%d deleted=" FMT_UCHAR,
model, model->desc->cache.types[0]->name,
model->refcount, model->deleted);
{
const Eina_Model_Description *desc = model->desc;
- DBG("model %p (%s) refcount=%d deleted=%hhu",
+ DBG("model %p (%s) refcount=%d deleted=" FMT_UCHAR,
model, model->desc->cache.types[0]->name,
model->refcount, model->deleted);
static void
_eina_model_unref(Eina_Model *model)
{
- DBG("model %p (%s) refcount=%d deleted=%hhu",
+ DBG("model %p (%s) refcount=%d deleted=" FMT_UCHAR,
model, model->desc->cache.types[0]->name,
model->refcount, model->deleted);
eina_model_ref(Eina_Model *model)
{
EINA_MODEL_INSTANCE_CHECK_VAL(model, NULL);
- DBG("model %p (%s) refcount=%d deleted=%hhu",
+ DBG("model %p (%s) refcount=%d deleted=" FMT_UCHAR,
model, model->desc->cache.types[0]->name,
model->refcount, model->deleted);
model->refcount++;
{
const char *other_mem;
char buf[64];
- snprintf(buf, sizeof(buf), "%hhu", v);
+ snprintf(buf, sizeof(buf), FMT_UCHAR , v);
other_mem = buf; /* required due &buf == buf */
return eina_value_type_pset(convert, convert_mem, &other_mem);
}
{
const char *other_mem;
char buf[64];
- snprintf(buf, sizeof(buf), "%hhd", v);
+ snprintf(buf, sizeof(buf), FMT_CHAR, v);
other_mem = buf; /* required due &buf == buf */
return eina_value_type_pset(convert, convert_mem, &other_mem);
}
if (convert == EINA_VALUE_TYPE_UCHAR)
{
unsigned char other_mem;
- if ((sscanf(v, "%hhu", &other_mem) != 1) &&
- (sscanf(v, "%hhx", &other_mem) != 1) &&
- (sscanf(v, "%hho", &other_mem) != 1))
+ if ((sscanf(v, FMT_UCHAR, &other_mem) != 1) &&
+ (sscanf(v, FMT_XCHAR, &other_mem) != 1) &&
+ (sscanf(v, FMT_OCHAR, &other_mem) != 1))
return EINA_FALSE;
return eina_value_type_pset(convert, convert_mem, &other_mem);
}
else if (convert == EINA_VALUE_TYPE_CHAR)
{
char other_mem;
- if ((sscanf(v, "%hhd", &other_mem) != 1) &&
- (sscanf(v, "%hhx", &other_mem) != 1) &&
- (sscanf(v, "%hho", &other_mem) != 1))
+ if ((sscanf(v, FMT_CHAR, &other_mem) != 1) &&
+ (sscanf(v, FMT_XCHAR, &other_mem) != 1) &&
+ (sscanf(v, FMT_OCHAR, &other_mem) != 1))
return EINA_FALSE;
return eina_value_type_pset(convert, convert_mem, &other_mem);
}
if (first)
{
first = EINA_FALSE;
- if (!eina_strbuf_append_printf(str, "%02hhx", *ptr))
+ if (!eina_strbuf_append_printf(str, FMT_2XCHAR, *ptr))
goto error;
}
else
{
- if (!eina_strbuf_append_printf(str, " %02hhx", *ptr))
+ if (!eina_strbuf_append_printf(str, " " FMT_2XCHAR, *ptr))
goto error;
}
}