aboutsummaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
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;