Reformat code

run astyle --style=linux on source files
This commit is contained in:
Moritz Bitsch 2018-07-27 10:45:00 +02:00
parent c41a8ca6b4
commit c801b183dc
6 changed files with 42 additions and 46 deletions

6
coio.c
View file

@ -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");

View file

@ -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,