From 236781a2c13feb96a6dd56f762b2df6fec1dfee5 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 22 Dec 2016 23:40:01 -0800 Subject: More C99-ification. Also end the _t thing for types (ISO C rules). --- tests/list.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests/list.c') diff --git a/tests/list.c b/tests/list.c index 8c3c6675..67e3106b 100644 --- a/tests/list.c +++ b/tests/list.c @@ -1,31 +1,31 @@ -/* - * Copyright 2016 Garrett D'Amore - * - * This software is supplied under the terms of the MIT License, a - * copy of which should be located in the distribution where this - * file was obtained (LICENSE.txt). A copy of the license may also be - * found online at https://opensource.org/licenses/MIT. - */ +// +// Copyright 2016 Garrett D'Amore +// +// This software is supplied under the terms of the MIT License, a +// copy of which should be located in the distribution where this +// file was obtained (LICENSE.txt). A copy of the license may also be +// found online at https://opensource.org/licenses/MIT. +// #include "core/list.c" #include "convey.h" typedef struct { int pad[2]; - nni_list_node_t nodea; - nni_list_node_t nodeb; + nni_list_node nodea; + nni_list_node nodeb; } mystruct; TestMain("Linked Lists", { Convey("Given a couple lists", { - nni_list_t alist; - nni_list_t blist; + nni_list alist; + nni_list blist; NNI_LIST_INIT(&alist, mystruct, nodea); NNI_LIST_INIT(&blist, mystruct, nodeb); So(alist.ll_offset == 8); - So(blist.ll_offset == (8 + sizeof (nni_list_node_t))); + So(blist.ll_offset == (8 + sizeof (nni_list_node))); Convey("The list starts empty", { So(nni_list_first(&alist) == NULL); -- cgit v1.2.3-70-g09d2