summaryrefslogtreecommitdiff
path: root/tests/gl_array_list.c
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-12-28 12:58:57 +0900
committerJinWang An <jinwang.an@samsung.com>2021-12-28 12:58:57 +0900
commit253a2fc5d9cd390d78a209f08af8ae31b13c44d8 (patch)
tree5ec9aa82542909ecfc0859277d941528857a59b7 /tests/gl_array_list.c
parent931b01b091932a1f796c23379ea32abb68bd5895 (diff)
downloadm4-253a2fc5d9cd390d78a209f08af8ae31b13c44d8.tar.gz
m4-253a2fc5d9cd390d78a209f08af8ae31b13c44d8.tar.bz2
m4-253a2fc5d9cd390d78a209f08af8ae31b13c44d8.zip
Imported Upstream version 1.4.18upstream/1.4.18
Diffstat (limited to 'tests/gl_array_list.c')
-rw-r--r--tests/gl_array_list.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/gl_array_list.c b/tests/gl_array_list.c
index af5f891..66cf34b 100644
--- a/tests/gl_array_list.c
+++ b/tests/gl_array_list.c
@@ -1,5 +1,5 @@
/* Sequential list data type implemented by an array.
- Copyright (C) 2006-2013 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
@@ -120,7 +120,7 @@ gl_array_size (gl_list_t list)
return list->count;
}
-static const void *
+static const void * _GL_ATTRIBUTE_PURE
gl_array_node_value (gl_list_t list, gl_list_node_t node)
{
uintptr_t index = NODE_TO_INDEX (node);
@@ -142,7 +142,7 @@ gl_array_node_nx_set_value (gl_list_t list, gl_list_node_t node,
return 0;
}
-static gl_list_node_t
+static gl_list_node_t _GL_ATTRIBUTE_PURE
gl_array_next_node (gl_list_t list, gl_list_node_t node)
{
uintptr_t index = NODE_TO_INDEX (node);
@@ -156,7 +156,7 @@ gl_array_next_node (gl_list_t list, gl_list_node_t node)
return NULL;
}
-static gl_list_node_t
+static gl_list_node_t _GL_ATTRIBUTE_PURE
gl_array_previous_node (gl_list_t list, gl_list_node_t node)
{
uintptr_t index = NODE_TO_INDEX (node);
@@ -169,7 +169,7 @@ gl_array_previous_node (gl_list_t list, gl_list_node_t node)
return NULL;
}
-static const void *
+static const void * _GL_ATTRIBUTE_PURE
gl_array_get_at (gl_list_t list, size_t position)
{
size_t count = list->count;
@@ -454,7 +454,7 @@ gl_array_iterator (gl_list_t list)
result.count = list->count;
result.p = list->elements + 0;
result.q = list->elements + list->count;
-#ifdef lint
+#if defined GCC_LINT || defined lint
result.i = 0;
result.j = 0;
#endif
@@ -475,7 +475,7 @@ gl_array_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index)
result.count = list->count;
result.p = list->elements + start_index;
result.q = list->elements + end_index;
-#ifdef lint
+#if defined GCC_LINT || defined lint
result.i = 0;
result.j = 0;
#endif