str_printfa(hash, "%x", value);
while ((int)str_len(hash) < ctx->offset)
str_insert(hash, 0, "0");
- ctx->offset = 0;
+ ctx->offset = 0;
return str_c(hash);
}
str_printfa(hash, "%x", (unsigned int)value);
while ((int)str_len(hash) < ctx->offset)
str_insert(hash, 0, "0");
- ctx->offset = 0;
+ ctx->offset = 0;
return str_c(hash);
}
static const char *
var_expand_short(const struct var_expand_table *table, char key)
{
- const struct var_expand_table *t;
+ const struct var_expand_table *t;
if (table != NULL) {
for (t = table; !TABLE_LAST(t); t++) {
const struct var_expand_func_table *func_table,
const void *key_start, size_t key_len, void *context)
{
- const struct var_expand_table *t;
+ const struct var_expand_table *t;
const char *error, *key, *value = NULL;
if (table != NULL) {
const struct var_expand_func_table *func_table,
void *context)
{
- const struct var_expand_modifier *m;
+ const struct var_expand_modifier *m;
const char *var;
- struct var_expand_context ctx;
+ struct var_expand_context ctx;
const char *(*modifier[MAX_MODIFIER_COUNT])
(const char *, struct var_expand_context *);
const char *end;
ctx.width = sign * ctx.width;
}
- modifier_count = 0;
+ modifier_count = 0;
while (modifier_count < MAX_MODIFIER_COUNT) {
modifier[modifier_count] = NULL;
for (m = modifiers; m->key != '\0'; m++) {