Skip to content

Conversation

@maelle
Copy link
Contributor

@maelle maelle commented Jan 6, 2026

Fix #2202

One thing we might consider adding, is a period at the end of the message if it's not already there.

@szhorvat
Copy link
Member

szhorvat commented Jan 6, 2026

One thing we might consider adding, is a period at the end of the message if it's not already there.

I've added punctuation at the end of most messages in the C core now, but a few are still left out. This is a nice-to-have aesthetic feature, it's not an absolute must unless you want to append extra text at the end of the message. We do correct for missing punctuation in both the Python and Mathematica interfaces.

@szhorvat
Copy link
Member

szhorvat commented Jan 6, 2026

One thing we might consider adding, is a period at the end of the message if it's not already there.

Isn't this already there with maybe_add_puctuation?

LGTM, but I didn't test.

Co-authored-by: Szabolcs Horvát <[email protected]>
@maelle
Copy link
Contributor Author

maelle commented Jan 13, 2026

Thank you @szhorvat @schochastics!

@maelle
Copy link
Contributor Author

maelle commented Jan 13, 2026

@szhorvat with your change the path wasn't simplified any longer, does my fix make any sense?

@szhorvat
Copy link
Member

I'm sorry, I can't seem to see your fix, but I'm in a rush and may be missing something. I believe my mistake is that 1 needs to be subtracted from prefix_len to account for the null terminator. I'll comment with a fix, and will return in a couple fo days when I can dedicate time to this.

* build procedure, namely on the directory that the compiler is invoked from. */
static inline const char* simplify_file_path(const char *file) {
const char prefix[] = "vendor/cigraph/src/";
const size_t prefix_len = sizeof(prefix) / sizeof(prefix[0]);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const size_t prefix_len = sizeof(prefix) / sizeof(prefix[0]);
const size_t prefix_len = sizeof(prefix) / sizeof(prefix[0]) - 1;

@maelle
Copy link
Contributor Author

maelle commented Jan 13, 2026

oops my push hadn't worked... anyhow thanks a ton!!

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.

Warning

4 participants