Skip to content

Commit

Permalink
Rename *meta* formatter => *indirect* formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Oct 22, 2017
1 parent 136a9c5 commit 4d7dd9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/fmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# define PARAM_MARK '%'
# define PARAM_BEGIN '{'
# define PARAM_META '@'
# define PARAM_INDIRECT '@'
# define PARAM_OPTIONS ':'
# define PARAM_END '}'

Expand Down Expand Up @@ -242,10 +242,10 @@ int fmt_vprint(struct fmt_stream * out, const char * format, va_list * arg){
case TYPE_PERCENT: result = PRINT_BUILTIN(out, param, arg, 0); break;
}

}else if(*param.id == PARAM_META){
/* print meta formatter */
fmt_formatter meta = va_arg(*arg, fmt_formatter);
result = meta(out, param.id + 1, param.options, arg);
}else if(*param.id == PARAM_INDIRECT){
/* print indirect formatter */
fmt_formatter indirect_formatter = va_arg(*arg, fmt_formatter);
result = indirect_formatter(out, param.id + 1, param.options, arg);

}else{
/* print extended parameter */
Expand Down

0 comments on commit 4d7dd9e

Please sign in to comment.