aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/tables.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/solvers/tables.h')
-rw-r--r--src/solvers/tables.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/solvers/tables.h b/src/solvers/tables.h
index 1e76fc1..b7a1079 100644
--- a/src/solvers/tables.h
+++ b/src/solvers/tables.h
@@ -8,6 +8,7 @@ STATIC int64_t readtableinfo_n(
8 size_t, const unsigned char *, uint8_t, tableinfo_t [static 1]); 8 size_t, const unsigned char *, uint8_t, tableinfo_t [static 1]);
9STATIC int64_t writetableinfo( 9STATIC int64_t writetableinfo(
10 const tableinfo_t [static 1], size_t, unsigned char *); 10 const tableinfo_t [static 1], size_t, unsigned char *);
11STATIC void append_name(tableinfo_t [static 1], const char *);
11 12
12STATIC uint64_t 13STATIC uint64_t
13read_unaligned_u64(const unsigned char buf[static sizeof(uint64_t)]) 14read_unaligned_u64(const unsigned char buf[static sizeof(uint64_t)])
@@ -135,3 +136,14 @@ writetableinfo(
135 136
136 return NISSY_OK; 137 return NISSY_OK;
137} 138}
139
140STATIC void
141append_name(tableinfo_t info[static 1], const char *str)
142{
143 int i, j;
144
145 for (i = 0, j = strlen(info->solver); str[i] != '\0'; i++, j++)
146 info->solver[j] = str[i];
147
148 info->solver[j] = '\0';
149}

Generated with cgit - Back to sebastiano.tronto.net