WIP
This commit is contained in:
parent
1cd408df8b
commit
6bcca3739e
7
gaiji.c
7
gaiji.c
@ -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;
|
||||
}
|
||||
}
|
||||
|
4
gaiji.h
4
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[]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user