sanskrit-iast/syllable.h

21 lines
491 B
C
Raw Permalink Normal View History

2018-04-25 19:30:49 +02:00
/* SPDX-License-Identifier: GPL-2.0 */
2018-04-25 15:16:12 +02:00
#ifndef __SYLLABE_H
#define __SYLLABE_H
struct syllable {
char *data;
unsigned int code;
2018-04-29 08:42:11 +02:00
struct syllable *prev;
2018-04-25 15:16:12 +02:00
struct syllable *next;
};
struct syllable *syllable_alloc(const char *data, unsigned int code);
2018-04-25 15:16:12 +02:00
void syllable_drop(struct syllable *syllable);
unsigned int syllable_chain_length(struct syllable *head);
char *syllable_chain_to_string(struct syllable *head);
void syllable_chain_drop(struct syllable *head);
2018-04-25 15:16:12 +02:00
#endif /* __SYLLABE_H */