aboutsummaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-06-22 16:14:11 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-06-22 16:14:11 +0200
commit67cc243e34eb93ae23333afc4b234f71b73a4a11 (patch)
tree4dc69777ef240d78a5c29a915ba620457b00e71d /repl.c
parent4a199c7b67b41eb7ac382f035c14aad71e27db86 (diff)
downloadell-67cc243e34eb93ae23333afc4b234f71b73a4a11.tar.gz
ell-67cc243e34eb93ae23333afc4b234f71b73a4a11.tar.xz
ell-67cc243e34eb93ae23333afc4b234f71b73a4a11.zip
_init() and _INITIALIZER -> _make()
Gets rid of stupid memset()s and some preprocessor.
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/repl.c b/repl.c
index e84af3a..2692b8f 100644
--- a/repl.c
+++ b/repl.c
@@ -84,7 +84,7 @@ int
main (int argc, char *argv[]) {
(void) argc;
- ell_init (&ell);
+ ell = ell_make ();
if (!ell_std_initialize (&ell))
printf ("%s\n", "runtime library initialization failed");
@@ -96,8 +96,7 @@ main (int argc, char *argv[]) {
char *line;
while ((line = readline ("> "))) {
- struct ell_parser p;
- ell_parser_init (&p, line, strlen (line));
+ struct ell_parser p = ell_parser_make (line, strlen (line));
add_history (line);
const char *e = NULL;