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
df232294
Commit
df232294
authored
Dec 26, 2013
by
Jens Gustedt
Browse files
don't declare functions with side effect as pure
parent
9a932dd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
p99/p99_map.h
View file @
df232294
...
...
@@ -109,7 +109,6 @@ p00_strcat_state* p00_strcat(p00_strcat_state *restrict p00_des, char const*rest
return
p00_des
;
}
P99_PURE_FUNCTION
p99_inline
char
*
p00_strcat_terminate
(
p00_strcat_state
*
restrict
p00_des
)
{
return
p00_des
->
p00_buf
;
...
...
p99/p99_try.h
View file @
df232294
...
...
@@ -265,7 +265,6 @@ do { \
} while(0)
#endif
P99_PURE_FUNCTION
p99_inline
int
p00_throw_call_zero
(
int
p00_err
,
errno_t
p00_def
,
...
...
@@ -326,7 +325,6 @@ p00_throw_call_zero(F(__VA_ARGS__), E, p00_unwind_top, P99_STRINGIFY(__LINE__),
#define P99_THROW_CALL_NOT_ZERO(F, E, ...) \
p00_throw_call_zero(!F(__VA_ARGS__), E, p00_unwind_top, P99_STRINGIFY(__LINE__), __func__, #F ", zero return")
P99_PURE_FUNCTION
p99_inline
int
p00_throw_call_thrd
(
int
p00_err
,
p00_jmp_buf0
*
p00_top
,
...
...
@@ -362,7 +360,6 @@ int p00_throw_call_thrd(int p00_err,
#define P99_THROW_CALL_THRD(F, ...) \
p00_throw_call_thrd(F(__VA_ARGS__), p00_unwind_top, P99_STRINGIFY(__LINE__), __func__, #F ", no thrd_success")
P99_PURE_FUNCTION
p99_inline
int
p00_throw_call_neg
(
int
p00_neg
,
errno_t
p00_def
,
...
...
@@ -398,7 +395,6 @@ p00_throw_call_neg(F(__VA_ARGS__), E, p00_unwind_top, P99_STRINGIFY(__LINE__), _
**/
#define P99_THROW_CALL_NEG(F, E, ...) P00_THROW_CALL_NEG(F, E, __VA_ARGS__)
P99_PURE_FUNCTION
p99_inline
int
p00_throw_call_negate
(
int
p00_neg
,
errno_t
p00_def
,
...
...
@@ -440,7 +436,6 @@ p00_throw_call_negate(F(__VA_ARGS__), E, p00_unwind_top, P99_STRINGIFY(__LINE__)
**/
#define P99_THROW_CALL_NEGATE(F, E, ...) P00_THROW_CALL_NEGATE(F, E, __VA_ARGS__)
P99_PURE_FUNCTION
p99_inline
void
*
p00_throw_call_voidp
(
void
*
p00_p
,
errno_t
p00_def
,
...
...
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