From 67cc243e34eb93ae23333afc4b234f71b73a4a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 22 Jun 2017 16:14:11 +0200 Subject: _init() and _INITIALIZER -> _make() Gets rid of stupid memset()s and some preprocessor. --- repl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'repl.c') 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; -- cgit v1.2.3