Added const to declarations

This commit is contained in:
petermlm
2016-04-17 18:43:10 +01:00
parent 2b643c729b
commit 97d634a708
2 changed files with 8 additions and 8 deletions

8
mpc.h
View File

@@ -276,10 +276,10 @@ void mpc_ast_delete(mpc_ast_t *a);
void mpc_ast_print(mpc_ast_t *a);
void mpc_ast_print_to(mpc_ast_t *a, FILE *fp);
int mpc_ast_get_index(mpc_ast_t *ast, char *tag);
int mpc_ast_get_index_lb(mpc_ast_t *ast, char *tag, int lb);
mpc_ast_t *mpc_ast_get_child(mpc_ast_t *ast, char *tag);
mpc_ast_t *mpc_ast_get_child_lb(mpc_ast_t *ast, char *tag, int lb);
int mpc_ast_get_index(mpc_ast_t *ast, const char *tag);
int mpc_ast_get_index_lb(mpc_ast_t *ast, const char *tag, int lb);
mpc_ast_t *mpc_ast_get_child(mpc_ast_t *ast, const char *tag);
mpc_ast_t *mpc_ast_get_child_lb(mpc_ast_t *ast, const char *tag, int lb);
/*
** Warning: This function currently doesn't test for equality of the `state` member!