aboutsummaryrefslogtreecommitdiffstats
path: root/makenimitoki.h
blob: a5fe1a98984aba0fa34d212b7ad91749a24fa7ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MAKENIMITOKI_H
#define MAKENIMITOKI_H

#include <stdio.h> /* FILE */

/* for now the longest tokipona word is kijetesantakalu, which is
 * 15 characters long, so the limit is it's length + newline + zero-character
 *
 * TODO: detect this automagically
 */
#define NIMI_TOKI_MAX_LENGTH 17

#define _MAKENIMITOKI_COMMENT_ \
    "/* this file is generated by makenimitoki program,\n"\
    " * so do not edit it directly, but modify makenimitoki.c as you wish\n"\
    " */\n"

void make_header(FILE *nimitoki_h);

void make_nimi_toki(FILE *nimitoki_txt, FILE *nimitoki_c);

#endif /* MAKENIMITOKI_H */