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;
|
2018-04-29 14:12:41 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2018-06-03 15:59:16 +02:00
|
|
|
struct syllable *syllable_alloc(const char *data, unsigned int code);
|
2018-04-25 15:16:12 +02:00
|
|
|
void syllable_drop(struct syllable *syllable);
|
|
|
|
|
2018-04-29 08:21:46 +02:00
|
|
|
unsigned int syllable_chain_length(struct syllable *head);
|
2018-04-25 15:29:24 +02:00
|
|
|
char *syllable_chain_to_string(struct syllable *head);
|
2018-05-18 10:09:06 +02:00
|
|
|
void syllable_chain_drop(struct syllable *head);
|
2018-04-25 15:29:24 +02:00
|
|
|
|
2018-04-25 15:16:12 +02:00
|
|
|
#endif /* __SYLLABE_H */
|