Commit 9f2c43e4 authored by Brice Videau's avatar Brice Videau
Browse files

Merge branch 'comment-const-tweaks' into 'master'

Improve English in the comments of the main header

See merge request !11
parents 95699870 266fb1ce
Pipeline #10088 failed
......@@ -4,7 +4,7 @@
#include "../excit.h"
struct excit_s {
struct excit_func_table_s *func_table;
const struct excit_func_table_s *func_table;
ssize_t dimension;
enum excit_type_e type;
void *data;
......
......@@ -75,7 +75,7 @@ int excit_get_data(excit_t it, void **data)
return EXCIT_SUCCESS;
}
int excit_set_func_table(excit_t it, struct excit_func_table_s *func_table)
int excit_set_func_table(excit_t it, const struct excit_func_table_s *func_table)
{
if (!it)
return -EXCIT_EINVAL;
......@@ -83,7 +83,7 @@ int excit_set_func_table(excit_t it, struct excit_func_table_s *func_table)
return EXCIT_SUCCESS;
}
int excit_get_func_table(excit_t it, struct excit_func_table_s **func_table)
int excit_get_func_table(excit_t it, const struct excit_func_table_s **func_table)
{
if (!it)
return -EXCIT_EINVAL;
......@@ -145,7 +145,7 @@ error:
return NULL;
}
excit_t excit_alloc_user(struct excit_func_table_s *func_table,
excit_t excit_alloc_user(const struct excit_func_table_s *func_table,
size_t data_size)
{
excit_t it;
......
This diff is collapsed.
......@@ -367,17 +367,17 @@ error:
}
int excit_tleaf_init(excit_t it,
const ssize_t depth,
ssize_t depth,
const ssize_t *arities,
const excit_t *indexes,
const enum tleaf_it_policy_e policy,
enum tleaf_it_policy_e policy,
const ssize_t *user_policy)
{
return tleaf_init_with_it(it, depth, arities, indexes, policy,
user_policy, NULL, NULL);
}
static int tleaf_split_levels(excit_t levels, const ssize_t depth, const ssize_t n,
static int tleaf_split_levels(excit_t levels, ssize_t depth, ssize_t n,
excit_t **out)
{
*out = malloc(sizeof(**out) * n);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment