Skip to content

Fix extract_filename function#409

Merged
JohanMabille merged 4 commits intojupyter-xeus:mainfrom
anutosh491:extract_filename
Dec 17, 2024
Merged

Fix extract_filename function#409
JohanMabille merged 4 commits intojupyter-xeus:mainfrom
anutosh491:extract_filename

Conversation

@anutosh491
Copy link
Copy Markdown
Member

@anutosh491 anutosh491 commented Oct 4, 2024

If the extract_filename function is going to be editing argv, then it also needs to make a corresponding change to argc.

I thought this would work right out off the bat when I was using it for xeus-cpp but it ends up giving me errors (shown in this PR compiler-research/xeus-cpp#153)

@anutosh491 anutosh491 changed the title Extract filename Fix extract_filename function Oct 4, 2024
Copy link
Copy Markdown
Member

@JohanMabille JohanMabille left a comment

Choose a reason for hiding this comment

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

I think the extract_filename function deserves some documentation in the header file, otherwise it looks like a side effect bug.

Also this fix is backward incompatible, so when it gets it, we're on the way for xeus 6.

@JohanMabille
Copy link
Copy Markdown
Member

JohanMabille commented Dec 17, 2024

Actually this change is not backward incompatible, even if it's changing the behavior, it's breaking the ABI only.

@JohanMabille JohanMabille merged commit b43c88c into jupyter-xeus:main Dec 17, 2024
@anutosh491 anutosh491 deleted the extract_filename branch December 17, 2024 08:01
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