1
This commit is contained in:
Alex Yatskov 2016-11-19 18:17:04 -08:00
parent 1cd408df8b
commit 6bcca3739e
2 changed files with 4 additions and 7 deletions

View File

@ -18,9 +18,6 @@
#include <string.h>
#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;
}
}

View File

@ -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[]);