aboutsummaryrefslogtreecommitdiffstats
path: root/nimisewi.h
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-06-02 17:00:39 +0000
committerla-ninpre <leobrekalini@gmail.com>2021-06-02 17:00:39 +0000
commite7e4e22b69a0c9965c2d4f96903ae647165e99d3 (patch)
tree206e0ffd324751e51850184dc21929382a3af4e4 /nimisewi.h
parent44c234cfdf8588e5c53a9534cc2ee1c627682f7c (diff)
downloadnimisewi_c-e7e4e22b69a0c9965c2d4f96903ae647165e99d3.tar.gz
nimisewi_c-e7e4e22b69a0c9965c2d4f96903ae647165e99d3.zip
major refactoringv0.0.3
added options to compile cgi for http and gemini FossilOrigin-Name: 393d793150423ffe6680f109ef6b0524fd8e2e3501766a6761aa63276e90d90e
Diffstat (limited to 'nimisewi.h')
-rw-r--r--nimisewi.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/nimisewi.h b/nimisewi.h
index f816ea9..4ce3b14 100644
--- a/nimisewi.h
+++ b/nimisewi.h
@@ -16,23 +16,19 @@
#ifndef NIMI_SEWI_H
#define NIMI_SEWI_H
+#include <stdlib.h>
+
/* struct to hold stuff useful for random index generation */
struct nanpa_nimi {
- int nanpa_nimi; /* number of words */
+ int nanpa_nimi; /* number of words - 1 */
int pi_li_lon; /* whether to insert 'pi' or not */
int nanpa_pi; /* index to insert 'pi', if pi_li_lon is 1 */
+ int *nanpa_sewi_nimi; /* random indices of words */
+ size_t suli_pi_nimi_sewi; /* length of generated phrase */
};
-void open_e_nanpa_sewi(void);
-
-void pana_e_nanpa_nimi(struct nanpa_nimi *nn);
-
-void pana_e_nanpa_pi_nimi_sewi(int *nanpa_sewi_mute,
- const int suli_nimi,
- struct nanpa_nimi *nn);
+char *nimi_sewi(void);
-const char *pana_e_nimi(const char *nimi_mute[],
- const int suli_pi_nimi_mute,
- const int nanpa_nimi);
+void weka_e_nimi_sewi(char *nimi_sewi);
#endif /* NIMI_SEWI_H */