Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link-parser fixes #1536

Merged
merged 15 commits into from
May 30, 2024
Merged

link-parser fixes #1536

merged 15 commits into from
May 30, 2024

Conversation

ampli
Copy link
Member

@ampli ampli commented May 29, 2024

  • save_default_opts(): Bugfix saving string defaults
    Fix the defaults for the verbosity and string parse-options.
  • make_dirpath(: Bugfix dir memory leak on MS Windows
  • lg_readline.c: At verbosity 4, print the history file location
  • link-parser.c: Be really silent on --quite

In addition:

  • Fix message and comment typos.
  • command-line.c: Correctly use D_USER_FILES
    The intention is to show file paths only at this level and not at higher levels.
  • Simplify code.
  • Rearrange code.

@@ -83,10 +83,11 @@ void find_history_filepath(const char *dictname, const char *argv0,
prt_error("Warning: xdg_get_home(XDG_BD_STATE) failed; "
"input history will not be supported.\n");
history_file = strdup("dev/null");
return;
}

history_file = hfile;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else is needed here. I'll put it in.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 1a4775a

Copy link
Member Author

@ampli ampli May 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just noted that I had a typo in "dev/null" (missing initial /).
EDIT: Fixed in PR #1538.

@linas linas merged commit 13761b2 into opencog:master May 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants