Skip to content

Commit

Permalink
style: format C macros
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 8, 2022
1 parent 5ee9e57 commit 1bbc022
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/nokogiri/xml_sax_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ comment_func(void *ctx, const xmlChar *value)
rb_funcall(doc, id_comment, 1, str);
}

PRINTFLIKE_DECL(2,3)
PRINTFLIKE_DECL(2, 3)
static void
warning_func(void *ctx, const char *msg, ...)
{
Expand All @@ -211,7 +211,7 @@ warning_func(void *ctx, const char *msg, ...)
rb_funcall(doc, id_warning, 1, rb_message);
}

PRINTFLIKE_DECL(2,3)
PRINTFLIKE_DECL(2, 3)
static void
error_func(void *ctx, const char *msg, ...)
{
Expand Down
2 changes: 1 addition & 1 deletion ext/nokogiri/xml_xpath_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ lookup(void *ctx,
return NULL;
}

PRINTFLIKE_DECL(2,3)
PRINTFLIKE_DECL(2, 3)
NORETURN_DECL
static void
xpath_generic_exception_handler(void *ctx, const char *msg, ...)
Expand Down
2 changes: 1 addition & 1 deletion ext/nokogiri/xslt_stylesheet.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dealloc(nokogiriXsltStylesheetTuple *wrapper)
ruby_xfree(wrapper);
}

PRINTFLIKE_DECL(2,3)
PRINTFLIKE_DECL(2, 3)
static void
xslt_generic_error_handler(void *ctx, const char *msg, ...)
{
Expand Down

0 comments on commit 1bbc022

Please sign in to comment.