diff options
| author | J08nY | 2017-05-29 15:11:38 +0200 |
|---|---|---|
| committer | J08nY | 2017-05-29 15:11:38 +0200 |
| commit | ba8c1f2bc424205cbb167b3c65ce184912c6173a (patch) | |
| tree | db21c80b3e7ed411ddbdc4151f82b875b83f279e /src/io/input.h | |
| parent | 03eedf3f3e69093af6fd2717bbad04ffdfc7c25a (diff) | |
| download | ecgen-ba8c1f2bc424205cbb167b3c65ce184912c6173a.tar.gz ecgen-ba8c1f2bc424205cbb167b3c65ce184912c6173a.tar.zst ecgen-ba8c1f2bc424205cbb167b3c65ce184912c6173a.zip | |
Add some more comments and docs, move exhaustive/seed.[ch] into math/
Diffstat (limited to 'src/io/input.h')
| -rw-r--r-- | src/io/input.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/io/input.h b/src/io/input.h index 579af3c..fa69503 100644 --- a/src/io/input.h +++ b/src/io/input.h @@ -11,13 +11,6 @@ #include "math/random.h" #include "math/types.h" -typedef enum PARAM { - PARAM_PRIME, - PARAM_INT, - PARAM_SHORT, - PARAM_STRING -} param_t; - /** * * @param prompt @@ -50,26 +43,18 @@ GEN input_string(const char *prompt); /** * - * @param param - * @param prompt - * @param bits - * @return - */ -GEN input_param(param_t param, const char *prompt, unsigned long bits); - -/** - * */ extern FILE *in; /** - * + * @brief Initialize input based on cfg. * @param cfg + * @return whether the initialization was successful */ -void input_init(const config_t *cfg); +bool input_init(const config_t *cfg); /** - * + * @brief Deinitialize input. */ void input_quit(void); |
