diff --git a/gaiji.c b/gaiji.c index d9f3102..8e3554b 100644 --- a/gaiji.c +++ b/gaiji.c @@ -18,9 +18,6 @@ #include -#include "eb/eb/eb.h" -#include "eb/eb/text.h" - #include "util.h" #include "gaiji.h" @@ -50,10 +47,10 @@ static const Gaiji_table gaiji_tables[] = { * Exported functions */ -const Gaiji_table * gaiji_select_table(const char title[]) { +const Gaiji_table * gaiji_select_table(const char name[]) { for (unsigned i = 0; i < ARRSIZE(gaiji_tables); ++i) { const Gaiji_table* table = gaiji_tables + i; - if (strcmp(table->title, title) == 0) { + if (strcmp(table->name, name) == 0) { return table; } } diff --git a/gaiji.h b/gaiji.h index f366a18..e7fdfc6 100644 --- a/gaiji.h +++ b/gaiji.h @@ -36,7 +36,7 @@ typedef struct { } Gaiji_entry; typedef struct { - char title[MAX_TABLE_NAME]; + char name[MAX_TABLE_NAME]; const Gaiji_entry* table_wide; int count_wide; const Gaiji_entry* table_narrow; @@ -52,7 +52,7 @@ typedef enum { * Functions */ -const Gaiji_table * gaiji_select_table(const char title[]); +const Gaiji_table * gaiji_select_table(const char name[]); void gaiji_build_stub(char text[MAX_STUB_BYTES], int code, const Gaiji_table* table, Gaiji_width width); void gaiji_fixup_stub(char output[], int size, const char input[]);