Reformat code
run astyle --style=linux on source files
This commit is contained in:
parent
c41a8ca6b4
commit
c801b183dc
6
coio.c
6
coio.c
|
@ -277,14 +277,12 @@ coio_debug()
|
|||
fprintf(stderr, ">>>\nCurrent tasks: %s\n", coio_current->name);
|
||||
|
||||
fprintf(stderr, "Sleeping tasks: ");
|
||||
for (t = coio_sleeping.head; t != NULL; t = t->next)
|
||||
{
|
||||
for (t = coio_sleeping.head; t != NULL; t = t->next) {
|
||||
fprintf(stderr, "%s ", t->name);
|
||||
}
|
||||
|
||||
fprintf(stderr, "\nReady tasks: ");
|
||||
for (t = coio_ready_list.head; t != NULL; t = t->next)
|
||||
{
|
||||
for (t = coio_ready_list.head; t != NULL; t = t->next) {
|
||||
fprintf(stderr, "%s ", t->name);
|
||||
}
|
||||
fprintf(stderr, "\n");
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
|
||||
#include <glib.h>
|
||||
|
||||
struct coio_source
|
||||
{
|
||||
struct coio_source {
|
||||
GSource base;
|
||||
};
|
||||
|
||||
|
@ -116,8 +115,7 @@ GSource* coio_gsource_create()
|
|||
{
|
||||
coro_create(&coio_sched_ctx, NULL, NULL, NULL, 0);
|
||||
|
||||
static GSourceFuncs funcs =
|
||||
{
|
||||
static GSourceFuncs funcs = {
|
||||
coio_source_prepare,
|
||||
coio_source_check,
|
||||
coio_source_dispatch,
|
||||
|
|
Loading…
Reference in a new issue