Uncrustify maxscale

See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
This commit is contained in:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -34,51 +34,51 @@ static int test_read(DCB* dcb)
{
return 1;
}
static int test_write(DCB *dcb, GWBUF* buf)
static int test_write(DCB* dcb, GWBUF* buf)
{
return 1;
}
static int test_write_ready(DCB *dcb)
static int test_write_ready(DCB* dcb)
{
return 1;
}
static int test_error(DCB *dcb)
static int test_error(DCB* dcb)
{
return 1;
}
static int test_hangup(DCB *dcb)
static int test_hangup(DCB* dcb)
{
return 1;
}
static int test_accept(DCB *dcb)
static int test_accept(DCB* dcb)
{
return 1;
}
static int test_connect(struct dcb *dcb, struct server *srv, struct session *ses)
static int test_connect(struct dcb* dcb, struct server* srv, struct session* ses)
{
return 1;
}
static int test_close(DCB *dcb)
static int test_close(DCB* dcb)
{
return 1;
}
static int test_listen(DCB *dcb, char *config)
static int test_listen(DCB* dcb, char* config)
{
return 1;
}
static int test_auth(DCB* dcb, struct server *srv, struct session *ses, GWBUF *buf)
static int test_auth(DCB* dcb, struct server* srv, struct session* ses, GWBUF* buf)
{
return 1;
}
static int test_session(DCB *dcb, void* data)
static int test_session(DCB* dcb, void* data)
{
return 1;
}
static char *test_default_auth()
static char* test_default_auth()
{
return "NullAuthAllow";
}
static int test_connection_limit(DCB *dcb, int limit)
static int test_connection_limit(DCB* dcb, int limit)
{
return 0;
}
@ -95,18 +95,18 @@ MXS_MODULE* MXS_CREATE_MODULE()
{
static MXS_PROTOCOL MyObject =
{
test_read, /**< Read - EPOLLIN handler */
test_write, /**< Write - data from gateway */
test_write_ready, /**< WriteReady - EPOLLOUT handler */
test_error, /**< Error - EPOLLERR handler */
test_hangup, /**< HangUp - EPOLLHUP handler */
test_accept, /**< Accept */
test_connect, /**< Connect */
test_close, /**< Close */
test_listen, /**< Create a listener */
test_auth, /**< Authentication */
test_default_auth, /**< Default authenticator */
test_connection_limit, /**< Connection limit */
test_read, /**< Read - EPOLLIN handler */
test_write, /**< Write - data from gateway */
test_write_ready, /**< WriteReady - EPOLLOUT handler */
test_error, /**< Error - EPOLLERR handler */
test_hangup, /**< HangUp - EPOLLHUP handler */
test_accept, /**< Accept */
test_connect, /**< Connect */
test_close, /**< Close */
test_listen, /**< Create a listener */
test_auth, /**< Authentication */
test_default_auth, /**< Default authenticator */
test_connection_limit, /**< Connection limit */
NULL,
NULL
};
@ -120,10 +120,10 @@ MXS_MODULE* MXS_CREATE_MODULE()
"V1.1.0",
MXS_NO_MODULE_CAPABILITIES,
&MyObject,
NULL, /* Process init. */
NULL, /* Process finish. */
NULL, /* Thread init. */
NULL, /* Thread finish. */
NULL, /* Process init. */
NULL, /* Process finish. */
NULL, /* Thread init. */
NULL, /* Thread finish. */
{
{MXS_END_MODULE_PARAMS}
}