diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-06-22 16:14:11 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-06-22 16:14:11 +0200 |
commit | 67cc243e34eb93ae23333afc4b234f71b73a4a11 (patch) | |
tree | 4dc69777ef240d78a5c29a915ba620457b00e71d /repl.c | |
parent | 4a199c7b67b41eb7ac382f035c14aad71e27db86 (diff) | |
download | ell-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |