diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-22 23:40:01 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-22 23:40:01 -0800 |
| commit | 236781a2c13feb96a6dd56f762b2df6fec1dfee5 (patch) | |
| tree | f04211282c1e9e57e6dd9def60a11db1e4545906 /tests/list.c | |
| parent | bca0a27e2f4978a5a74748b07613c0e30014880c (diff) | |
| download | nng-236781a2c13feb96a6dd56f762b2df6fec1dfee5.tar.gz nng-236781a2c13feb96a6dd56f762b2df6fec1dfee5.tar.bz2 nng-236781a2c13feb96a6dd56f762b2df6fec1dfee5.zip | |
More C99-ification. Also end the _t thing for types (ISO C rules).
Diffstat (limited to 'tests/list.c')
| -rw-r--r-- | tests/list.c | 26 |
1 files changed, 13 insertions, 13 deletions
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 <garrett@damore.org> - * - * 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 <garrett@damore.org> +// +// 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); |
