Skip to content

Commit

Permalink
When passing 'container' of kws, use fsqlf_kwmap_t
Browse files Browse the repository at this point in the history
Use exact struct only when one instance of kw is needed.
  • Loading branch information
dnsmkl committed Feb 23, 2016
1 parent 42d46cc commit 6bfae31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/lib_fsqlf.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ enum fsqlf_status fsqlf_kwconffile_read_default(fsqlf_kwmap_t kwmap);


void fsqlf_format_file(fsqlf_kwmap_t kwmap, FILE *fin, FILE *fout);
void fsqlf_format_bytes(struct fsqlf_kw_conf *kwall,
void fsqlf_format_bytes(fsqlf_kwmap_t kwmap,
const char *bytes_in, int len, char **bytes_out
);

Expand Down
4 changes: 2 additions & 2 deletions lib_fsqlf/formatter/lex_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <lib_fsqlf.h>


void fsqlf_format_bytes(struct fsqlf_kw_conf *kwall,
void fsqlf_format_bytes(fsqlf_kwmap_t kwmap,
const char *bytes_in, int len, char **bytes_out
)
{
Expand All @@ -12,7 +12,7 @@ void fsqlf_format_bytes(struct fsqlf_kw_conf *kwall,
f_state.currindent = 0;
f_state.left_p = 0;
f_state.right_p = 0;
f_state.kwall = kwall;
f_state.kwall = kwmap;
f_state.bout.len_used = 0;
f_state.bout.len_alloc = len * 1.5;
f_state.bout.buffer = malloc(f_state.bout.len_alloc);
Expand Down

0 comments on commit 6bfae31

Please sign in to comment.