OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-link-grammar commits / ea7e658

link-parser.c: Consolidate copts-related operations
ea7e6582ceaa3e70e03dd1b4a9c0a420bf9d6dc8
by ampli <amirpli@gmail.com> · 2024-05-29T00:19:14.000Z

Changed files (1) +6 -7

link-parser/link-parser.c +6 -7
……@@ -532,6 +532,12 @@ int main(int argc, char * argv[])
532532 }
533533
534534 copts = command_options_create();
535 if (copts == NULL || copts->popts == NULL)
536 {
537 prt_error("Fatal error: unable to create parse options\n");
538 exit(-1);
539 }
540 opts = copts->popts;
535541
536542 /* First set the debug options, to allow dictionary-related debug. */
537543 const char * const debug_vars[] = { "verbosity", "debug", "test" };
……@@ -612,13 +618,6 @@ int main(int argc, char * argv[])
612618 }
613619 }
614620
615 if (copts == NULL || copts->popts == NULL)
616 {
617 prt_error("Fatal error: unable to create parse options\n");
618 exit(-1);
619 }
620 opts = copts->popts;
621
622621 set_default_parse_options(opts);
623622
624623 /* Get the panic disjunct cost from the dictionary. */