Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler and documentation cleanup #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/index.html.sss
Original file line number Diff line number Diff line change
Expand Up @@ -2600,7 +2600,7 @@ echo "${sglib_define_list_functions_parameters}"
</td><td VALIGN="top" WIDTH="1%"><i>function</i></b>
</td><td VALIGN="top" WIDTH="70%">
<a name="sglib_list_type_find_member"></a>
<code><b><font face="Arial" color="909090">type</font> *sglib_<font face="Arial" color="909090">type</font>_find_member(<font face="Arial" color="909090">type</font> **list, <font face="Arial" color="909090">type</font> *elem)</b></code>
<code><b><font face="Arial" color="909090">type</font> *sglib_<font face="Arial" color="909090">type</font>_find_member(<font face="Arial" color="909090">type</font> *list, <font face="Arial" color="909090">type</font> *elem)</b></code>
<br>
<br>
find an element in the list. The element is searched using <a href="#comparator_equality">comparator equality</a>.
Expand Down Expand Up @@ -3159,7 +3159,7 @@ echo "${sglib_define_sorted_list_functions_parameters}"
</td><td VALIGN="top" WIDTH="1%"><i>function</i></b>
</td><td VALIGN="top" WIDTH="70%">
<a name="sglib_sorted_list_type_find_member"></a>
<code><b><font face="Arial" color="909090">type</font> *sglib_<font face="Arial" color="909090">type</font>_find_member(<font face="Arial" color="909090">type</font> **list, <font face="Arial" color="909090">type</font> *elem)</b></code>
<code><b><font face="Arial" color="909090">type</font> *sglib_<font face="Arial" color="909090">type</font>_find_member(<font face="Arial" color="909090">type</font> *list, <font face="Arial" color="909090">type</font> *elem)</b></code>
<br>
<br>
find an element in the list. The element is searched using <a href="#comparator_equality">comparator equality</a>.
Expand Down Expand Up @@ -3804,7 +3804,7 @@ echo "${sglib_define_dl_list_functions_parameters}"
</td><td VALIGN="top" WIDTH="1%"><i>function</i></b>
</td><td VALIGN="top" WIDTH="70%">
<a name="sglib_dl_list_type_find_member"></a>
<code><b><font face="Arial" color="909090">type</font> *sglib_<font face="Arial" color="909090">type</font>_find_member(<font face="Arial" color="909090">type</font> **list, <font face="Arial" color="909090">type</font> *elem)</b></code>
<code><b><font face="Arial" color="909090">type</font> *sglib_<font face="Arial" color="909090">type</font>_find_member(<font face="Arial" color="909090">type</font> *list, <font face="Arial" color="909090">type</font> *elem)</b></code>
<br>
<br>
find an element in the list. The element is searched using <a href="#comparator_equality">comparator equality</a>.
Expand Down Expand Up @@ -4409,7 +4409,7 @@ echo "${sglib_define_rbtree_functions_parameters}"
</td><td VALIGN="top" WIDTH="1%"><i>function</i></b>
</td><td VALIGN="top" WIDTH="70%">
<a name="sglib_rbtree_type_find_member"></a>
<code><b><font face="Arial" color="909090">type</font> *sglib_<font face="Arial" color="909090">type</font>_find_member(<font face="Arial" color="909090">type</font> **tree, <font face="Arial" color="909090">type</font> *elem)</b></code>
<code><b><font face="Arial" color="909090">type</font> *sglib_<font face="Arial" color="909090">type</font>_find_member(<font face="Arial" color="909090">type</font> *tree, <font face="Arial" color="909090">type</font> *elem)</b></code>
<br>
<br>
find an element in the tree. The element is searched using <a href="#comparator_equality">comparator equality</a>.
Expand Down
2 changes: 1 addition & 1 deletion samples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ runall: arraysort arraysort1 arraybinsearch listsort listinsertsort listinsertso
+make clean

%.exe: %.c ../sglib.h
$(CC) -std=gnu89 -Wall -Wextra -pedantic -Wno-unused-function -I.. $*.c -o $*.exe
$(CC) -std=gnu89 -Wall -Werror -Wextra -pedantic -Wno-unused-function -I.. $*.c -o $*.exe

arraysort: arraysort.exe ../sglib.h
./$< 6 7 3 4 1 4 1 3 5
Expand Down
2 changes: 1 addition & 1 deletion sglib.h
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@
return(SGLIB_QUEUE_IS_EMPTY(elem_type, q->afield, q->ifield, q->jfield));\
}\
int sglib_##queue_type##_is_full(queue_type *q) {\
return(SGLIB_QUEUE_IS_FULL(elem_type, q->afield, q->ifield, q->jfield));\
return(SGLIB_QUEUE_IS_FULL(elem_type, q->afield, q->ifield, q->jfield, dim));\
}\
elem_type sglib_##queue_type##_first_element(queue_type *q) {\
return(SGLIB_QUEUE_FIRST_ELEMENT(elem_type, q->afield, q->ifield, q->jfield));\
Expand Down