Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jens Gustedt
P99 - macros and functions for C99
Commits
c08faeb6
Commit
c08faeb6
authored
Dec 03, 2012
by
(no author)
Committed by
Jens Gustedt
Dec 03, 2012
Browse files
code indentation
Signed-off-by:
Jens Gustedt
<
Jens.Gustedt@loria.fr
>
parent
78e653f8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
p99/p99_qsort.h
View file @
c08faeb6
This diff is collapsed.
Click to expand it.
p99/p99_swap.h
View file @
c08faeb6
...
@@ -165,15 +165,15 @@ P00_DOCUMENT_PERMITTED_ARGUMENT(P99_SWAP, 1)
...
@@ -165,15 +165,15 @@ P00_DOCUMENT_PERMITTED_ARGUMENT(P99_SWAP, 1)
P00_DOCUMENT_PERMITTED_ARGUMENT
(
P99_QSORT
,
0
)
P00_DOCUMENT_PERMITTED_ARGUMENT
(
P99_QSORT
,
0
)
#define P99_QSORT(TAB, NB, ...) \
#define P99_QSORT(TAB, NB, ...)
\
P99_IF_LT(P99_NARG(__VA_ARGS__), 2) \
P99_IF_LT(P99_NARG(__VA_ARGS__), 2)
\
(qsort((TAB), (NB), sizeof (TAB)[0], __VA_ARGS__)) \
(qsort((TAB), (NB), sizeof (TAB)[0], __VA_ARGS__))
\
(qsort_s((TAB), (NB), sizeof (TAB)[0], __VA_ARGS__))
(qsort_s((TAB), (NB), sizeof (TAB)[0], __VA_ARGS__))
P00_DOCUMENT_PERMITTED_ARGUMENT
(
P99_ASORT
,
0
)
P00_DOCUMENT_PERMITTED_ARGUMENT
(
P99_ASORT
,
0
)
#define P99_ASORT(TAB, ...)
\
#define P99_ASORT(TAB, ...) \
P99_IF_LT(P99_NARG(__VA_ARGS__), 2)
\
P99_IF_LT(P99_NARG(__VA_ARGS__), 2) \
(qsort((TAB), P99_ALEN(TAB), sizeof (TAB)[0], __VA_ARGS__))
\
(qsort((TAB), P99_ALEN(TAB), sizeof (TAB)[0], __VA_ARGS__)) \
(qsort_s((TAB), P99_ALEN(TAB), sizeof (TAB)[0], __VA_ARGS__))
(qsort_s((TAB), P99_ALEN(TAB), sizeof (TAB)[0], __VA_ARGS__))
#endif
/* !P99_SWAP_H_ */
#endif
/* !P99_SWAP_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment