Further underspecifying pointers helps to avoid warnings.
Alright, all checks now officially disabled :-(
This commit is contained in:
parent
ce719465fe
commit
a373667c23
10
src/term.c
10
src/term.c
@ -1112,10 +1112,9 @@ term_iterate_deVar (Term term, int (*leaf) (Term t), int (*nodel) (Term t),
|
|||||||
|
|
||||||
//! Generic term iteration with state
|
//! Generic term iteration with state
|
||||||
int
|
int
|
||||||
term_iterate_state_deVar (Term term, int (*leaf) (Term t, void (*st)),
|
term_iterate_state_deVar (Term term, int (*leaf) (),
|
||||||
int (*nodel) (Term t, void (*st)),
|
int (*nodel) (),
|
||||||
int (*nodem) (Term t, void (*st)),
|
int (*nodem) (), int (*noder) (), void (*state))
|
||||||
int (*noder) (Term t, void (*st)), void (*state))
|
|
||||||
{
|
{
|
||||||
term = deVar (term);
|
term = deVar (term);
|
||||||
if (term != NULL)
|
if (term != NULL)
|
||||||
@ -1185,8 +1184,7 @@ term_iterate_state_deVar (Term term, int (*leaf) (Term t, void (*st)),
|
|||||||
* well. It is up to func to decide wether or not to recurse.
|
* well. It is up to func to decide wether or not to recurse.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
term_iterate_state_leaves (const Term term, int (*func) (Term t, void (*st)),
|
term_iterate_state_leaves (const Term term, int (*func) (), void (*state))
|
||||||
void (*state))
|
|
||||||
{
|
{
|
||||||
if (term != NULL)
|
if (term != NULL)
|
||||||
{
|
{
|
||||||
|
12
src/term.h
12
src/term.h
@ -197,15 +197,13 @@ int term_iterate (const Term term, int (*leaf) (Term t),
|
|||||||
int term_iterate_deVar (Term term, int (*leaf) (Term t),
|
int term_iterate_deVar (Term term, int (*leaf) (Term t),
|
||||||
int (*nodel) (Term t), int (*nodem) (Term t),
|
int (*nodel) (Term t), int (*nodem) (Term t),
|
||||||
int (*noder) (Term t));
|
int (*noder) (Term t));
|
||||||
int term_iterate_state_deVar (Term term, int (*leaf) (Term t, void (*st)),
|
int term_iterate_state_deVar (Term term, int (*leaf) (),
|
||||||
int (*nodel) (Term t, void (*state)),
|
int (*nodel) (),
|
||||||
int (*nodem) (Term t, void (*st)),
|
int (*nodem) (),
|
||||||
int (*noder) (Term t, void (*st)),
|
int (*noder) (), void (*state));
|
||||||
void (*state));
|
|
||||||
int term_iterate_leaves (const Term t, int (*func) (Term t));
|
int term_iterate_leaves (const Term t, int (*func) (Term t));
|
||||||
int term_iterate_state_leaves (const Term term,
|
int term_iterate_state_leaves (const Term term,
|
||||||
int (*func) (Term t, void (*st)),
|
int (*func) (), void (*state));
|
||||||
void (*state));
|
|
||||||
int term_iterate_open_leaves (const Term term, int (*func) (Term t));
|
int term_iterate_open_leaves (const Term term, int (*func) (Term t));
|
||||||
void term_rolelocals_are_variables ();
|
void term_rolelocals_are_variables ();
|
||||||
int term_encryption_level (const Term term);
|
int term_encryption_level (const Term term);
|
||||||
|
Loading…
Reference in New Issue
Block a user